forked from RbxStu/RbxStu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
103 lines (80 loc) · 2.52 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
cmake_minimum_required(VERSION 3.26)
project(Module)
add_definitions(-DLUAI_GCMETRICS) # Force GC metrics on Luau.
set(BUILD_SHARED_LIBS OFF)
set(PROJECT_NAME Module)
set(CMAKE_CXX_STANDARD 23)
set(TBS_MT ON) # Enable TBS multithreading
set(TBS_USE_SSE2 ON) # Enable TBS SSE2 support
set(TBS_USE_AVX ON) # Enable TBS AVX support
set(TBS_USE_ETL OFF) # Enable ETL Integration Usage by TBS
add_library(Module SHARED
main.cpp
Execution.cpp
Environment/Environment.cpp
Execution.cpp
Utilities.cpp
Closures.cpp
Environment/EnvironmentLibrary.cpp
Environment/ClosureLibrary.cpp
Environment/DebugLibrary.cpp
Scheduler.cpp
Security.cpp
Hook.cpp
Environment/WebsocketLibrary.cpp
Environment/FilesystemLibrary.cpp
Communication.cpp
Communication.hpp
Environment/CryptLibrary.cpp
Scanner.cpp
Log.cpp
# RBXScheduler.cpp
)
target_include_directories(Module PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(Module PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Dependencies")
# Dependencies
# Curl For People
# FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git
# GIT_TAG 3b15fa82ea74739b574d705fea44959b58142eb8)
# FetchContent_MakeAvailable(cpr)
#rcmp
# FetchContent_Declare(rcmp GIT_REPOSITORY https://github.com/Smertig/rcmp.git
# GIT_TAG f5f75ae00a57c67fe41f79fd59c4b7f6997b999e)
# FetchContent_MakeAvailable(rcmp)
# cpr
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/cpr")
# Luau
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/Luau")
# minhook
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/Minhook")
# Imgui
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/Imgui")
# oxorany
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/oxorany")
# IXWebSocket
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/IXWebSocket")
# cryptopp
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/cryptopp-cmake")
find_package(lz4 CONFIG REQUIRED)
find_package(OpenSSL CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME}
PRIVATE
# minhook
minhook
# Curl For People
cpr::cpr
# Luau
Luau.Compiler
Luau.Ast
# Luau.Analysis
Luau.VM
Luau.VM.Internals
# Imgui
Imgui
# oxorany
oxorany
Dbghelp.lib
ixwebsocket
lz4::lz4
cryptopp::cryptopp
)