16 lines
430 B
CMake
16 lines
430 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
|
|
)
|
|
|
|
# Creates the precompiled header for the binary #
|
|
target_include_directories(Lexer PRIVATE ${CMAKE_SOURCE_DIR}/common)
|
|
target_precompile_headers(Lexer PRIVATE ${CMAKE_SOURCE_DIR}/common/LXC.h)
|