generated from kdx/gint-project-template
First Commit - Revision 1.0A
This commit is contained in:
parent
01498a34dc
commit
e267c36c11
|
@ -0,0 +1,48 @@
|
|||
# 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)
|
||||
|
||||
add_executable(myaddin ${SOURCES} ${ASSETS_${FXSDK_PLATFORM}})
|
||||
target_compile_options(myaddin PRIVATE -fpermissive -Wall -Wextra -O3)
|
||||
target_link_libraries(myaddin Gint::Gint)
|
||||
|
||||
if("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50)
|
||||
generate_g3a(TARGET myaddin OUTPUT "MagicLight.g3a" VERSION 01.000.00
|
||||
NAME "MagicLight" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png)
|
||||
endif()
|
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
Loading…
Reference in New Issue