mirror of https://git.sr.ht/~kikoodx/crystal-tower
add raygint to the project
This commit is contained in:
parent
955fa3f2ef
commit
040d2ce1f5
|
@ -0,0 +1,3 @@
|
|||
[submodule "raygint"]
|
||||
path = raygint
|
||||
url = https://gitea.planet-casio.com/KikooDX/raygint
|
|
@ -4,12 +4,9 @@
|
|||
cmake_minimum_required(VERSION 3.18)
|
||||
project(CRYSTAL C)
|
||||
|
||||
include(GenerateG3A)
|
||||
include(Fxconv)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
|
||||
find_package(Gint 2.6.0 REQUIRED)
|
||||
|
||||
include_directories(inc)
|
||||
include_directories(inc raygint/include)
|
||||
|
||||
set(SOURCES
|
||||
src/main.c
|
||||
|
@ -23,6 +20,7 @@ set(SOURCES
|
|||
src/particles.c
|
||||
src/stars.c
|
||||
src/results.c
|
||||
raygint/src/display.c
|
||||
)
|
||||
|
||||
set(LEVELS
|
||||
|
@ -52,18 +50,29 @@ set(FLAGS
|
|||
-Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum
|
||||
-Wunreachable-code -Wstrict-prototypes -Wmissing-prototypes
|
||||
-Wold-style-definition -Werror-implicit-function-declaration
|
||||
-std=c11 -O3
|
||||
-O3
|
||||
)
|
||||
|
||||
fxconv_declare_assets(${ASSETS} WITH_METADATA)
|
||||
|
||||
add_executable(target ${SOURCES} ${ASSETS})
|
||||
target_compile_options(target PRIVATE ${FLAGS})
|
||||
target_link_libraries(target Gint::Gint)
|
||||
target_link_options(target PRIVATE -Wl,-Map=map)
|
||||
|
||||
generate_g3a(TARGET target
|
||||
OUTPUT "${PROJECT_NAME}.g3a"
|
||||
NAME ""
|
||||
ICONS res/icon-uns.png res/icon-sel.png
|
||||
)
|
||||
if ("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50)
|
||||
find_package(Gint 2.6.0 REQUIRED)
|
||||
|
||||
include(GenerateG3A)
|
||||
include(Fxconv)
|
||||
fxconv_declare_assets(${ASSETS} WITH_METADATA)
|
||||
|
||||
add_executable(target ${SOURCES} ${ASSETS})
|
||||
target_compile_options(target PRIVATE ${FLAGS})
|
||||
target_link_libraries(target Gint::Gint)
|
||||
target_link_options(target PRIVATE -Wl,-Map=map)
|
||||
|
||||
generate_g3a(TARGET target
|
||||
OUTPUT "${PROJECT_NAME}.g3a"
|
||||
NAME ""
|
||||
ICONS res/icon-uns.png res/icon-sel.png
|
||||
)
|
||||
else()
|
||||
add_executable(target ${SOURCES})
|
||||
target_compile_options(target PRIVATE ${FLAGS})
|
||||
target_compile_options(target PRIVATE ${FLAGS} -DRAYLIB)
|
||||
target_link_libraries(target raylib)
|
||||
endif()
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 0303e689f7c49b2c5dab1a69684719cb08541808
|
Loading…
Reference in New Issue