-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
61 lines (49 loc) · 1.24 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
#
# Config Provisioning Tool
#
# Copyright (C) 2019-2024, HENSOLDT Cyber GmbH
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# For commercial licensing, contact: [email protected]
#
cmake_minimum_required(VERSION 3.10)
#-------------------------------------------------------------------------------
# use the SDK
find_package("os-sdk" REQUIRED)
os_sdk_create_config_project("os_sdk_config" "config.h")
os_sdk_import_core_api()
os_sdk_import_libs()
#-------------------------------------------------------------------------------
add_subdirectory(src/lib)
#-------------------------------------------------------------------------------
project(cpt C)
add_executable(${PROJECT_NAME}
src/ConfigTool.c
)
find_package(LibXml2 REQUIRED)
target_include_directories(${PROJECT_NAME}
PRIVATE
src/include
${LIBXML2_INCLUDE_DIR}
)
target_compile_options(${PROJECT_NAME}
PUBLIC
-Wall
-Werror
)
target_compile_definitions(${PROJECT_NAME}
PRIVATE
OS_CONFIG_SERVICE_BACKEND_FILESYSTEM
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
os_sdk_config
os_core_api
lib_debug
lib_host
os_configuration
os_filesystem
cpt_lib
${LIBXML2_LIBRARIES}
)