-
Notifications
You must be signed in to change notification settings - Fork 22
/
CMakeLists.txt
executable file
·36 lines (26 loc) · 1015 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
cmake_minimum_required(VERSION 2.8)
project(python_cfar)
#compiler options
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif()
find_package( OpenCV REQUIRED )
find_package( GSL REQUIRED )
set(CMAKE_CXX_STANDARD 14)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp")
#set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
set(sourceList
main.cpp
)
set(includeDirList ${includeDirList} $ENV{OPENCV_DIR}/include ./ )
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${GSL_INCLUDE_DIRS})
include_directories(/usr/include)
set(libDirList ${libDirList} $ENV{OPENCV_DIR}/x64/vc14/lib )
include_directories(${includeDirList})
link_directories(${libDirList})
add_executable( ${PROJECT_NAME} ${sourceList} ${headerList} )
target_link_libraries( ${PROJECT_NAME} ${OpenCV_LIBS} ${GSL_LIBRARIES} )