-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
43 lines (37 loc) · 1.02 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
project(event_camera_comb_filter)
cmake_minimum_required(VERSION 3.0)
# import external dependencies
find_package(OpenCV REQUIRED)
set(CMAKE_CXX_STANDARD 17)
find_package(yaml-cpp REQUIRED)
include_directories(include)
add_executable(event_camera_comb_filter main.cpp comb_filter.cpp)
set(EXECUTABLES_LIST
event_camera_comb_filter
)
foreach(EXEC_NAME ${EXECUTABLES_LIST})
target_include_directories(${EXEC_NAME} PRIVATE
include
${MODULE_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${YAML_CPP_INCLUDE_DIR}
)
if(UNIX)
message(STATUS "Unix detected")
target_link_libraries(${EXEC_NAME}
${MODULE_LIBS}
${OpenCV_LIBS}
# clang
pthread
yaml-cpp
)
endif()
if(WIN32)
message(STATUS "Windows detected")
target_link_libraries(${EXEC_NAME}
${MODULE_LIBS}
${OpenCV_LIBS}
pthreadVC3
)
endif()
endforeach()