Skip to content

Commit

Permalink
Add missing includes and links to demo unit test targets
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 5, 2024
1 parent 4e516ae commit 8ed4e40
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion demo/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,21 @@ if(GTEST_FOUND)

add_executable(${TEST_TARGET_NAME} ${_test})

target_include_directories(${TEST_TARGET_NAME} PRIVATE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/${PROJECT_NAME}>
${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}
Expand Down

0 comments on commit 8ed4e40

Please sign in to comment.