-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
26 lines (21 loc) · 794 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
cmake_minimum_required(VERSION 3.11.3)
add_definitions(-std=c++11)
set(CXX_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS, "${CXX_FLAGS}")
# set(CMAKE_CXX_STANDARD 11)
project(EigenFlow)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
set(CMAKE_BUILD_TYPE Debug)
find_package(Threads)
#find_package(OpenCV 4.1 REQUIRED)
find_package(Eigen3 3.3 REQUIRED NO_MODULE)
include_directories(${OpenCV_INCLUDE_DIRS} "${PROJECT_SOURCE_DIR}/../eigen-3.3.7/" "/include/")
#link_directories(${OpenCV_LIBRARY_DIRS})
#add_definitions(${OpenCV_DEFINITIONS})
# Find all executables
file(GLOB project_SRCS src/*.cpp) #src/*.h
# Add project executable
add_executable(NN ${project_SRCS})
target_link_libraries (NN ${CMAKE_THREAD_LIBS_INIT})
#target_link_libraries(NN ${OpenCV_LIBRARIES})
target_link_libraries (NN Eigen3::Eigen)