simple-lisp/CMakeLists.txt

17 lines
373 B
CMake
Raw Normal View History

2024-08-15 02:11:26 -07:00
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)
2024-08-15 02:11:26 -07:00
foreach(FILE IN LISTS BOOTSTRAP_FILES)
list(APPEND REAL_BOOTSTRAP_FILES "bootstrap/${FILE}")
2024-08-15 02:11:26 -07:00
endforeach()
add_executable(bootstrap-slc ${REAL_BOOTSTRAP_FILES})
target_link_libraries(bootstrap-slc m)