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)
|
|
|
|
|
2024-09-23 04:39:35 -07:00
|
|
|
set(BOOTSTRAP_FILES main.c parse.c ast.c)
|
2024-08-15 02:11:26 -07:00
|
|
|
|
2024-09-23 04:39:35 -07:00
|
|
|
foreach(FILE IN LISTS BOOTSTRAP_FILES)
|
|
|
|
list(APPEND REAL_BOOTSTRAP_FILES "bootstrap/${FILE}")
|
2024-08-15 02:11:26 -07:00
|
|
|
endforeach()
|
|
|
|
|
2024-09-23 04:39:35 -07:00
|
|
|
add_executable(bootstrap-slc ${REAL_BOOTSTRAP_FILES})
|
|
|
|
|
|
|
|
target_link_libraries(bootstrap-slc m)
|