Skip to content

Commit

Permalink
update cmakelists maybe idk
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowCat98 committed Jul 27, 2024
1 parent 65ff7a5 commit b2db3b7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(iGeodeLib VERSION 1.0.0)

if(${GEODE_TARGET_PLATFORM} STREQUAL "iOS")
message(STATUS "building for ios uwu")
if(${GEODE_TARGET_PLATFORM} STREQUAL "iOS" OR IOS)
message(STATUS "building for ios :3")
unset(CMAKE_OSX_ARCHITECTURES)
set(CMAKE_OSX_ARCHITECTURES arm64)
set(CMAKE_OSX_DEPLOYMENT_TARGET "14.0")
set(CMAKE_SYSTEM_NAME "iOS")
find_library(LOCAL_AUTHENTICATION LocalAuthentication)
else()
message(STATUS "meow meow mrrp mrrp mrow :333")
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
endif()

project(Template VERSION 1.0.0)

# Set up the mod binary
add_library(${PROJECT_NAME} SHARED
src/iGeodeLib.mm
src/test.cpp
Expand All @@ -29,4 +31,5 @@ endif()

add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode)

setup_geode_mod(${PROJECT_NAME})
# Set up dependencies, resources, and link Geode.
setup_geode_mod(${PROJECT_NAME})

0 comments on commit b2db3b7

Please sign in to comment.