Files
LXC/tests/CMakeLists.txt
2025-07-23 17:50:25 +01:00

27 lines
579 B
CMake

# Creates the binary to run the tests #
add_executable(LXC_Tests
src/LexerTests.cpp
)
# 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 #
include(GoogleTest)