-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcmake.toml
107 lines (94 loc) · 2.05 KB
/
cmake.toml
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
[project]
name = "luagenny"
cmake-before="""
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)
option(LUAGENNY_BUILD_STATIC OFF)
message("${LUAGENNY_BUILD_STATIC}")
"""
[vcpkg]
version = "2022.08.15"
packages = [
"pegtl",
"lua",
"sol2"
]
[fetch-content.sdkgenny]
git = "https://github.com/cursey/sdkgenny.git"
tag = "5a6768a13d7d929cc7495d95d5f604593efcfd50"
[find-package]
pegtl = {}
lua = { required = false }
sol2 = { required = false }
[conditions]
static = "LUAGENNY_BUILD_STATIC"
shared = "NOT LUAGENNY_BUILD_STATIC"
[target.luagenny_static]
condition = "static"
type = "static"
sources = [
"src/**.cpp",
"src/**.hpp",
]
link-libraries = [
"lua",
"sol2",
"sdkgenny"
]
include-directories = [
"include",
]
compile-features = ["cxx_std_20"]
msvc.compile-options = ["/bigobj"]
clang.compile-options = ["-fdeclspec", "-Wno-ignored-attributes"]
compile-definitions = []
alias = "luagenny::luagenny"
[target.luagenny_static.properties]
OUTPUT_NAME="luagenny"
[target.luagenny_shared]
condition = "shared"
type = "shared"
sources = [
"src/**.cpp",
"src/**.hpp",
]
link-libraries = [
"lua",
"sol2",
"sdkgenny"
]
include-directories = [
"include",
]
compile-features = ["cxx_std_20"]
msvc.compile-options = ["/bigobj"]
clang.compile-options = ["-fdeclspec", "-Wno-ignored-attributes"]
compile-definitions = ["LUAGENNY_EXPORTS"]
alias = "luagenny::luagenny"
[target.luagenny_shared.properties]
OUTPUT_NAME="luagenny"
[target.repl]
type = "executable"
sources = ["test/Main.cpp"]
include-directories = [
"src",
]
link-libraries = [
"lua",
"sol2",
"luagenny::luagenny",
"sdkgenny::sdkgenny"
]
compile-features = ["cxx_std_20"]
[[test]]
name = "mytest"
command = "$<TARGET_FILE:repl>"
arguments = ["--test", "${CMAKE_CURRENT_SOURCE_DIR}/test/test.lua"]
configurations = ["Debug", "Release", "RelWithDebInfo", "MinSizeRelease"]
[[install]]
condition = "shared"
targets = ["luagenny_shared", "repl"]
destination = "bin"
[[install]]
condition = "static"
targets = ["luagenny_static", "repl"]
destination = "bin"