-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
59 lines (44 loc) · 1.48 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
cmake_minimum_required(VERSION 3.0.2)
project(virtual_cam)
add_compile_options(-Wall -Werror=all)
add_compile_options(-Wextra -Werror=extra)
find_package(catkin REQUIRED COMPONENTS cv_bridge roscpp message_generation rgbd rosbag tf)
find_package(OpenCV REQUIRED)
################################################
## Declare ROS messages, services and actions ##
################################################
# Generate services in the 'srv' folder
add_service_files(
FILES
cheese.srv
)
generate_messages(
DEPENDENCIES
)
###################################
## catkin specific configuration ##
###################################
catkin_package(
INCLUDE_DIRS include
LIBRARIES virtual_cam_image_loader
CATKIN_DEPENDS message_runtime
)
###########
## Build ##
###########
include_directories(include SYSTEM ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
# Declare a cpp library
add_library(virtual_cam_image_loader
src/Loader.cpp
src/Image.cpp
)
target_link_libraries(virtual_cam_image_loader ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(save src/save.cpp)
target_link_libraries(save yaml-cpp ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_dependencies(save ${PROJECT_NAME}_gencpp)
add_executable(load src/load.cpp)
target_link_libraries(load yaml-cpp virtual_cam_image_loader)
add_executable(view src/view.cpp)
target_link_libraries(view virtual_cam_image_loader)
add_executable(crop src/crop.cpp)
target_link_libraries(crop virtual_cam_image_loader ${catkin_LIBRARIES})