hyperultra/CMakeLists.txt

42 lines
867 B
CMake
Raw Normal View History

2023-03-17 09:50:44 +01:00
# 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)
2023-03-17 19:03:59 +01:00
include_directories(map)
2023-03-17 09:50:44 +01:00
find_package(Gint 2.9 REQUIRED)
set(SOURCES
2023-03-17 11:33:08 +01:00
src/background.c
2023-03-18 23:40:10 +01:00
src/deathpart.c
2023-03-17 11:33:08 +01:00
src/entity.c
2023-03-23 22:10:37 +01:00
src/entitytag.c
2023-03-17 21:07:07 +01:00
src/exit.c
2023-03-17 10:51:17 +01:00
src/game.c
2023-03-23 22:10:37 +01:00
src/input.c
2023-03-17 09:50:44 +01:00
src/lzy.c
2023-03-17 10:51:17 +01:00
src/main.c
2023-03-17 13:45:20 +01:00
src/map.c
2023-03-17 10:51:17 +01:00
src/player.c
2023-03-19 01:37:14 +01:00
src/rotrect.c
src/spike.c
2023-03-17 09:50:44 +01:00
)
set(ASSETS
res/font.png
res/tset.png
)
fxconv_declare_assets(${ASSETS} WITH_METADATA)
add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}})
2023-03-25 21:54:50 +01:00
target_compile_options(myaddin PRIVATE -Wall -Wextra -O2 -std=c2x)
2023-03-17 09:50:44 +01:00
target_link_libraries(myaddin Gint::Gint)
generate_g3a(TARGET myaddin OUTPUT "hyperultra.g3a" NAME ""
ICONS res/icon-uns.png res/icon-sel.png)