wehfou/CMakeLists.txt

32 lines
592 B
CMake

cmake_minimum_required(VERSION 3.22)
project(wehfou)
include(GenerateG3A)
include(Fxconv)
find_package(Gint 2.7.0 REQUIRED)
include_directories(inc)
set(SOURCES
src/main.c
src/lzy.c
src/input.c
src/player.c
src/level.c
src/background.c
)
set(ASSETS
res/tset.png
res/font.png
)
fxconv_declare_assets(${ASSETS} WITH_METADATA)
add_executable(thyaddin ${SOURCES} ${ASSETS})
target_compile_options(thyaddin PRIVATE -Wall -Wextra -Os)
target_link_libraries(thyaddin Gint::Gint)
generate_g3a(TARGET thyaddin OUTPUT "wehfou.g3a"
NAME "wehfou" ICONS res/icon-uns.png res/icon-sel.png)