30 lines
525 B
Text
30 lines
525 B
Text
|
|
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)
|
||
|
|
|