Stopped using GLOB in CMakeLists.txt
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# Fetches all files for in the binary #
|
# Fetches all .cpp files for the binary #
|
||||||
file (GLOB LexerSources src/*.cpp inc/*.h)
|
add_library(Lexer STATIC
|
||||||
add_library(Lexer STATIC ${LexerSources})
|
src/Lexer.cpp
|
||||||
|
src/Token.cpp
|
||||||
|
)
|
||||||
|
|
||||||
# Adds the headers in the current directory #
|
# Adds the headers in the current directory #
|
||||||
target_include_directories (
|
target_include_directories (
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
# Fetches all files for the binary #
|
# Fetches all .cpp files for the binary #
|
||||||
add_library(AST STATIC src/NodeTypes.cpp src/AST.cpp)
|
add_library(AST STATIC
|
||||||
|
src/NodeTypes.cpp
|
||||||
|
src/AST.cpp
|
||||||
|
)
|
||||||
|
|
||||||
# Adds the headers in the current directory #
|
# Adds the headers in the current directory #
|
||||||
target_include_directories (
|
target_include_directories (
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Creates the binary to run the tests #
|
# Creates the binary to run the tests #
|
||||||
file (GLOB TestSources src/*.cpp inc/*.h)
|
add_executable(LXC_Test
|
||||||
add_executable(LXC_Tests ${TestSources})
|
src/LexerTests.cpp
|
||||||
|
)
|
||||||
|
|
||||||
# Creates the shared precompiled header #
|
# Creates the shared precompiled header #
|
||||||
target_include_directories(LXC_Tests PRIVATE ${CMAKE_SOURCE_DIR}/common)
|
target_include_directories(LXC_Tests PRIVATE ${CMAKE_SOURCE_DIR}/common)
|
||||||
|
|||||||
Reference in New Issue
Block a user