-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
70 lines (60 loc) · 1.71 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.18)
project(hypertextcpp VERSION 2.0.0 DESCRIPTION "hypertextcpp")
include(external/seal_lake)
SealLake_Import(cmdlime 2.7.0
GIT_REPOSITORY https://github.com/kamchatka-volcano/cmdlime
GIT_TAG v2.7.0
)
SealLake_Import(sfun 5.1.0
GIT_REPOSITORY https://github.com/kamchatka-volcano/sfun
GIT_TAG v5.1.0
)
SealLake_Import(gsl 4.0.0
GIT_REPOSITORY https://github.com/microsoft/GSL.git
GIT_TAG v4.0.0
)
SealLake_Bundle(
NAME range-v3
SKIP_LOAD
GIT_REPOSITORY https://github.com/ericniebler/range-v3
GIT_TAG 0.12.0
)
SealLake_Import(fmt 9.1.0
GIT_REPOSITORY https://github.com/fmtlib/fmt
GIT_TAG 9.1.0
)
set(SRC
src/codenode.cpp
src/control_flow_statement_node.cpp
src/main.cpp
src/procedurenode.cpp
src/nameutils.cpp
src/nodeextension.cpp
src/nodereader.cpp
src/sectionnode.cpp
src/streamreader.cpp
src/tagnode.cpp
src/textnode.cpp
src/transpiler.cpp
src/utils.cpp
src/node_utils.cpp
src/single_header_transpiler_renderer.cpp
src/shared_lib_transpiler_renderer.cpp
src/header_and_source_transpiler_renderer.cpp)
SealLake_Executable(
SOURCES ${SRC}
COMPILE_FEATURES cxx_std_20
PROPERTIES
CXX_EXTENSIONS OFF
INCLUDES ${SEAL_LAKE_SOURCE_range-v3}/include
LIBRARIES
cmdlime::cmdlime
sfun::sfun
Microsoft.GSL::GSL
fmt::fmt
)
SealLake_OptionalSubProjects(tests examples)
install(DIRECTORY shared_lib_api/include/hypertextcpp
COMPONENT shared_lib_api
EXCLUDE_FROM_ALL
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})