37 lines
630 B
CMake
37 lines
630 B
CMake
cmake_minimum_required(VERSION 3.21)
|
|
|
|
project(JTMM2 C)
|
|
|
|
include(GenerateG3A)
|
|
include(Fxconv)
|
|
|
|
find_package(Gint 2.6.0 REQUIRED)
|
|
|
|
include_directories(inc)
|
|
|
|
set(SOURCES
|
|
src/main.c
|
|
src/draw.c
|
|
src/input.c
|
|
src/level.c
|
|
src/player.c
|
|
)
|
|
|
|
set(ASSETS
|
|
res/test.kble
|
|
)
|
|
|
|
set(FLAGS -std=c99 -Os -Wall -Wextra -Wshadow)
|
|
|
|
fxconv_declare_assets(${ASSETS} WITH_METADATA)
|
|
|
|
add_executable(proj ${SOURCES} ${ASSETS})
|
|
target_compile_options(proj PRIVATE ${FLAGS})
|
|
target_link_libraries(proj Gint::Gint)
|
|
target_link_options(proj PRIVATE -Wl,-Map=map)
|
|
|
|
generate_g3a(TARGET proj
|
|
OUTPUT "jtmm2.g3a"
|
|
NAME ""
|
|
ICONS res/icon/uns.png res/icon/sel.png)
|