-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (27 loc) · 1.01 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
cmake_minimum_required(VERSION 2.8.0)
project( opticalflow-gen CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pthread")
find_package( OpenCV 4 REQUIRED )
find_package( Eigen3 REQUIRED )
find_package( yaml-cpp REQUIRED )
set(ROOT ./)
include_directories(${ROOT}/src)
include_directories(${EIGEN3_INCLUDE_DIR})
include_directories(${YAML_CPP_INCLUDE_DIR})
include_directories(src)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
file(GLOB opticalflow-gen_SRC
"src/of/*.?pp"
"src/gen/*.?pp"
)
add_executable( opticalflow-gen ${opticalflow-gen_SRC} )
target_link_libraries( opticalflow-gen yaml-cpp ${OpenCV_LIBS} ${YAML_CPP_LIBRARIES} stdc++fs)
file(GLOB opticalflow-track_SRC
"src/of/*.?pp"
"src/track/*.?pp"
)
add_executable( opticalflow-track ${opticalflow-track_SRC} )
target_link_libraries( opticalflow-track yaml-cpp ${OpenCV_LIBS} ${YAML_CPP_LIBRARIES} stdc++fs)
message(STATUS "OpenCV_INCLUDE_DIRS = ${OpenCV_INCLUDE_DIRS}")