mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-12 09:01:17 -05:00
f9cda74b58
- loader checks if resources are correct at startup, if not, downloads them and replaces - add sha256 to hash - change hash to use paths instead of strings - cmake rework; GeodeFile.cmake now checks CLI version - add optional `DONT_INSTALL` argument to `create_geode_file` - test mods are now not installed by default - add package_geode_resources_now command for packaging resources at configure time and creating a header with their calculated hashes
19 lines
410 B
CMake
19 lines
410 B
CMake
cmake_minimum_required(VERSION 3.3.0)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(PROJECT_NAME TestMod)
|
|
|
|
project(${PROJECT_NAME} VERSION 1.0.0)
|
|
|
|
add_library(${PROJECT_NAME} SHARED main.cpp)
|
|
|
|
set(GEODE_LINK_SOURCE ON)
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
|
|
|
|
target_link_libraries(
|
|
${PROJECT_NAME}
|
|
geode-sdk
|
|
)
|
|
|
|
create_geode_file(${PROJECT_NAME} DONT_INSTALL)
|