kble_gint_poc/CMakeLists.txt

44 lines
866 B
CMake

# 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.18)
project(KbleGint C)
include(GenerateG1A)
include(GenerateG3A)
include(Fxconv)
find_package(Gint 2.4 REQUIRED)
include_directories(include)
set(SOURCES
src/main.c
)
set(ASSETS
assets/levels/demo.kble
)
set(FLAGS
-std=c11
-Wall -Wextra -pedantic
-Wshadow
-Wswitch-default -Wswitch-enum
-Wunreachable-code
-Wstrict-prototypes -Wmissing-prototypes
-Werror-implicit-function-declaration
-Os
)
fxconv_declare_assets(${ASSETS} WITH_METADATA)
add_executable(Main ${SOURCES} ${ASSETS})
target_compile_options(Main PRIVATE ${FLAGS})
target_link_libraries(Main Gint::Gint)
generate_g3a(
TARGET Main
OUTPUT "${PROJECT_NAME}.g3a"
NAME "${PROJECT_NAME}"
ICONS assets/icon-uns.png assets/icon-sel.png)