mirror of
https://github.com/geode-sdk/example-mod.git
synced 2024-11-28 02:05:33 -05:00
better template
This commit is contained in:
parent
9c39c8ebde
commit
8aec06aaf2
3 changed files with 39 additions and 6 deletions
|
@ -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)
|
project(${PROJECT_NAME} VERSION 1.0.0)
|
||||||
set(BINARY_NAME $Template)
|
|
||||||
include(sdk/Geode.cmake)
|
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})
|
|
@ -1,3 +1,3 @@
|
||||||
# $Template
|
# Template
|
||||||
|
|
||||||
This is where she makes a mod.
|
This is where she makes a mod.
|
15
mod.json
Normal file
15
mod.json
Normal 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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue