File: CMakeLists.txt

package info (click to toggle)
libkf5kface 15.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,552 kB
  • ctags: 939
  • sloc: xml: 302,295; cpp: 7,603; makefile: 1
file content (33 lines) | stat: -rw-r--r-- 1,364 bytes parent folder | download
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
#
# Copyright (c) 2010-2014, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.

# Under Windows, Haar Cascade XML files used by Face Detection are not installed with OpenCV rules. Why ???
# Tested with OpenCV 2.4.9.
# So we generalize installation of these files directly through libkface.

file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.xml")
install(FILES ${files}
        DESTINATION ${DATA_INSTALL_DIR}/libkface/haarcascades
)

# ---------------------------------------------------------------

add_custom_command(OUTPUT face-funnel.data
                   COMMAND ${CMAKE_COMMAND} -E tar xz ${CMAKE_CURRENT_SOURCE_DIR}/face-funnel.data.tgz)

add_custom_target(extract_funnel_data ALL DEPENDS face-funnel.data)

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/face-funnel.data
        DESTINATION ${DATA_INSTALL_DIR}/libkface/alignment-congealing
)

#add_custom_command(OUTPUT flandmark_model.dat
#                   COMMAND ${CMAKE_COMMAND} -E tar xz ${CMAKE_CURRENT_SOURCE_DIR}/flandmark_model.dat.tgz)
#
#add_custom_target(extract_flandmark_data ALL DEPENDS flandmark_model.dat)
#
#install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flandmark_model.dat
#        DESTINATION ${DATA_INSTALL_DIR}/libkface/alignment-flandmark)