diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index 587da426..34b8c755 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -31,15 +31,14 @@ function(create_tests NAME_PREFIX) # Add includes and libraries target_include_directories(${EXE_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/source + PRIVATE ${CMAKE_SOURCE_DIR}/third_party/SFML/include ) target_link_libraries(${EXE_NAME} PRIVATE Catch2::Catch2WithMain + PRIVATE sfml-network + PRIVATE tinyxml2 ) - target_link_libraries(${EXE_NAME} - PRIVATE tinyxml2 - ) - # Add to ctest add_test(NAME ${EXE_NAME} COMMAND ${EXE_NAME} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) endforeach()