forked from microsoft/verona
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (35 loc) · 1.02 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
cmake_minimum_required(VERSION 3.14.0)
project(verona VERSION 1.0.0 LANGUAGES CXX)
include(FetchContent)
find_package(Threads REQUIRED)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(TRIESTE_BUILD_SAMPLES OFF)
FetchContent_Declare(
trieste
GIT_REPOSITORY https://github.com/microsoft/trieste
GIT_TAG 1e1448ca9e4ac158492bf8dbbd86b407c452fc0c
GIT_SHALLOW FALSE
)
FetchContent_MakeAvailable(trieste)
# Use snmalloc clangformat target
clangformat_targets()
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt
GIT_TAG 9.1.0
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(fmt)
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
# Installation instructions
set(CMAKE_INSTALL_PREFIX ${PROJECT_BINARY_DIR}/dist)
# Clear all existing files and folders from the install directory
install(CODE [[
file(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/.)
]])
# Copy the stdlib to the install directory
install(DIRECTORY std DESTINATION verona)
enable_testing()
add_subdirectory(src)
add_subdirectory(testsuite)