better template

This commit is contained in:
camila314 2022-05-08 17:08:14 -05:00
parent 9c39c8ebde
commit 8aec06aaf2
3 changed files with 39 additions and 6 deletions

View file

@ -1,7 +1,25 @@
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
cmake_minimum_required(VERSION 3.3.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project($Template VERSION 0.1.0 LANGUAGES C CXX)
set(PROJECT_NAME ExampleMod)
set(SOURCE_FILES main.cpp sdk/include/implicitEntry.cpp)
set(BINARY_NAME $Template)
include(sdk/Geode.cmake)
project(${PROJECT_NAME} VERSION 1.0.0)
add_library(${PROJECT_NAME} SHARED main.cpp)
add_compile_definitions(EXPORTING_MOD)
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
find_path(GEODE_SDK_PATH
NAMES Geode.cmake
PATHS $ENV{GEODE_SUITE}/sdk /Users/Shared/Geode/SDK/suite/sdk /usr/local/geode/sdk
DOC "Geode SDK path."
REQUIRED
)
include(${GEODE_SDK_PATH}/Geode.cmake)
setup_geode_mod()
create_geode_file(${PROJECT_NAME})

View file

@ -1,3 +1,3 @@
# $Template
# Template
This is where she makes a mod.

15
mod.json Normal file
View file

@ -0,0 +1,15 @@
{
"geode": 1,
"version": "v1.0.0",
"id": "com.you.example",
"name": "Example",
"developer": "You",
"description": "example mod",
"binary": "ExampleMod",
"dependencies": [
{
"id": "com.geode.api",
"required": true
}
]
}