-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathCMakeLists.txt
67 lines (49 loc) · 2.44 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
cmake_minimum_required(VERSION 2.8)
project(FakeFace)
find_package(dlib REQUIRED)
MESSAGE("dlib information:")
MESSAGE(STATUS " Using dlib-${dlib_VERSION}")
MESSAGE(STATUS " dlib_INCLUDE_DIRS: ${dlib_INCLUDE_DIRS}")
MESSAGE(STATUS " dlib_LIBRARIES: ${dlib_LIBRARIES}")
include_directories(${dlib_INCLUDE_DIRS})
find_package( OpenCV REQUIRED COMPONENTS core photo video objdetect calib3d features2d flann highgui imgproc imgcodecs)
MESSAGE("OpenCV information:")
MESSAGE(STATUS " OpenCV_INCLUDE_DIRS: ${OpenCV_INCLUDE_DIRS}")
MESSAGE(STATUS " OpenCV_LIBRARIES: ${OpenCV_LIBRARIES}")
MESSAGE(STATUS " OpenCV_LIBRARY_DIRS: ${OpenCV_LIBRARY_DIRS}")
include_directories( ${OpenCV_INCLUDE_DIRS} )
find_package( Boost 1.5.9 REQUIRED COMPONENTS filesystem system)
MESSAGE("Boost information:")
MESSAGE(STATUS " Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
MESSAGE(STATUS " Boost_LIBRARIES: ${Boost_LIBRARIES}")
MESSAGE(STATUS " Boost_LIBRARY_DIRS: ${Boost_LIBRARY_DIRS}")
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}/boost)
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
include_directories(${LandmarkDetector_SOURCE_DIR}/include)
include_directories(${FaceAnalyser_SOURCE_DIR}/include)
add_subdirectory(third/LandmarkDetector)
add_subdirectory(third/FaceAnalyser)
add_subdirectory(third/DirectShow/baseclasses)
add_subdirectory(third/DirectShow/filters/ezrgb24)
add_subdirectory(projects/VirtualCamManager)
add_subdirectory(projects/VirtualCamDevice)
add_dependencies (FaceAnalyser LandmarkDetector)
add_dependencies (ezrgb24 strmbase)
add_dependencies (VirtualCamDevice strmbase)
add_dependencies (VirtualCamManager FaceAnalyser)
# MESSAGE("Download shape predictor resource")
# set(MY_URL "http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2")
# set(MY_DOWNLOAD_PATH "d.d")
# set(MY_EXTRACTED_FILE "path/to/extracted/file")
# if (NOT EXISTS "${MY_DOWNLOAD_PATH}")
# file(DOWNLOAD "${MY_URL}" "${MY_DOWNLOAD_PATH}" INACTIVITY_TIMEOUT 5 SHOW_PROGRESS)
# endif()
set_target_properties( strmbase ezrgb24 LandmarkDetector FaceAnalyser VirtualCamDevice VirtualCamManager
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
# target_link_libraries(VirtualCamManager FaceAnalyser LandmarkDetector ${dlib_LIBRARIES})
# target_link_libraries(main FaceAnalyser LandmarkDetector ${dlib_LIBRARIES})