-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathCMakeLists.txt
35 lines (26 loc) · 995 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
# SPDX-License-Identifier: MIT
# Copyright 2022 Martin Schröder <[email protected]>
# Consulting: https://swedishembedded.com/consulting
# Training: https://swedishembedded.com/training
# This is a standalone CMake file for use without Zephyr
cmake_minimum_required(VERSION 3.12.2)
project (control VERSION 0.34.0)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(configure_tidy)
include(CTest)
option(SECONTROL_CLANG_TIDY "Build with clang-tidy static analysis" OFF)
add_subdirectory(doc)
add_subdirectory(src)
add_subdirectory(tests)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.34)")
install(TARGETS control
COMPONENT linapp
RUNTIME DESTINATION "/usr/"
LIBRARY DESTINATION "/usr/"
PUBLIC_HEADER DESTINATION "/control/"
DESTINATION "/usr/"
)
install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/include/control DESTINATION include COMPONENT devel)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Martin Schröder")
INCLUDE(CPack)