-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (22 loc) · 944 Bytes
/
CMakeLists.txt
File metadata and controls
31 lines (22 loc) · 944 Bytes
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
# © 2025 AO Kaspersky Lab
# Licensed under the MIT License
cmake_minimum_required (VERSION 3.29)
project (sequence_example)
# Initialize the CMake library for the KasperskyOS SDK.
include (platform)
# Statically link executable files.
initialize_platform (FORCE_STATIC)
# Connect the CMake library named nk for working with the NK compiler (nk-gen-c).
include (platform/nk)
# Set the linker and compiler flags.
project_header_default ("STANDARD_GNU_17:YES" "EXTRA_STRICT_WARNINGS:YES")
set (RESOURCES ${CMAKE_SOURCE_DIR}/resources)
set (NK_RESOURCES ${RESOURCES}/xdl)
nk_include_directories (${NK_RESOURCES})
# Set recommended compiler flags against vulnerabilities.
add_compile_options (-fPIE -Wall -Wextra -Wconversion -Wsign-conversion
-Wformat=2 -Wformat-security -Werror=format-security)
include_directories (${RESOURCES}/include)
add_subdirectory (reader)
add_subdirectory (writer)
add_subdirectory (einit)