20 lines
566 B
CMake
20 lines
566 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 all needed internal libraries #
|
|
target_link_libraries(AST PRIVATE PashaBibko-UTIL)
|
|
target_link_libraries(AST PRIVATE Lexer)
|
|
|
|
# Creates the precompiled header of the binary #
|
|
target_include_directories(AST PRIVATE ${CMAKE_SOURCE_DIR}/external/util)
|
|
target_precompile_headers(AST PRIVATE ${CMAKE_SOURCE_DIR}/external/util/Util.h)
|