25 lines
456 B
CMake
25 lines
456 B
CMake
cmake_minimum_required(VERSION 4.3)
|
|
project(fz-lang
|
|
LANGUAGES C)
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
include_directories(include)
|
|
|
|
# Compiler
|
|
add_executable(fzc
|
|
src/compiler/fzl_token.c
|
|
src/compiler/fzl_reader.c
|
|
src/compiler/fzl_parser.c
|
|
src/compiler/fzl_debug.c
|
|
src/compiler/fzl_walker.c
|
|
src/compiler/fzl_writer.c
|
|
src/compiler/utils/fzl_const_pool.c
|
|
src/compiler/main.c)
|
|
|
|
# Virtual machine
|
|
add_executable(fz
|
|
src/vm/fzl_vm.c
|
|
src/vm/main.c)
|
|
|