-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (35 loc) · 1.04 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
cmake_minimum_required(VERSION 3.16)
project(ros1_example_pkg)
find_package(catkin REQUIRED COMPONENTS
cv_bridge
roscpp
roslint
sensor_msgs
std_msgs
)
# need to find zenohc for zenohcxx to work
find_package(zenohc REQUIRED)
find_package(zenohcxx REQUIRED)
# find_package(PkgConfig)
# pkg_check_modules(zenohcxx REQUIRED)
set(ROSLINT_CPP_OPTS
"--extensions=cpp,h,hpp" "--filter=-whitespace/braces,-runtime/references,-build/c++11"
)
roslint_cpp()
catkin_package()
include_directories(
${catkin_INCLUDE_DIRS}
include
)
add_executable(generate_image src/generate_image.cpp)
target_link_libraries(generate_image ${catkin_LIBRARIES})
add_executable(zenoh_generate_image src/zenoh_generate_image.cpp)
target_link_libraries(zenoh_generate_image PUBLIC zenohcxx::zenohc::lib ${catkin_LIBRARIES})
# TODO install scripts
install(TARGETS
generate_image
zenoh_generate_image
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)