-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (30 loc) · 1.32 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
# Papillon SDK - CMake File
# -----------------------------------------------------------------------------
# Description: Papillon Core Library
# -----------------------------------------------------------------------------
project(papillon-examples C CXX)
cmake_minimum_required(VERSION 3.1)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_LIST_DIR}/cmake/Modules")
include(FindPackageHandleStandardArgs)
# Enqueues all the Cmake variables starting with given prefix into given list
function (papillon_get_variables_with_prefix _prefix _varResult)
get_cmake_property(_vars VARIABLES)
string (REGEX MATCHALL "(^|;)${_prefix}[A-Za-z0-9_]*" _matchedVars "${_vars}")
set (${_varResult} ${_matchedVars} PARENT_SCOPE)
endfunction()
# Prints all the Cmake variables starting with given prefix
function (papillon_print_variables_with_prefix _prefix)
if(VERBOSE)
papillon_get_variables_with_prefix(${_prefix} matchedVars)
foreach (_var IN LISTS matchedVars)
message("${_var}=${${_var}}")
endforeach()
endif(VERBOSE)
endfunction()
find_package(Papillon)
papillon_print_variables_with_prefix(PAPILLON)
include_directories(${PAPILLON_INCLUDE_DIR})
link_directories(${PAPILLON_LIBRARIES})
add_subdirectory(MemoryStream)
add_subdirectory(MetaData)
add_subdirectory(FaceLogServer)