forked from acidicoala/ScreamAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (42 loc) · 1.44 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
cmake_minimum_required(VERSION 3.21)
include(KoalaBox/KoalaBox.cmake)
configure_globals(KoalaBox)
project(ScreamAPI VERSION 3.0.1)
set_32_and_64(ORIGINAL_DLL EOSSDK-Win32-Shipping EOSSDK-Win64-Shipping)
configure_version_resource("Free DLC for everyone ʕ ᵔᴥᵔʔ")
set(DLL_INPUT "${RES_DIR}/${ORIGINAL_DLL}.dll")
set(
EOS_SOURCES
"${SRC_DIR}/eos/init.cpp"
"${SRC_DIR}/eos/logging.cpp"
"${SRC_DIR}/eos/metrics.cpp"
"${SRC_DIR}/eos/ecom_misc.cpp"
"${SRC_DIR}/eos/ecom_items.cpp"
"${SRC_DIR}/eos/ecom_entitlements.cpp"
)
configure_exports_generator()
configure_linker_exports(
true
"${ORIGINAL_DLL}_o"
"${DLL_INPUT}"
"${SRC_DIR}/eos"
${EOS_SOURCES}
)
configure_build_config(extra_build_config)
configure_library(
SHARED
${EOS_SOURCES}
${SRC_DIR}/scream_api/scream_api.cpp
${SRC_DIR}/main.cpp
${KOALABOX_SRC_DIR}/koalabox/dll_monitor/dll_monitor.cpp
${KOALABOX_SRC_DIR}/koalabox/hook/hook.cpp
${KOALABOX_SRC_DIR}/koalabox/loader/loader.cpp
${KOALABOX_SRC_DIR}/koalabox/file_logger/file_logger.cpp
${KOALABOX_SRC_DIR}/koalabox/util/util.cpp
${KOALABOX_SRC_DIR}/koalabox/win_util/win_util.cpp
${LINKER_EXPORTS}
)
configure_precompile_headers(${CMAKE_PROJECT_NAME} ${SRC_DIR}/pch.hpp)
configure_output_name(${ORIGINAL_DLL})
configure_include_directories(${CMAKE_SOURCE_DIR}/include)
configure_dependencies(${CMAKE_PROJECT_NAME} cpr nlohmann_json PolyHook_2 spdlog)