-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
56 lines (46 loc) · 1.13 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
cmake_minimum_required(VERSION 2.8.3)
project(genicam_cvb)
add_definitions(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
sensor_msgs
camera_info_manager
# cv_bridge
)
find_package(OpenCV 3.1 REQUIRED)
catkin_package(
INCLUDE_DIRS include
LIBRARIES genicam arghandler
CATKIN_DEPENDS roscpp rospy std_msgs sensor_msgs
# DEPENDS system_lib
)
include_directories(
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDES}
"$ENV{CVB}/include"
include
)
add_library(genicam src/genicam.cpp)
target_link_libraries(genicam
"$ENV{CVB}/lib/genicam/libGCBase_gcc46_v3_0.so"
"$ENV{CVB}/lib/genicam/libGenApi_gcc46_v3_0.so"
"$ENV{CVB}/lib/libCVCDriver.so"
"$ENV{CVB}/lib/libCVCFile.so"
"$ENV{CVB}/lib/libCVCImg.so"
"$ENV{CVB}/lib/libCVCUtilities.so"
"$ENV{CVB}/lib/libCVFactory.so"
"$ENV{CVB}/lib/libCVGenApi.so"
"$ENV{CVB}/lib/libCVRegistry.so"
"$ENV{CVB}/lib/libCVUAL.so"
"$ENV{CVB}/lib/libCVBase.so"
)
add_library(arghandler src/arghandler.cpp)
add_executable(genicam_node src/genicam_node.cpp)
target_link_libraries(genicam_node
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
genicam
arghandler
)