From b1d9069f57439bed333d83c7041871c54f0b8d97 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 8 Aug 2026 15:38:35 +0000 Subject: Initial import of code FossilOrigin-Name: 1bd90d4b94de6d63bd8639b8eae399c3dabf321e704ff08c03e99bbe6dfb7764 --- CMakeLists.txt | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..fd1839b --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,41 @@ +cmake_minimum_required(VERSION 3.25) + +project(aplwc + VERSION 0.0.1 + LANGUAGES C +) + +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_C_EXTENSIONS OFF) + +add_library(common INTERFACE) +target_include_directories(common INTERFACE + "src" +) +target_compile_options(common INTERFACE + $<$: + -Wall + -Wextra + -Wpedantic + -Werror + -fsanitize=address,undefined + > +) +target_link_options(common INTERFACE + $<$: + -fsanitize=address,undefined + > +) + +add_library(aplwc + src/errors.c + src/libmain.c + src/malloc.c +) +target_link_libraries(aplwc PRIVATE common) + +add_executable(aplwc-repl + src/main.c +) +target_link_libraries(aplwc-repl PRIVATE common aplwc) -- cgit v1.2.3