2022-02-28 18:01:25 +01:00
|
|
|
# Configure with [fxsdk build-fx] or [fxsdk build-cg], which provide the
|
|
|
|
# toolchain file and module path of the fxSDK
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project(Glacial)
|
|
|
|
|
|
|
|
include(GenerateG3A)
|
|
|
|
include(Fxconv)
|
|
|
|
find_package(Gint 2.1 REQUIRED)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
src/primitives.cpp
|
|
|
|
src/main.cpp
|
|
|
|
)
|
|
|
|
set(ASSETS_cg
|
|
|
|
assets-cg/levelsimple.png
|
|
|
|
assets-cg/maintitle.png
|
|
|
|
assets-cg/sprites.png
|
|
|
|
assets-cg/player.png
|
|
|
|
assets-cg/light.png
|
|
|
|
assets-cg/cursor.png
|
|
|
|
assets-cg/parchemin.png
|
|
|
|
assets-cg/treasures.png
|
|
|
|
assets-cg/chests.png
|
|
|
|
assets-cg/fontFantasy.png
|
|
|
|
assets-cg/fontTiny.png
|
|
|
|
assets-cg/monstres.png
|
|
|
|
assets-cg/hearts.png
|
|
|
|
assets-cg/sorcerer.png
|
|
|
|
assets-cg/bigboss.png
|
|
|
|
assets-cg/bigparchvide.png
|
|
|
|
assets-cg/bulletsbicolor.png
|
|
|
|
assets-cg/fragments.png
|
|
|
|
assets-cg/villagealpha.png
|
|
|
|
assets-cg/castletitle.png
|
|
|
|
assets-cg/theend.png
|
|
|
|
)
|
|
|
|
|
|
|
|
fxconv_declare_assets(${ASSETS_cg} WITH_METADATA)
|
|
|
|
|
2022-02-28 18:27:53 +01:00
|
|
|
add_executable(myaddin ${SOURCES} ${ASSETS_cg})
|
2022-02-28 18:01:25 +01:00
|
|
|
target_compile_options(myaddin PRIVATE -fpermissive -Wall -Wextra -O3)
|
|
|
|
target_link_libraries(myaddin Gint::Gint)
|
|
|
|
|
|
|
|
if("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50)
|
2022-02-28 18:27:53 +01:00
|
|
|
generate_g3a(TARGET myaddin OUTPUT "MgcLght.g3a" VERSION 01.000.00
|
2022-02-28 18:01:25 +01:00
|
|
|
NAME "MagicLight" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png)
|
|
|
|
endif()
|