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 11:48:06 +02:00
|
|
|
# ...
|
|
|
|
)
|
|
|
|
set(ASSETS
|
|
|
|
assets-cg/example.png
|
|
|
|
# ...
|
|
|
|
)
|
|
|
|
|
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})
|
|
|
|
target_compile_options(addin PRIVATE -Wall -Wextra -Os)
|
|
|
|
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)
|