Files
LXC/lexer/CMakeLists.txt
Pasha Bibko a18e652915 Refactored parts of the parser
Done to make testing internal parts of the Parser easier as they can now be called via the .lib
2025-08-20 21:56:33 +01:00

19 lines
545 B
CMake

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