simple-lisp/CMakeLists.txt

17 lines
373 B
CMake

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)
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)