-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt.example
executable file
·217 lines (205 loc) · 12.1 KB
/
CMakeLists.txt.example
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
cmake_minimum_required(VERSION 2.8)
project("VIS-DSS")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -std=c++0x")
if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -fopenmp")
set(CMAKE_EXE_LINKER_FLAGS "-s")
endif()
# build summengine.a
add_library(summengine
src/engine/set.cpp
src/engine/SetFunctions.cc
src/engine/SparseFeature.cc
src/engine/DisparityMin.cc
src/engine/DisparitySum.cc
src/engine/FacilityLocation.cc
src/engine/FeatureBasedFunctions.cc
src/engine/GraphCutFunctions.cc
src/engine/ProbabilisticSetCover.cc
src/engine/SaturateCoverage.cc
src/engine/SetCover.cc
src/engine/mmr.cpp
src/engine/increment.cc
src/engine/lazyGreedyMax.cc
src/engine/naiveGreedyMax.cc
src/engine/streamgreedy.cc
src/utils/error.cc
src/utils/arguments.cc
)
######################################### Simple Video Summarizer Examples ########################################
include_directories(/usr/local/Cellar/opencv/3.4.1_2/include/ /usr/local/Cellar/opencv/3.4.1_2/include/opencv/ /Users/pratik/Git/vis-dss/src/engine/ /Users/pratik/Git/vis-dss/src/utils/ /Users/pratik/Git/vis-dss/src/videoSummarization/)
link_directories(/usr/local/Cellar/opencv/3.4.1_2/lib/)
add_executable(SimpleVideoSummExample src/utils/ShotDetector.cc src/videoSummarization/SimpleVideoSummarizer.cc src/utils/ColorUtils.cc src/utils/ImageUtils.cc examples/SimpleVideoSummExample.cc)
target_link_libraries(SimpleVideoSummExample
summengine -lopencv_imgproc
-lopencv_core
-lopencv_highgui
-lopencv_videoio
-lopencv_imgcodecs
-lopencv_bgsegm
-lopencv_video
-lopencv_objdetect
-lopencv_dnn
)
######################################### Simple Image Summarizer Examples ########################################
include_directories(/usr/local/Cellar/opencv/3.4.1_2/include/ /usr/local/Cellar/opencv/3.4.1_2/include/opencv/ /Users/pratik/Git/vis-dss/src/engine/ /Users/pratik/Git/vis-dss/src/utils/ /Users/pratik/Git/vis-dss/src/imageSummarization/)
link_directories(/usr/local/Cellar/opencv/3.4.1_2/lib/)
add_executable(SimpleImageSummExample src/utils/ShotDetector.cc src/imageSummarization/SimpleImageSummarizer.cc src/utils/ColorUtils.cc src/utils/ImageUtils.cc examples/SimpleImageSummExample.cc)
target_link_libraries(SimpleImageSummExample
summengine -lopencv_imgproc
-lopencv_core
-lopencv_highgui
-lopencv_videoio
-lopencv_imgcodecs
-lopencv_bgsegm
-lopencv_video
-lopencv_objdetect
-lopencv_dnn
)
######################################### Deep Video Summarizer Example ########################################
include_directories(/usr/local/Cellar/opencv/3.4.1_2/include/ /usr/local/Cellar/opencv/3.4.1_2/include/opencv/
/Users/pratik/Git/vis-dss/src/engine/ /Users/pratik/Git/vis-dss/src/utils/ /Users/pratik/Git/vis-dss/src/videoSummarization/
/Users/pratik/AITOE/aisaacv2_deps/caffe/include /usr/local/Cellar/openblas/0.2.20_1/include /usr/local/Cellar/glog/0.3.5_3/include)
link_directories(/usr/local/Cellar/opencv/3.4.1_2/lib/ /Users/pratik/AITOE/aisaacv2_deps/caffe/build/lib
/usr/local/Cellar/openblas/0.2.20_1/lib /usr/local/Cellar/glog/0.3.5_3/lib)
add_executable(DeepVideoSummExample examples/DeepVideoSummExample.cc src/utils/ShotDetector.cc src/utils/ColorUtils.cc
src/utils/caffeClassifier.cc src/videoSummarization/DeepSimVideoSummarizer.cc src/utils/ImageUtils.cc src/videoSummarization/DeepCoverVideoSummarizer.cc)
set_source_files_properties(examples/DeepVideoSummExample.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/utils/caffeClassifier.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/videoSummarization/DeepSimVideoSummarizer.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/videoSummarization/DeepCoverVideoSummarizer.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
target_link_libraries(DeepVideoSummExample
summengine -lopencv_imgproc -lcaffe -lglog
-lopencv_core
-lopencv_highgui
-lopencv_videoio
-lopencv_imgcodecs
-lopencv_bgsegm
-lopencv_video
-lopencv_objdetect
-lopencv_dnn
)
######################################### Deep Image Summarizer Example ########################################
include_directories(/usr/local/Cellar/opencv/3.4.1_2/include/ /usr/local/Cellar/opencv/3.4.1_2/include/opencv/
/Users/pratik/Git/vis-dss/src/engine/ /Users/pratik/Git/vis-dss/src/utils/ /Users/pratik/Git/vis-dss/src/imageSummarization/
/Users/pratik/AITOE/aisaacv2_deps/caffe/include /usr/local/Cellar/openblas/0.2.20_1/include /usr/local/Cellar/glog/0.3.5_3/include)
link_directories(/usr/local/Cellar/opencv/3.4.1_2/lib/ /Users/pratik/AITOE/aisaacv2_deps/caffe/build/lib
/usr/local/Cellar/openblas/0.2.20_1/lib /usr/local/Cellar/glog/0.3.5_3/lib)
add_executable(DeepImageSummExample examples/DeepImageSummExample.cc src/utils/ShotDetector.cc src/utils/ColorUtils.cc
src/utils/caffeClassifier.cc src/imageSummarization/DeepSimImageSummarizer.cc src/utils/ImageUtils.cc src/imageSummarization/DeepCoverImageSummarizer.cc)
set_source_files_properties(examples/DeepImageSummExample.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/utils/caffeClassifier.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/imageSummarization/DeepSimImageSummarizer.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/imageSummarization/DeepCoverImageSummarizer.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
target_link_libraries(DeepImageSummExample
summengine -lopencv_imgproc -lcaffe -lglog
-lopencv_core
-lopencv_highgui
-lopencv_videoio
-lopencv_imgcodecs
-lopencv_bgsegm
-lopencv_video
-lopencv_objdetect
-lopencv_dnn
)
######################################### Query Video Summarizer Example ########################################
include_directories(/usr/local/Cellar/opencv/3.4.1_2/include/ /usr/local/Cellar/opencv/3.4.1_2/include/opencv/
/Users/pratik/Git/vis-dss/src/engine/ /Users/pratik/Git/vis-dss/src/utils/ /Users/pratik/Git/vis-dss/src/videoSummarization/
/Users/pratik/AITOE/aisaacv2_deps/caffe/include /usr/local/Cellar/openblas/0.2.20_1/include /usr/local/Cellar/glog/0.3.5_3/include)
link_directories(/usr/local/Cellar/opencv/3.4.1_2/lib/ /Users/pratik/AITOE/aisaacv2_deps/caffe/build/lib
/usr/local/Cellar/openblas/0.2.20_1/lib /usr/local/Cellar/glog/0.3.5_3/lib)
add_executable(QueryVideoSummExample examples/QueryVideoSummExample.cc src/utils/ShotDetector.cc src/utils/ColorUtils.cc
src/utils/caffeClassifier.cc src/videoSummarization/QuerySimVideoSummarizer.cc src/utils/ImageUtils.cc)
set_source_files_properties(examples/QueryVideoSummExample.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/utils/caffeClassifier.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/videoSummarization/QuerySimVideoSummarizer.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
target_link_libraries(QueryVideoSummExample
summengine -lopencv_imgproc -lcaffe -lglog
-lopencv_core
-lopencv_highgui
-lopencv_videoio
-lopencv_imgcodecs
-lopencv_bgsegm
-lopencv_video
-lopencv_objdetect
)
######################################### Query Image Summarizer Example ########################################
include_directories(/usr/local/Cellar/opencv/3.4.1_2/include/ /usr/local/Cellar/opencv/3.4.1_2/include/opencv/
/Users/pratik/Git/vis-dss/src/engine/ /Users/pratik/Git/vis-dss/src/utils/ /Users/pratik/Git/vis-dss/src/imageSummarization/
/Users/pratik/AITOE/aisaacv2_deps/caffe/include /usr/local/Cellar/openblas/0.2.20_1/include /usr/local/Cellar/glog/0.3.5_3/include)
link_directories(/usr/local/Cellar/opencv/3.4.1_2/lib/ /Users/pratik/AITOE/aisaacv2_deps/caffe/build/lib
/usr/local/Cellar/openblas/0.2.20_1/lib /usr/local/Cellar/glog/0.3.5_3/lib)
add_executable(QueryImageSummExample examples/QueryImageSummExample.cc src/utils/ColorUtils.cc
src/utils/caffeClassifier.cc src/imageSummarization/QuerySimImageSummarizer.cc src/utils/ImageUtils.cc)
set_source_files_properties(examples/QueryImageSummExample.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/utils/caffeClassifier.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/imageSummarization/QuerySimImageSummarizer.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
target_link_libraries(QueryImageSummExample
summengine -lopencv_imgproc -lcaffe -lglog
-lopencv_core
-lopencv_highgui
-lopencv_videoio
-lopencv_imgcodecs
-lopencv_bgsegm
-lopencv_video
-lopencv_objdetect
)
######################################### Entity Face Video Summarizer Example ########################################
include_directories(/usr/local/Cellar/opencv/3.4.1_2/include/ /usr/local/Cellar/opencv/3.4.1_2/include/opencv/
/Users/pratik/Git/vis-dss/src/engine/ /Users/pratik/Git/vis-dss/src/utils/ /Users/pratik/Git/vis-dss/src/videoSummarization/
/Users/pratik/AITOE/aisaacv2_deps/caffe/include /usr/local/Cellar/openblas/0.2.20_1/include /usr/local/Cellar/glog/0.3.5_3/include /opt/X11/include)
link_directories(/usr/local/Cellar/opencv/3.4.1_2/lib/ /Users/pratik/AITOE/aisaacv2_deps/caffe/build/lib
/usr/local/Cellar/openblas/0.2.20_1/lib /usr/local/Cellar/glog/0.3.5_3/lib /opt/X11/lib)
add_executable(EntityFaceSummExample examples/EntityFaceSummExample.cc src/utils/caffeClassifier.cc src/utils/dnnClassifier.cc
src/utils/dlibClassifier.cc src/videoSummarization/EntitySimVideoSummarizer.cc src/utils/ImageUtils.cc src/utils/dlib/all/source.cpp)
set_source_files_properties(examples/EntityFaceSummExample.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/utils/caffeClassifier.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/videoSummarization/EntitySimVideoSummarizer.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
target_link_libraries(EntityFaceSummExample
summengine -lopencv_imgproc -lcaffe -lglog
-lopencv_core
-lopencv_highgui
-lopencv_videoio
-lopencv_imgcodecs
-lopencv_bgsegm
-lopencv_video
-lopencv_objdetect
-lopencv_dnn -lX11
)
######################################### Entity Object Video Summarizer Example ########################################
include_directories(/usr/local/Cellar/opencv/3.4.1_2/include/ /usr/local/Cellar/opencv/3.4.1_2/include/opencv/
/Users/pratik/Git/vis-dss/src/engine/ /Users/pratik/Git/vis-dss/src/utils/ /Users/pratik/Git/vis-dss/src/videoSummarization/
/Users/pratik/AITOE/aisaacv2_deps/caffe/include /usr/local/Cellar/openblas/0.2.20_1/include /usr/local/Cellar/glog/0.3.5_3/include /opt/X11/include)
link_directories(/usr/local/Cellar/opencv/3.4.1_2/lib/ /Users/pratik/AITOE/aisaacv2_deps/caffe/build/lib
/usr/local/Cellar/openblas/0.2.20_1/lib /usr/local/Cellar/glog/0.3.5_3/lib /opt/X11/lib)
add_executable(EntityObjectSummExample examples/EntityObjectSummExample.cc src/utils/caffeClassifier.cc src/utils/dnnClassifier.cc
src/utils/dlibClassifier.cc src/videoSummarization/EntitySimVideoSummarizer.cc src/utils/ImageUtils.cc src/utils/dlib/all/source.cpp)
set_source_files_properties(examples/EntityObjectSummExample.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/utils/caffeClassifier.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
set_source_files_properties(src/videoSummarization/EntitySimVideoSummarizer.cc PROPERTIES COMPILE_FLAGS "-DCPU_ONLY" )
target_link_libraries(EntityObjectSummExample
summengine -lopencv_imgproc -lcaffe -lglog
-lopencv_core
-lopencv_highgui
-lopencv_videoio
-lopencv_imgcodecs
-lopencv_bgsegm
-lopencv_video
-lopencv_objdetect
-lopencv_dnn -lX11
)
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "VIS-DSS")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
SET(CPACK_PACKAGE_VERSION_MINOR "0")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
IF(WIN32 AND NOT UNIX)
SET(CPACK_NSIS_HELP_LINK "")
SET(CPACK_NSIS_URL_INFO_ABOUT "")
SET(CPACK_NSIS_CONTACT "rishabhnad@gmail.com")
SET(CPACK_NSIS_MODIFY_PATH ON)
ELSE(WIN32 AND NOT UNIX)
SET(CPACK_SOURCE_STRIP_FILES "")
ENDIF(WIN32 AND NOT UNIX)