# Configure with [fxsdk build-cg], which provide the toolchain file # and module path of the fxSDK cmake_minimum_required(VERSION 3.15) project(MyAddin) include(GenerateG1A) include(GenerateG3A) include(Fxconv) include_directories(map) find_package(Gint 2.9 REQUIRED) set(SOURCES src/background.c src/deathpart.c src/entity.c src/entitytag.c src/exit.c src/game.c src/input.c src/lzy.c src/main.c src/map.c src/player.c src/rotrect.c src/spike.c ) set(ASSETS res/font.png res/tset.png ) fxconv_declare_assets(${ASSETS} WITH_METADATA) add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}}) target_compile_options(myaddin PRIVATE -Wall -Wextra -O2 -std=c2x) target_link_libraries(myaddin Gint::Gint) generate_g3a(TARGET myaddin OUTPUT "hyperultra.g3a" NAME "" ICONS res/icon-uns.png res/icon-sel.png)