cmake_minimum_required(VERSION 3.10) set(CMAKE_C_STANDARD 11) project( simple-lisp VERSION 1.0 LANGUAGES C) include(FetchContent) FetchContent_Declare( refcount GIT_REPOSITORY https://git.zander.im/Zander671/refcount.git GIT_TAG ae7b645b7a4919c20c75f68348347038601229f7) FetchContent_MakeAvailable(refcount) add_compile_options(-fsanitize=address,leak,undefined) add_link_options(-fsanitize=address,leak,undefined) add_executable(simple-lisp src/main.c src/lisp.c src/read.c) target_link_libraries(simple-lisp PUBLIC refcount) target_compile_options(simple-lisp PRIVATE -Wall -Wpedantic)