Added lexer tests
This commit is contained in:
@@ -2,10 +2,23 @@
|
||||
file (GLOB TestSources src/*.cpp inc/*.h)
|
||||
add_executable(LXC_Tests ${TestSources})
|
||||
|
||||
# Creates the shared precompiled header #
|
||||
target_include_directories(LXC_Tests PRIVATE ${CMAKE_SOURCE_DIR}/Common)
|
||||
target_precompile_headers(LXC_Tests PRIVATE ${CMAKE_SOURCE_DIR}/Common/LXC.h)
|
||||
|
||||
# Includes headers for modules to test #
|
||||
target_include_directories(LXC_Tests PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/Lexer/inc
|
||||
)
|
||||
|
||||
# Links with GoogleTest #
|
||||
target_link_libraries(LXC_Tests
|
||||
# Testing libraries #
|
||||
gtest
|
||||
gtest_main
|
||||
|
||||
# Libraries to test #
|
||||
Lexer
|
||||
)
|
||||
|
||||
# Registers the test #
|
||||
|
||||
Reference in New Issue
Block a user