Files
LXC/parser/CMakeLists.txt
2025-07-23 19:33:33 +01:00

19 lines
569 B
CMake

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