14 lines
450 B
CMake
14 lines
450 B
CMake
# Fetches all files for in the binary #
|
|
file (GLOB LexerSources src/*.cpp inc/*.h)
|
|
add_library(Lexer STATIC ${LexerSources})
|
|
|
|
# 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)
|