This commit is contained in:
herbglitch 2025-07-25 03:51:16 -06:00
commit 03fac3e692
5 changed files with 180 additions and 0 deletions

33
CMakeLists.txt Normal file
View file

@ -0,0 +1,33 @@
cmake_minimum_required(VERSION 3.14.0)
project(lithops LANGUAGES C VERSION 0.0.1)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(ARCHEUS_WINDOW_BACKEND "SDL3" CACHE STRING "use sdl3 window")
set(ARCHEUS_INPUT_BACKEND "SDL3" CACHE STRING "use sdl3 input")
set(ARCHEUS_GRAPHICS_BACKEND "SDL3" CACHE STRING "use sdl3 input")
#TODO: add "-Wpedantic"
add_compile_options(
"-Wall" "-Werror" "-fexceptions"
"$<$<CONFIG:DEBUG>:-O0;-g3;-ggdb>"
"$<$<CONFIG:RELEASE>:-Wextra>"
)
add_subdirectory(lib/arc)
add_executable(lithops
src/main.c
)
target_compile_definitions(lithops PRIVATE
$<$<CONFIG:Debug>:ARC_DEBUG>
)
target_include_directories(lithops
PRIVATE /src
)
target_link_libraries(lithops PUBLIC archeus)