# 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)