2023-09-17 10:52:52 -04:00
|
|
|
cmake_minimum_required(VERSION 3.21)
|
2022-10-10 16:42:19 -04:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2022-05-08 18:08:14 -04:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
2024-06-14 19:58:32 -04:00
|
|
|
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
|
2023-09-27 07:33:15 -04:00
|
|
|
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
2022-01-26 11:55:53 -05:00
|
|
|
|
2022-05-10 13:26:22 -04:00
|
|
|
project(Template VERSION 1.0.0)
|
2022-05-08 18:08:14 -04:00
|
|
|
|
2024-11-16 17:14:14 -05:00
|
|
|
add_library(${PROJECT_NAME} SHARED src/main.cpp)
|
2022-05-08 18:08:14 -04:00
|
|
|
|
2022-08-16 09:25:31 -04:00
|
|
|
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()
|
|
|
|
|
2023-06-27 00:49:06 -04:00
|
|
|
add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode)
|
2022-05-08 18:08:14 -04:00
|
|
|
|
2023-04-27 00:56:17 -04:00
|
|
|
setup_geode_mod(${PROJECT_NAME})
|