-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathCMakeLists.txt
60 lines (48 loc) · 1.22 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
57
58
59
cmake_minimum_required(VERSION 2.8)
project( spmbpOF )
set (CMAKE_C_FLAGS_RELEASE "-O3")
set (CMAKE_BUILD_TYPE Release)
find_package (OpenCV REQUIRED)
if (UNIX)
include_directories (SYSTEM ${OPENCV_INCLUDE_DIRS})
endif(UNIX)
if(MSVC)
include_directories(C:\\opencv\\build\\include)
link_directories(C:\\opencv\\build\\lib)
endif(MSVC)
include_directories (code)
file(GLOB FILTER_FILE
code/FGS*
code/CF*)
file(GLOB SUPERPIXEL_FILE
code/SLIC*
code/Superpixels*)
file(GLOB FLOW_MANIPULATION_FILE
code/colorcode*
code/FlowInputOutput*)
file(GLOB COMMON_FILE
code/Common_Datastructure_*
)
file(GLOB OF_FILE
code/opticalFlow*
)
file(GLOB SPMBP_FILE
code/spmbp.h
code/spmbp.cpp
)
add_executable(spmbpOF
code/spmbpOF.cpp
${FILTER_FILE}
${SUPERPIXEL_FILE}
${FLOW_MANIPULATION_FILE}
${COMMON_FILE}
${OF_FILE}
${SPMBP_FILE}
)
source_group("filter" FILES ${FILTER_FILE})
source_group("super pixel" FILES ${SUPERPIXEL_FILE})
source_group("flow_io" FILES ${FLOW_MANIPULATION_FILE})
source_group("util" FILES ${COMMON_FILE})
source_group("optical flow" FILES ${OF_FILE})
source_group("spmbp" FILES ${SPMBP_FILE})
target_link_libraries(spmbpOF ${OpenCV_LIBS})