forked from raulmur/BagFromImages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (40 loc) · 963 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
40
41
42
43
44
45
46
47
48
set(CMAKE_EXPORT_COMPILE_COMMANDS 1 )
set(CMAKE_VERBOSE_MAKEFILE TRUE)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -W -Wno-unused-parameter")
cmake_minimum_required(VERSION 2.4.6)
project(BagFromImages)
set(OpenCV_DIR /opt/ros/kinetic/share/OpenCV-3.3.1)
set(CMAKE_CXX_STANDARD 11)
find_package(catkin REQUIRED COMPONENTS
std_msgs
roscpp
rosbag
cv_bridge
image_transport
OpenCV
sensor_msgs
)
FIND_PACKAGE(OpenCV REQUIRED)
find_package(Boost REQUIRED COMPONENTS
system
filesystem
)
find_package(PkgConfig)
catkin_package()
include_directories(
ThirdParty/DLib
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_library(FileFunctions Thirdparty/DLib/FileFunctions.cpp)
target_link_libraries(FileFunctions
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
)
add_executable(main main.cc)
target_link_libraries(main
FileFunctions
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
)