-
Notifications
You must be signed in to change notification settings - Fork 42
/
CMakeLists.txt
36 lines (29 loc) · 1.02 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
#############################################
# VIBE project
#############################################
cmake_minimum_required(VERSION 2.8)
project(VIBE)
set(VIBE_VERSION_MAJOR 0)
set(VIBE_VERSION_MINOR 1)
#############################################
# Dependencies
#OpenCV
find_package(OpenCV REQUIRED)
if(NOT OpenCV_FOUND)
message(SEND_ERROR "Faild to find Opencv")
return()
else()
set(VIBE_DEPENDENCY_DIRS ${OpenCV_INCLUDE_DIRS} ${VIBE_DEPENDENCY_DIRS})
set(VIBE_DEPENDENCY_LIBS ${OpenCV_LIBS} ${VIBE_DEPENDENCY_LIBS})
endif()
#############################################
#############################################
#General compiler flags
add_definitions(-DDEBUG_MODE) #This shows all messages from LOG()
add_definitions(-Wall) #Enable all warnings always
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -std=gnu++0x -mtune=corei7 -march=corei7 -fopenmp -lpthread")
#############################################
add_subdirectory(3rdparty)
add_subdirectory(VIBE)
add_subdirectory(apps)
add_subdirectory(unit_tests)