mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 11:17:08 -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
21 lines
457 B
CMake
21 lines
457 B
CMake
cmake_minimum_required(VERSION 3.3.0)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(PROJECT_NAME TestDependency)
|
|
|
|
project(${PROJECT_NAME} VERSION 1.0.0)
|
|
|
|
add_library(${PROJECT_NAME} SHARED main.cpp)
|
|
|
|
add_compile_definitions(EXPORTING_MOD)
|
|
|
|
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)
|