-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
135 lines (115 loc) · 2.62 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
cmake_minimum_required(VERSION 2.8.3)
project(pointgrey)
add_subdirectory (gtest)
set(CMAKE_CXX_FLAGS "-std=c++11 -O2 -Wall ${CMAKE_CXX_FLAGS}")
find_package(OpenCV REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
include_directories( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} include )
###########
## Build ##
###########
if(EXISTS "/usr/include/flycapture")
include_directories(
/usr/include/flycapture
${OpenCV_INCLUDE_DIRS}
)
add_executable(grasshopper3 nodes/grasshopper3/grasshopper3.cpp)
target_link_libraries(grasshopper3
${catkin_LIBRARIES} ${OpenCV_LIBS} flycapture
)
else()
message("'flycapture2' is not installed. 'grasshopper3' will not be built.")
endif()
#add_executable(ladybug_pps_service
# nodes/ladybug/ladybug_pps_service.cpp
#)
#add_dependencies(ladybug_pps_service pointgrey_generate_messages_cpp)
#target_link_libraries(ladybug_pps_service
# ${catkin_LIBRARIES}
# ${OpenCV_LIBS}
# flycapture
# ladybug
# xerces-c
#)
include_directories(
/usr/include/ladybug
nodes/ladybug
ladybugStitchFrom3DMesh
${OpenCV_INCLUDE_DIRS}
)
add_executable(lady_bug_16bit
ladybug_16bitTest.cpp
)
add_executable(lady_bug_8bit
ladybug_8bitTest.cpp
)
add_executable(lady_bug_8bit_rect
ladybug_8bitTest_rect.cpp
)
add_executable(lady_bug_camera_control
lady_bug_camera_control.cpp
)
add_executable(ladybugStitchFrom3DMesh
ladybugStitchFrom3DMesh/ladybugStitchFrom3DMesh.cpp
ladybugStitchFrom3DMesh/pgrpnmio.cpp
)
add_executable(ladybugStitchFrom3DMeshCamera
ladybugStitchFrom3DMeshCamera.cpp
ladybugStitchFrom3DMesh/pgrpnmio.cpp
)
add_executable(ladybugSaveRaw
ladybug_raw.cpp
)
target_link_libraries(lady_bug_16bit
${OpenCV_LIBS}
flycapture
ladybug
xerces-c
)
target_link_libraries(lady_bug_8bit
${OpenCV_LIBS}
flycapture
ladybug
xerces-c
)
target_link_libraries(lady_bug_camera_control
${OpenCV_LIBS}
flycapture
ladybug
xerces-c
)
target_link_libraries(lady_bug_8bit_rect
${OpenCV_LIBS}
flycapture
ladybug
xerces-c
)
target_link_libraries(ladybugStitchFrom3DMesh
${OpenCV_LIBS}
${OPENGL_LIBRARIES}
${GLUT_LIBRARY}
)
target_link_libraries(ladybugStitchFrom3DMeshCamera
${OpenCV_LIBS}
${OPENGL_LIBRARIES}
${GLUT_LIBRARY}
flycapture
ladybug
xerces-c
)
target_link_libraries(ladybugSaveRaw
${OpenCV_LIBS}
${OPENGL_LIBRARIES}
${GLUT_LIBRARY}
flycapture
ladybug
xerces-c
)
file(GLOB_RECURSE test_sources test/*.cpp)
add_executable(test_${PROJECT_NAME} ${test_sources})
target_link_libraries(test_${PROJECT_NAME} ${GTEST_LIBRARIES} pthread gtest
${Boost_LIBRARIES}
${PCL_LIBRARIES}
${OpenCV_LIBS}
)