-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
49 lines (39 loc) · 1021 Bytes
/
CMakeLists.txt
File metadata and controls
49 lines (39 loc) · 1021 Bytes
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
cmake_minimum_required(VERSION 3.13)
project(catch_ros)
find_package(catkin REQUIRED COMPONENTS
roscpp
)
find_package(Boost REQUIRED COMPONENTS filesystem)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp
CFG_EXTRAS catch.cmake
)
include_directories(include ${catkin_INCLUDE_DIRS})
add_library(catch_ros_standalone
src/standalone_main.cpp
src/meta_info_unknown.cpp
)
target_link_libraries(catch_ros_standalone
${Boost_LIBRARIES}
)
target_link_options(catch_ros_standalone PRIVATE
"-Wl,-z,defs"
)
add_library(catch_ros_rostest
src/rostest_main.cpp
src/meta_info_unknown.cpp
)
target_link_libraries(catch_ros_rostest
${Boost_LIBRARIES}
)
target_link_options(catch_ros_standalone PRIVATE
"-Wl,-z,defs"
)
install(FILES src/meta_info.cpp DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(TARGETS catch_ros_standalone catch_ros_rostest
LIBRARY DESTINATION ${CATKIN_GLOBAL_LIB_DESTINATION}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)