2021-08-21 11:48:06 +02: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)
|
2021-08-21 12:10:53 +02:00
|
|
|
project(Duet)
|
2021-08-21 11:48:06 +02:00
|
|
|
|
|
|
|
include(GenerateG1A)
|
|
|
|
include(GenerateG3A)
|
|
|
|
include(Fxconv)
|
|
|
|
find_package(Gint 2.1 REQUIRED)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
src/main.c
|
2021-08-21 12:10:53 +02:00
|
|
|
src/render.c
|
2021-08-21 14:49:01 +02:00
|
|
|
src/physics.c
|
2021-08-21 19:10:29 +02:00
|
|
|
src/text.c
|
2021-08-21 22:32:22 +02:00
|
|
|
src/menu.c
|
2021-08-21 11:48:06 +02:00
|
|
|
)
|
|
|
|
set(ASSETS
|
2021-08-21 19:10:29 +02:00
|
|
|
assets-cg/font.png
|
2021-08-21 22:32:22 +02:00
|
|
|
assets-cg/title.png
|
2021-08-22 00:09:37 +02:00
|
|
|
assets-cg/levels.png
|
2022-01-16 19:30:11 +01:00
|
|
|
assets-cg/level/level1_1.txt
|
|
|
|
assets-cg/level/level1_2.txt
|
|
|
|
assets-cg/level/level1_3.txt
|
|
|
|
assets-cg/level/level1_4.txt
|
|
|
|
assets-cg/level/level1_5.txt
|
|
|
|
assets-cg/level/level2_1.txt
|
|
|
|
assets-cg/level/level2_2.txt
|
|
|
|
assets-cg/level/level2_3.txt
|
|
|
|
assets-cg/level/level2_4.txt
|
|
|
|
assets-cg/level/level2_5.txt
|
|
|
|
assets-cg/level/level2_6.txt
|
|
|
|
assets-cg/level/level3_1.txt
|
|
|
|
assets-cg/level/level3_2.txt
|
|
|
|
assets-cg/level/level3_3.txt
|
|
|
|
assets-cg/level/level3_4.txt
|
|
|
|
assets-cg/level/level3_5.txt
|
|
|
|
assets-cg/level/level4_1.txt
|
|
|
|
assets-cg/level/level4_2.txt
|
|
|
|
assets-cg/level/level4_3.txt
|
|
|
|
assets-cg/level/level4_4.txt
|
|
|
|
assets-cg/level/level4_5.txt
|
|
|
|
assets-cg/level/level4_6.txt
|
|
|
|
assets-cg/level/level5_1.txt
|
|
|
|
assets-cg/level/level5_2.txt
|
|
|
|
assets-cg/level/level5_3.txt
|
|
|
|
assets-cg/level/level5_4.txt
|
|
|
|
assets-cg/level/level5_5.txt
|
|
|
|
assets-cg/level/level5_6.txt
|
|
|
|
assets-cg/level/level6_1.txt
|
|
|
|
assets-cg/level/level6_2.txt
|
|
|
|
assets-cg/level/level6_3.txt
|
|
|
|
assets-cg/level/level6_4.txt
|
|
|
|
assets-cg/level/level6_5.txt
|
|
|
|
assets-cg/level/level6_6.txt
|
2022-01-16 21:00:19 +01:00
|
|
|
assets-cg/level/level7_1.txt
|
|
|
|
assets-cg/level/level7_2.txt
|
|
|
|
assets-cg/level/level7_3.txt
|
|
|
|
assets-cg/level/level7_4.txt
|
|
|
|
assets-cg/level/level7_5.txt
|
|
|
|
assets-cg/level/level7_6.txt
|
2021-08-21 11:48:06 +02:00
|
|
|
)
|
|
|
|
|
2021-08-21 16:31:19 +02:00
|
|
|
fxconv_declare_converters(converters.py)
|
2021-08-21 12:10:53 +02:00
|
|
|
fxconv_declare_assets(${ASSETS} WITH_METADATA)
|
2021-08-21 11:48:06 +02:00
|
|
|
|
2021-08-21 12:10:53 +02:00
|
|
|
add_executable(addin ${SOURCES} ${ASSETS})
|
2021-08-21 19:10:29 +02:00
|
|
|
target_compile_options(addin PRIVATE -Wall -Wextra -Os -ffast-math)
|
2021-08-21 12:10:53 +02:00
|
|
|
target_link_libraries(addin Gint::Gint)
|
2021-08-21 11:48:06 +02:00
|
|
|
|
2021-08-21 12:10:53 +02:00
|
|
|
generate_g3a(TARGET addin OUTPUT "Duet.g3a"
|
|
|
|
NAME "Duet" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png)
|