forked from facebook/fatal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
70 lines (58 loc) · 1.24 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
cmake_minimum_required (VERSION 3.12)
project (fatal)
set(fatal_VERSION_MAJOR 1)
set(fatal_VERSION_MINOR 0)
#file(
# GLOB_RECURSE
# LIBFATAL_SOURCE_HEADERS
# CONFIGURE_DEPENDS
# LIST_DIRECTORIES false
# "*.h"
#)
#message(STATUS "libfatal headers: ${LIBFATAL_SOURCE_HEADERS}")
#file(
# GLOB_RECURSE
# LIBFATAL_SOURCE_TESTS
# CONFIGURE_DEPENDS
# LIST_DIRECTORIES false
# "*_test.cpp"
#)
#message(STATUS "libfatal tests: ${LIBFATAL_SOURCE_TESTS}")
#file(
# GLOB_RECURSE
# LIBFATAL_SOURCE_BENCHMARKS
# CONFIGURE_DEPENDS
# LIST_DIRECTORIES false
# "*_benchmark.cpp"
#)
#message(STATUS "libfatal benchmarks: ${LIBFATAL_SOURCE_BENCHMARKS}")
add_library(libfatal INTERFACE)
target_compile_features(
libfatal
INTERFACE
cxx_std_17
)
target_compile_options(
libfatal
INTERFACE
-Wno-gnu-string-literal-operator-template
)
target_include_directories(
libfatal
INTERFACE
$<INSTALL_INTERFACE:include>
)
install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/fatal"
DESTINATION "${CMAKE_INSTALL_PREFIX}/include"
FILES_MATCHING PATTERN "*.h"
)
install(
TARGETS libfatal
DESTINATION "${CMAKE_INSTALL_PREFIX}"
EXPORT libfatal-config
)
install(
EXPORT libfatal-config
DESTINATION "${CMAKE_INSTALL_PREFIX}"
)