-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathCMakeLists.txt
119 lines (112 loc) · 4.2 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
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
set(SUBPROJECT_NAME ImageIO)
project(${SUBPROJECT_NAME})
cmake_minimum_required(VERSION 2.8)
set(${SUBPROJECT_NAME}_VERSION_MAJOR 0)
set(${SUBPROJECT_NAME}_VERSION_MINOR 1)
message(STATUS "=== Configuring ${SUBPROJECT_NAME} ===")
# find dependencies
find_package(Boost 1.48.0 COMPONENTS system filesystem REQUIRED)
find_package(OpenCV 2.4.3 REQUIRED core highgui)
if(WITH_MSKINECT_SDK)
# Include Microsoft Kinect SDK (Windows)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
find_package(KinectSDK REQUIRED)
include_directories(${KinectSDK_INCLUDE_DIR})
set(KINECT_LIBNAME ${KinectSDK_LIBRARIES})
add_definitions(-DWITH_MSKINECT_SDK)
else()
set(KINECT_LIBNAME "")
endif()
# source and header files
set(HEADERS
include/imageio/BobotLandmarkSink.hpp
include/imageio/BobotLandmarkSource.hpp
include/imageio/CameraImageSource.hpp
include/imageio/DefaultNamedLandmarkSource.hpp
include/imageio/DidLandmarkFormatParser.hpp
include/imageio/DidLandmarkSink.hpp
include/imageio/DirectoryImageSink.hpp
include/imageio/DirectoryImageSource.hpp
include/imageio/DlibImageSource.hpp
include/imageio/EmptyLandmarkSource.hpp
include/imageio/FddbLandmarkSink.hpp
include/imageio/FileImageSource.hpp
include/imageio/FileListImageSource.hpp
include/imageio/IbugLandmarkFormatParser.hpp
include/imageio/ImageSink.hpp
include/imageio/ImageSource.hpp
include/imageio/KinectImageSource.hpp
include/imageio/LabeledImageSource.hpp
include/imageio/Landmark.hpp
include/imageio/LandmarkCollection.hpp
include/imageio/LandmarkFileGatherer.hpp
include/imageio/LandmarkFormatParser.hpp
include/imageio/LandmarkMapper.hpp
include/imageio/LandmarkSource.hpp
include/imageio/LandmarksHelper.hpp
include/imageio/LfpwLandmarkFormatParser.hpp
include/imageio/LstLandmarkFormatParser.hpp
include/imageio/ModelLandmark.hpp
include/imageio/MuctLandmarkFormatParser.hpp
include/imageio/NamedLabeledImageSource.hpp
include/imageio/NamedLandmarkSink.hpp
include/imageio/NamedLandmarkSource.hpp
include/imageio/OrderedLabeledImageSource.hpp
include/imageio/OrderedLandmarkSink.hpp
include/imageio/PascStillEyesLandmarkFormatParser.hpp
include/imageio/RectLandmark.hpp
include/imageio/RectLandmarkSink.hpp
include/imageio/RepeatingFileImageSource.hpp
include/imageio/SingleLandmarkSink.hpp
include/imageio/SingleLandmarkSource.hpp
include/imageio/SimpleModelLandmarkFormatParser.hpp
include/imageio/SimpleModelLandmarkSink.hpp
include/imageio/SimpleRectLandmarkFormatParser.hpp
include/imageio/TlmsLandmarkFormatParser.hpp
include/imageio/VideoImageSink.hpp
include/imageio/VideoImageSource.hpp
)
set(SOURCE
src/imageio/BobotLandmarkSink.cpp
src/imageio/BobotLandmarkSource.cpp
src/imageio/CameraImageSource.cpp
src/imageio/DefaultNamedLandmarkSource.cpp
src/imageio/DidLandmarkFormatParser.cpp
src/imageio/DidLandmarkSink.cpp
src/imageio/DirectoryImageSink.cpp
src/imageio/DirectoryImageSource.cpp
src/imageio/DlibImageSource.cpp
src/imageio/FddbLandmarkSink.cpp
src/imageio/FileImageSource.cpp
src/imageio/FileListImageSource.cpp
src/imageio/IbugLandmarkFormatParser.cpp
src/imageio/KinectImageSource.cpp
src/imageio/LandmarkCollection.cpp
src/imageio/LandmarkFileGatherer.cpp
src/imageio/LandmarkMapper.cpp
src/imageio/LfpwLandmarkFormatParser.cpp
src/imageio/LstLandmarkFormatParser.cpp
src/imageio/ModelLandmark.cpp
src/imageio/MuctLandmarkFormatParser.cpp
src/imageio/NamedLabeledImageSource.cpp
src/imageio/OrderedLabeledImageSource.cpp
src/imageio/PascStillEyesLandmarkFormatParser.cpp
src/imageio/RectLandmark.cpp
src/imageio/RectLandmarkSink.cpp
src/imageio/RepeatingFileImageSource.cpp
src/imageio/SingleLandmarkSink.cpp
src/imageio/SingleLandmarkSource.cpp
src/imageio/SimpleModelLandmarkFormatParser.cpp
src/imageio/SimpleModelLandmarkSink.cpp
src/imageio/SimpleRectLandmarkFormatParser.cpp
src/imageio/TlmsLandmarkFormatParser.cpp
src/imageio/VideoImageSink.cpp
src/imageio/VideoImageSource.cpp
)
include_directories("include")
include_directories(${Logging_SOURCE_DIR}/include)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
# make library
add_library(${SUBPROJECT_NAME} ${SOURCE} ${HEADERS})
target_link_libraries(${SUBPROJECT_NAME} Logging ${KINECT_LIBNAME} ${Boost_LIBRARIES} ${OpenCV_LIBS})