-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (30 loc) · 1006 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
38
cmake_minimum_required(VERSION 3.12)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(sdb_version)
project(std_detector_buffer
LANGUAGES CXX
VERSION ${SDB_VERSION}
HOMEPAGE_URL "https://git.psi.ch/controls-ci/std_detector_buffer"
)
include(sdb_settings)
set(CMAKE_CXX_STANDARD 23)
include(sdb_conan)
conan_config_install(ITEM ${CMAKE_HOME_DIRECTORY}/conan/settings.yml)
conan_config_install(ITEM ${CMAKE_HOME_DIRECTORY}/conan/remotes.json)
conan_cmake_autodetect(DETECTED_SETTINGS)
conan_cmake_install(
PATH_OR_REFERENCE ${CMAKE_SOURCE_DIR}/conan
BUILD missing
SETTINGS ${DETECTED_SETTINGS}
SETTINGS compiler.psi=True # ensure that all packages are built or used from local cache
SETTINGS os=Linux
SETTINGS os_build=Linux
)
include(sdb_packaging)
set(CPACK_PACKAGE_VENDOR "Paul Scherrer Institute")
set(CPACK_GENERATOR "RPM")
include(CPack)
include(CTest)
add_subdirectory("source")
include(sdb_pyinstall)
add_subdirectory("pyinstaller")