cmake_minimum_required(VERSION 3.15.0) set(CMAKE_C_STANDARD 99) set(CMAKE_EXPORT_COMPILE_COMMANDS YES) project(simple-lisp) set(BOOTSTRAP_FILES main.c parse.c ast.c constants.c compile.c) foreach(FILE IN LISTS BOOTSTRAP_FILES) list(APPEND REAL_BOOTSTRAP_FILES "bootstrap/${FILE}") endforeach() add_executable(bootstrap-slc ${REAL_BOOTSTRAP_FILES}) target_link_libraries(bootstrap-slc m) # target_link_libraries(bootstrap-slc m "-fsanitize=undefined" "-fsanitize=address") # target_compile_options(bootstrap-slc PUBLIC "-fsanitize=undefined" "-fsanitize=address")