-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (37 loc) · 1.3 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
cmake_minimum_required(VERSION 3.29)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
cmake_policy(SET CMP0091 ${CMAKE_POLICY_DEFAULT_CMP0091})
project(DLSM VERSION ${CONAN_PACKAGE_VERSION} LANGUAGES CXX)
include(GNUInstallDirs)
include(cmake/Coverage.cmake)
include(cmake/Doxygen.cmake)
include(cmake/Linters.cmake)
include(cmake/Options.cmake)
include(cmake/Version.cmake)
include(cmake/Package.cmake)
configure_version(VERSION_HPP include/dlsm/Version.hpp.in)
add_subdirectory(fbs)
add_subdirectory(src)
add_executable (main src/main.cpp)
target_link_libraries (main PRIVATE dlsmRuntime)
install(TARGETS main dlsmRuntime Options
EXPORT DLSM-Development
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dlsm)
install(EXPORT DLSM-Development
DESTINATION cmake
FILE DLSM-Development.cmake
NAMESPACE DLSM::
COMPONENT DLSM-Development)
include(CTest)
if(BUILD_TESTING)
set(CMAKE_CTEST_ARGUMENTS -V) # Enable verbose output on test target
add_subdirectory(tests/apps)
add_subdirectory(tests/perf)
add_subdirectory(tests/unit)
endif()
include(CPack)