-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
43 lines (33 loc) · 1.13 KB
/
Copy pathCMakeLists.txt
File metadata and controls
43 lines (33 loc) · 1.13 KB
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
cmake_minimum_required(VERSION 3.20)
project(AKIR LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Hardening Flags
if(MSVC)
add_compile_options(/guard:cf /ZH:SHA_256 /GS /W4 /WX /utf-8)
add_link_options(/HIGHENTROPYVA /DYNAMICBASE /NXCOMPAT /GUARD:CF /CETCOMPAT)
endif()
# Include Directories für das gesamte Projekt
include_directories(src/agent)
find_package(unofficial-sqlite3 CONFIG REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(nlohmann_json CONFIG REQUIRED)
# Agent Executable
add_executable(AKIR_Agent
src/agent/main.cpp
src/agent/IntegrityGuard.cpp
src/agent/AdminAuth.cpp
)
target_link_libraries(AKIR_Agent PRIVATE unofficial::sqlite3::sqlite3 OpenSSL::SSL nlohmann_json::nlohmann_json)
# Tests Configuration
enable_testing()
find_package(GTest CONFIG REQUIRED)
# Test Executable
add_executable(AKIR_Tests
tests/test_auth_logic.cpp
src/agent/AdminAuth.cpp
)
target_link_libraries(AKIR_Tests PRIVATE GTest::gtest GTest::gtest_main OpenSSL::SSL nlohmann_json::nlohmann_json)
# Test Discovery (für ctest)
include(GoogleTest)
gtest_discover_tests(AKIR_Tests)