-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
32 lines (23 loc) · 945 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
project(lbf)
cmake_minimum_required(VERSION 2.8)
find_package(OpenCV REQUIRED)
find_package(OpenMP)
if(OPENMP_FOUND)
message("OPENMP FOUND")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
include_directories(${CMAKE_CURRENT_LIST_DIR}/3rdparty)
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
include(${CMAKE_CURRENT_LIST_DIR}/3rdparty/liblinear/liblinear.cmake)
file(GLOB SRC ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
#add_library(lib3000fps STATIC ${SRC})
#target_link_libraries(lib3000fps liblinear ${OpenCV_LIBS})
#set(SRC src/main.cpp
# src/prepare.cpp
# src/test.cpp
# src/train.cpp)
add_executable(${PROJECT_NAME} ${SRC})
target_link_libraries(${PROJECT_NAME} liblinear ${OpenCV_LIBS})