-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
74 lines (57 loc) · 2.08 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 3.5)
project(animeloop-cli)
find_package(PkgConfig REQUIRED)
add_subdirectory(${PROJECT_SOURCE_DIR}/cxxopts)
include_directories(${PROJECT_SOURCE_DIR}/cxxopts/include)
include_directories(${PROJECT_SOURCE_DIR}/research)
set(CMAKE_CXX_STANDARD 11)
IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
set(CLI_SOURCE_FILES
animeloop-cli/algorithm.cpp
animeloop-cli/algorithm.hpp
animeloop-cli/filter.cpp
animeloop-cli/filter.hpp
animeloop-cli/loop_video.cpp
animeloop-cli/loop_video.hpp
animeloop-cli/main.cpp
animeloop-cli/models.cpp
animeloop-cli/models.hpp
animeloop-cli/utils.cpp
animeloop-cli/utils.hpp
animeloop-cli/thread_pool.h
animeloop-cli/progress_bar.hpp
animeloop-cli/child_process.cpp
animeloop-cli/child_process.hpp)
add_executable(animeloop-cli ${CLI_SOURCE_FILES})
set(SIMILAR_SAME_SOURCE_FILES
animeloop-cli/algorithm.cpp
animeloop-cli/algorithm.hpp
research/similar_and_same.cpp)
add_executable(similar-and-same ${SIMILAR_SAME_SOURCE_FILES})
set(CUTS_SWITCH_SOURCE_FILES
animeloop-cli/algorithm.cpp
animeloop-cli/algorithm.hpp
animeloop-cli/utils.cpp
animeloop-cli/utils.hpp
research/cuts_switch.cpp)
add_executable(cuts-switch ${CUTS_SWITCH_SOURCE_FILES})
set(COLOR_SOURCE_FILES
research/color.cpp)
add_executable(color ${COLOR_SOURCE_FILES})
# Jsoncpp
pkg_check_modules(JSONCPP jsoncpp)
target_link_libraries(animeloop-cli ${JSONCPP_LIBRARIES})
### temp fix for Ubuntu ###
include_directories(animeloop-cli /usr/include/jsoncpp)
# OpenCV
find_package( OpenCV 3.2 REQUIRED )
target_link_libraries( animeloop-cli ${OpenCV_LIBS} )
target_link_libraries( similar-and-same ${OpenCV_LIBS})
target_link_libraries( cuts-switch ${OpenCV_LIBS})
target_link_libraries( color ${OpenCV_LIBS})
# Boost
find_package(Boost COMPONENTS filesystem date_time REQUIRED)
target_link_libraries( animeloop-cli ${Boost_LIBRARIES} )
target_link_libraries( cuts-switch ${Boost_LIBRARIES} )