-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
36 lines (28 loc) · 1.15 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
# CMakeLists.txt for VOCUS 2 saliency system (Frintrop et al. CVPR 2015)
#
# see http://www.cmake.org/ for a documentation about CMake
#
# compile your programm using the following commands:
# $ cmake CMakeLists.txt
# $ make
cmake_minimum_required(VERSION 2.8)
project(VOCUS2 CXX)
# choose if you want to compile with or without debugging flags,
# uncomment only one of the following two commands at a time
#set(CMAKE_BUILD_TYPE release)
set(CMAKE_BUILD_TYPE debug)
# add a compiler flag for the C++2011 standard
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x -fopenmp")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x")
find_package(OpenCV REQUIRED)
find_package(Boost COMPONENTS serialization REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
link_directories(${OpenCV_LIBRARY_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
ADD_LIBRARY( vocus2l STATIC
src/VOCUS2.cpp
)
add_executable(vocus2 src/main.cpp src/VOCUS2.cpp)
target_link_libraries(vocus2 ${OpenCV_LIBS} ${Boost_LIBRARIES})
target_link_libraries(vocus2l ${OpenCV_LIBS} ${Boost_LIBRARIES})