-
Notifications
You must be signed in to change notification settings - Fork 15
/
cmake.toml
62 lines (53 loc) · 1.34 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
[cmake]
version = "3.15"
cmkr-include = "cmake/cmkr.cmake"
[project]
name = "portal2-internal"
languages = ["C", "CXX"]
description = "Portal 2\\MEL\\Reloaded internal modification"
[options]
P2_BUILD_INJECTOR = false
[conditions]
build-injector = "P2_BUILD_INJECTOR"
#
# Dependencies
#
[target.minhook]
type = "static"
alias = "TsudaKageyu::minhook"
sources = [
"portal2-internal/util/hooking/detours/mh/**.c"
]
headers = [
"portal2-internal/util/hooking/detours/mh/**.h"
]
#
# portal2-internal dll
#
[target.portal2-internal]
type = "shared"
condition = "windows"
include-directories = [
"portal2-internal/",
"portal2-internal/hack/menu/imgui",
"portal2-internal/hack/menu/imgui/impls",
]
sources = [
"portal2-internal/**.cpp", "portal2-internal/**.hpp"
]
compile-features = ["cxx_std_23"]
link-libraries = ["TsudaKageyu::minhook"]
msvc.private-compile-options = ["/MP"]
clang.private-compile-options = []
gcc.private-compile-options = []
#
# injector
#
[target.portal2-injector]
condition = "build-injector"
type = "executable"
sources = ["portal2-injector/**.cpp", "portal2-injector/**.hpp"]
compile-features = ["cxx_std_23"]
msvc.private-compile-options = ["/MP"]
clang.private-compile-options = []
gcc.private-compile-options = []