-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
61 lines (50 loc) · 1.64 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
57
58
59
60
61
cmake_minimum_required(VERSION 3.5)
project(myicub_ros)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
sensor_msgs
message_generation
visp_bridge
tf
)
add_message_files(
FILES
CameraFeatures.msg
Marker.msg
Markers.msg
)
add_service_files(FILES StateCommand.srv)
generate_messages(DEPENDENCIES std_msgs geometry_msgs myicub_ros)
catkin_package(
INCLUDE_DIRS include
)
find_package(YARP 3.3.0 REQUIRED)
find_package(ICUBcontrib REQUIRED)
find_package(VISP REQUIRED)
# extend the current search path used by cmake to load helpers
list(APPEND CMAKE_MODULE_PATH ${ICUBCONTRIB_MODULE_PATH})
include(ICUBcontribHelpers)
include(ICUBcontribOptions)
include_directories(
include
/usr/include/yarp
${catkin_INCLUDE_DIRS}
${VISP_INCLUDE_DIRS}
)
icubcontrib_set_default_prefix()
add_executable(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/src/js_interface.cpp)
target_link_libraries(${PROJECT_NAME} ${YARP_LIBRARIES} ${catkin_LIBRARIES})
add_executable(ar_detector_node src/ar_detector_node.cpp)
target_link_libraries(ar_detector_node ${catkin_LIBRARIES} ${VISP_LIBRARIES})
add_dependencies(ar_detector_node ${catkin_EXPORTED_TARGETS})
# add_executable(image_talker)
# target_sources(image_talker PRIVATE ${CMAKE_SOURCE_DIR}/src/image_talker.cpp)
# target_link_libraries(image_talker PRIVATE YARP::YARP_os
# YARP::YARP_init
# YARP::YARP_sig)
#add_executable(image_read)
#target_sources(image_read PRIVATE ${CMAKE_SOURCE_DIR}/src/image_read.cpp)
#target_link_libraries(image_read PRIVATE YARP::YARP_os
# YARP::YARP_init)