forked from TheSillyDoggo/GeodeMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (41 loc) · 1.33 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
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if ("${GEODE_TARGET_PLATFORM}" STREQUAL "iOS" OR IOS)
set(CMAKE_OSX_ARCHITECTURES "arm64")
add_definitions(-DGLES_SILENCE_DEPRECATION)
else()
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
endif()
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
project(CheatClient VERSION 1.0.0)
file(GLOB SOURCES
src/*.cpp
src/*/*.cpp
src/*/*/*.cpp
)
file(GLOB OBJC_SOURCES
src/*.mm
src/*/*.mm
src/*/*/*.mm
)
add_library(${PROJECT_NAME} SHARED ${SOURCES})
# Windows specific settings
if (WIN32)
# Disable annoying warnings
target_compile_definitions(${PROJECT_NAME} PRIVATE _CRT_SECURE_NO_WARNINGS)
# Export all symbols for better debugging
set_target_properties(${PROJECT_NAME} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
if (NOT DEFINED ENV{GEODE_SDK})
message(FATAL_ERROR "Unable to find Geode SDK! Please define GEODE_SDK environment variable to point to Geode")
else()
message(STATUS "Found Geode: $ENV{GEODE_SDK}")
endif()
add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode)
include_directories(include)
add_definitions(-DSTATUS_TEXTS)
add_definitions(-DQOLMOD_EXPORTING)
CPMAddPackage("gh:matcool/gd-imgui-cocos#09a9555")
target_link_libraries(${PROJECT_NAME} imgui-cocos)
setup_geode_mod(${PROJECT_NAME})