-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.solution.txt
49 lines (43 loc) · 1.61 KB
/
CMakeLists.solution.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
cmake_minimum_required(VERSION 3.5)
# Extract package name and version from package.xml using macros from `ros_industrial_cmake_boilerplate` (RICB)
find_package(ros_industrial_cmake_boilerplate REQUIRED)
extract_package_metadata(pkg)
project(${pkg_extracted_name} VERSION ${pkg_extracted_version} LANGUAGES C CXX)
# Find `noether_gui`
find_package(noether_gui REQUIRED)
# Add a library for our custom tool path planning components
add_library(${PROJECT_NAME} SHARED
# Exercise 2a
src/solution/exercise_2a/camera_standoff_tool_path_modifier_widget.cpp
# Exercise 2b
src/solution/exercise_2b/cylinder_segmentation_mesh_modifier.cpp
src/solution/exercise_2b/cylinder_segmentation_mesh_modifier_widget.cpp
# Exercise 2c
src/solution/exercise_2c/no_op_tool_path_planner.cpp
src/solution/exercise_2c/no_op_tool_path_planner_widget.cpp
)
# Link against headers from this repository
target_include_directories(${PROJECT_NAME} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/solution>"
"$<INSTALL_INTERFACE:include>"
)
# Link against dependency targets
target_link_libraries(${PROJECT_NAME} PUBLIC
noether::noether_gui
)
# Set a specific cxx version using RICB macro
target_cxx_version(${PROJECT_NAME} PUBLIC VERSION 14)
# Plugin library
add_library(${PROJECT_NAME}_plugins SHARED src/solution/plugins.cpp)
target_link_libraries(${PROJECT_NAME}_plugins PUBLIC ${PROJECT_NAME})
# Install headers
install(DIRECTORY include/solution/ DESTINATION include/)
# Package configuration via RICB
configure_package(
NAMESPACE noether
DEPENDENCIES
noether_gui
TARGETS
${PROJECT_NAME}
${PROJECT_NAME}_plugins
)