-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
39 lines (29 loc) · 969 Bytes
/
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
cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 17)
include("cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/cpp-pm/hunter/archive/v0.23.297.tar.gz"
SHA1 "3319fe6a3b08090df7df98dee75134d68e2ef5a3"
)
project(CompareFace)
hunter_add_package(CURL)
hunter_add_package(nlohmann_json)
find_package(CURL CONFIG REQUIRED)
find_package(nlohmann_json CONFIG REQUIRED)
add_library(${PROJECT_NAME} STATIC
${CMAKE_CURRENT_SOURCE_DIR}/sources/source.cpp
)
target_include_directories(${PROJECT_NAME} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include>"
)
add_executable(compare_face compareFace.cpp)
add_executable(detect_face detectFaces.cpp)
target_link_libraries(compare_face ${PROJECT_NAME}
CURL::libcurl
nlohmann_json::nlohmann_json
)
target_link_libraries(detect_face ${PROJECT_NAME}
CURL::libcurl
nlohmann_json::nlohmann_json
)