stela/CMakeLists.txt

30 lines
513 B
CMake

cmake_minimum_required(VERSION 3.29)
project(stela VERSION 1.0.0 LANGUAGES CXX)
find_package(BISON REQUIRED)
find_package(FLEX REQUIRED)
BISON_TARGET(
Parser
parser.y
${CMAKE_CURRENT_BINARY_DIR}/parser.cpp
)
FLEX_TARGET(
Lexer
lexer.l
${CMAKE_CURRENT_BINARY_DIR}/lexer.cpp
)
add_executable(
stela
main.cpp
interpreter.cpp
command.cpp
${BISON_Parser_OUTPUTS}
${FLEX_Lexer_OUTPUTS}
)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})