lithops/CMakeLists.txt

30 lines
525 B
Text
Raw Permalink Normal View History

2025-07-25 03:51:16 -06:00
cmake_minimum_required(VERSION 3.14.0)
project(lithops LANGUAGES C VERSION 0.0.1)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
#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)