-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (32 loc) · 1.1 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
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
project(MoreIcons VERSION 1.5.3)
add_library(${PROJECT_NAME} SHARED
src/api/MoreIconsAPI.cpp
src/classes/ButtonHooker.cpp
src/classes/LogLayer.cpp
src/hooks/AppDelegate.cpp
src/hooks/CharacterColorPage.cpp
src/hooks/GameManager.cpp
src/hooks/GJBaseGameLayer.cpp
src/hooks/GJGarageLayer.cpp
src/hooks/GJRobotSprite.cpp
src/hooks/LoadingLayer.cpp
src/hooks/MenuGameLayer.cpp
src/hooks/MenuLayer.cpp
src/hooks/PlayerObject.cpp
src/hooks/ProfilePage.cpp
src/hooks/SimplePlayer.cpp
src/MoreIcons.cpp
)
target_include_directories(${PROJECT_NAME} PRIVATE include)
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)
setup_geode_mod(${PROJECT_NAME})