From 8ed4e40b0999b2853319874dc9a18ecdf7b5c64f Mon Sep 17 00:00:00 2001 From: Piotr Spieker Date: Tue, 5 Nov 2024 14:44:51 +0100 Subject: [PATCH] Add missing includes and links to demo unit test targets --- demo/test/CMakeLists.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/demo/test/CMakeLists.txt b/demo/test/CMakeLists.txt index ed4e4abb..199d7415 100644 --- a/demo/test/CMakeLists.txt +++ b/demo/test/CMakeLists.txt @@ -24,9 +24,21 @@ if(GTEST_FOUND) add_executable(${TEST_TARGET_NAME} ${_test}) + target_include_directories(${TEST_TARGET_NAME} PRIVATE + $ + $ + ${SDL2_INCLUDE_DIR} + ) + target_link_libraries(${TEST_TARGET_NAME} PUBLIC - ${GTEST_BOTH_LIBRARIES} pthread + ${GTEST_BOTH_LIBRARIES} + pthread ${PROJECT_NAME} + arbitration_graphs + EnTT_Pacman + util_caching + ${SDL2_LIBRARY} + ${YAML_CPP_LIBRARIES} ) add_test(NAME ${TEST_TARGET_NAME}