-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
57 lines (39 loc) · 1.24 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
44
45
46
47
48
49
50
51
52
53
54
55
56
cmake_minimum_required(VERSION 3.1)
project( BCISift )
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
#C++17 version
# External packages
## OpenCV
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
## LSL
find_package(LSL)
## VL
find_package(VLFeat)
if(VLFEAT_FOUND)
message("-- Using VLFeat: ${VLFEAT_INCLUDE_DIRS}")
include_directories(${VLFEAT_INCLUDE_DIRS})
SET(PROJECT_LIBS ${PROJECT_LIBS} ${VLFEAT_LIBRARIES})
else()
message("-- VLFeat not found, set the VLFEAT_ROOT to the root folder of VLFeat ")
endif()
# Source files
include_directories(
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/src/include
)
file(GLOB SOURCES
"${PROJECT_SOURCE_DIR}/include/*.h"
"${PROJECT_SOURCE_DIR}/include/*.hpp"
"${PROJECT_SOURCE_DIR}/src/*.cpp"
"${PROJECT_SOURCE_DIR}/src/*.c"
)
link_directories(${PROJECT_SOURCE_DIR}/src)
link_directories(${PROJECT_SOURCE_DIR}/src/include)
# Build
add_executable( BCISift ${SOURCES})
target_link_libraries( BCISift ${OpenCV_LIBS} )
target_link_libraries(BCISift ${VLFEAT_LIBRARIES})
target_link_libraries(BCISift lsl)
# C++17 in order to use KFR
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)