Files
LXC/ast/CMakeLists.txt
2025-07-23 17:49:35 +01:00

19 lines
510 B
CMake

# Fetches all .cpp files for the binary #
add_library(AST STATIC
src/NodeTypes.cpp
src/AST.cpp
)
# Adds the headers in the current directory #
target_include_directories (
AST PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/inc
)
# Links to the Lexer so it can use tokens as data types #
target_link_libraries(AST PUBLIC Lexer)
# Creates the precompiled header of the binary #
target_include_directories(AST PRIVATE ${CMAKE_SOURCE_DIR}/common)
target_precompile_headers(AST PRIVATE ${CMAKE_SOURCE_DIR}/common/LXC.h)