-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (30 loc) · 1013 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
cmake_minimum_required(VERSION 3.17)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(TARGET_NAME anticarium_pi)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
list(APPEND CMAKE_PREFIX_PATH /usr/local/lib/cmake/)
include(ExternLibs)
include(HunterGate)
HunterGate(
URL "https://github.com/cpp-pm/hunter/archive/v0.23.297.tar.gz"
SHA1 "3319fe6a3b08090df7df98dee75134d68e2ef5a3"
)
file(READ VERSION CURRENT_VERSION)
project(${TARGET_NAME} VERSION ${CURRENT_VERSION})
message(STATUS "Adding ${TARGET_NAME} v${CURRENT_VERSION}")
hunter_add_package(nlohmann_json)
hunter_add_package(spdlog)
find_package(Qt5 COMPONENTS Core)
FETCHSHAREDTYPES()
add_subdirectory(apps/server_app)
add_subdirectory(apps/camera_app)
add_subdirectory(src/config)
add_subdirectory(src/anticarium_pi)
add_subdirectory(src/anticarium_camera)
add_subdirectory(libs/pid)
if(ADD_${TARGET_NAME}_TESTS)
add_subdirectory(tests)
endif()