From b2db3b7159e0b263e330779045856284500f9ec2 Mon Sep 17 00:00:00 2001 From: YellowCat98 Date: Sat, 27 Jul 2024 13:54:44 +0100 Subject: [PATCH] update cmakelists maybe idk --- CMakeLists.txt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76d326c..705070e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 @@ -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}) \ No newline at end of file