-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
39 lines (33 loc) · 984 Bytes
/
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
cmake_minimum_required(VERSION 3.8)
project(dr_ensenso_msgs)
find_package(catkin REQUIRED COMPONENTS
message_generation
std_msgs
sensor_msgs
geometry_msgs
)
add_service_files(FILES
Calibrate.srv
DetectCalibrationPattern.srv
DumpJson.srv
FinalizeCalibration.srv
GetCameraData.srv
InitializeCalibration.srv
)
generate_messages(
DEPENDENCIES geometry_msgs sensor_msgs
)
catkin_package(
CATKIN_DEPENDS message_runtime geometry_msgs sensor_msgs
LIBRARIES ${PROJECT_NAME}
)
# Make a dummy library to force dependent targets to have dependencies on message generation.
configure_file("/dev/null" "${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp")
add_library(${PROJECT_NAME} "${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp")
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencpp)
install(
TARGETS "${PROJECT_NAME}"
ARCHIVE DESTINATION "${CATKIN_PACKAGE_LIB_DESTINATION}"
LIBRARY DESTINATION "${CATKIN_PACKAGE_LIB_DESTINATION}"
RUNTIME DESTINATION "${CATKIN_PACKAGE_BIN_DESTINATION}"
)