20 lines
610 B
CMake
20 lines
610 B
CMake
# Fetches all .cpp files for the binary #
|
|
add_library(Parser STATIC
|
|
src/Parser.cpp
|
|
)
|
|
|
|
# Adds the headers in the current directory #
|
|
target_include_directories (
|
|
Parser PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/inc
|
|
)
|
|
|
|
# Links to the all needed internal libraries #
|
|
target_link_libraries(Parser PRIVATE PashaBibko-UTIL)
|
|
target_link_libraries(Parser PRIVATE Lexer)
|
|
target_link_libraries(Parser PRIVATE AST)
|
|
|
|
# Creates the precompiled header of the binary #
|
|
target_include_directories(Parser PRIVATE ${CMAKE_SOURCE_DIR}/external/util)
|
|
target_precompile_headers(Parser PRIVATE ${CMAKE_SOURCE_DIR}/external/util/Util.h)
|