mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-03 18:06:02 -04:00
19 lines
582 B
CMake
19 lines
582 B
CMake
cmake_minimum_required(VERSION 3.25)
|
|
project(my_mod CXX)
|
|
|
|
# Path to the dusk source root.
|
|
# Set this to your dusk submodule:
|
|
# set(DUSK_DIR "${CMAKE_CURRENT_SOURCE_DIR}/dusk")
|
|
set(DUSK_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../.." CACHE PATH "Path to dusk source root")
|
|
|
|
add_subdirectory("${DUSK_DIR}" dusk EXCLUDE_FROM_ALL)
|
|
|
|
# Output .dusk packages next to the build directory by default.
|
|
set(DUSK_MODS_OUTPUT_DIR "${CMAKE_SOURCE_DIR}/mods" CACHE PATH "Directory to write .dusk packages into")
|
|
|
|
add_dusk_mod(template_mod
|
|
SOURCES src/mod.cpp
|
|
MOD_JSON mod.json
|
|
RES_DIR res
|
|
)
|