-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
executable file
·114 lines (105 loc) · 3.28 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
cmake_minimum_required(VERSION 3.18)
project(figcone VERSION 3.2.0)
include(external/seal_lake)
SealLake_IsInstallEnabled(INSTALL_FIGCONE_TREE)
SealLake_Import(
figcone_tree 2.1.0
GIT_REPOSITORY https://github.com/kamchatka-volcano/figcone_tree.git
GIT_TAG v2.1.0
)
option(FIGCONE_USE_NAMEOF "Enable automatic registration of struct field names using the nameof library" ON)
if (FIGCONE_USE_NAMEOF)
SealLake_IsInstallEnabled(NAMEOF_OPT_INSTALL)
SealLake_Bundle(
NAME figcone_nameof
SKIP_LOAD
GIT_REPOSITORY https://github.com/Neargye/nameof.git
GIT_TAG v0.10.4
DESTINATION include/figcone/detail/external
FILES include/nameof.hpp
TEXT_REPLACEMENTS
"namespace nameof" "namespace figcone::nameof"
"NAMEOF_" "FIGCONE_NAMEOF_"
)
endif ()
SealLake_Bundle(
NAME figcone_pfr
SKIP_LOAD
GIT_REPOSITORY https://github.com/apolukhin/pfr_non_boost.git
GIT_TAG 2.2.0
DESTINATION include/figcone/detail/external
DIRECTORIES include/pfr
TEXT_REPLACEMENTS
"namespace pfr" "namespace figcone::pfr"
"::pfr::" "figcone::pfr::"
"PFR_" "FIGCONE_PFR_"
"<pfr/" "\""
".hpp>" ".hpp\""
)
SealLake_Bundle(
NAME figcone_prf_detail
SKIP_LOAD
GIT_REPOSITORY https://github.com/apolukhin/pfr_non_boost.git
GIT_TAG 2.2.0
DESTINATION include/figcone/detail/external/pfr/detail
WILDCARDS include/pfr/detail/*
TEXT_REPLACEMENTS
"namespace pfr" "namespace figcone::pfr"
"::pfr::" "figcone::pfr::"
"PFR_" "FIGCONE_PFR_"
"<pfr/detail/" "\""
"<pfr/" "\"../"
".hpp>" ".hpp\""
)
SealLake_Bundle(
NAME figcone_prf_h
SKIP_LOAD
GIT_REPOSITORY https://github.com/apolukhin/pfr_non_boost.git
GIT_TAG 2.2.0
DESTINATION include/figcone/detail/external/
FILES include/pfr.hpp
TEXT_REPLACEMENTS
"namespace pfr" "namespace figcone::pfr"
"PFR_" "FIGCONE_PFR_"
"<pfr/" "\"pfr/"
".hpp>" ".hpp\""
)
SealLake_Bundle(
NAME figcone_sfun
GIT_REPOSITORY https://github.com/kamchatka-volcano/sfun.git
GIT_TAG v5.1.0
DESTINATION include/figcone/detail/external
DIRECTORIES include/sfun
TEXT_REPLACEMENTS
"namespace sfun" "namespace figcone::sfun"
"SFUN_" "FIGCONE_SFUN_"
)
SealLake_IsInstallEnabled(INSTALL_FIGCONE_FORMATS)
add_subdirectory(formats)
if (FIGCONE_USE_NAMEOF AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set(CPP_STANDARD_FEATURE cxx_std_20)
else()
set(CPP_STANDARD_FEATURE cxx_std_17)
endif ()
SealLake_HeaderOnlyLibrary(
COMPILE_FEATURES ${CPP_STANDARD_FEATURE}
LIBRARIES
figcone::figcone_tree
DEPENDENCIES
figcone_tree 2.1.0
)
if (FIGCONE_USE_ALL OR FIGCONE_USE_JSON OR FIGCONE_USE_YAML OR FIGCONE_USE_TOML OR FIGCONE_USE_INI OR FIGCONE_USE_XML OR FIGCONE_USE_SHOAL)
SealLake_AddLibraries(
figcone::figcone_formats
)
SealLake_AddDependencies(
figcone_formats 1.2.0
)
endif ()
SealLake_OptionalSubProjects(
tests
tests_cpp20
tests_static_refl
examples
examples_static_refl
)