Skip to content

Commit

Permalink
Merge pull request #27 from usdot-fhwa-stol/fix/Testing.cmake
Browse files Browse the repository at this point in the history
Fix Testing.cmake to not require pthread
  • Loading branch information
adamlm authored Sep 22, 2023
2 parents c9c9f94 + a9f92a5 commit cca01c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/Testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ IF(NOT DEFINED ENV{BUILD_ARCHITECTURE} AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/te
target_link_libraries(${UNIT_TEST} PUBLIC
${PROJECT_NAME}
${TEST_LINK_LIBRARIES}
gtest)
GTest::gtest_main)
add_test(NAME ${UNIT_TEST} COMMAND ${UNIT_TEST})
include(GoogleTest)
gtest_discover_tests(${UNIT_TEST})
add_custom_target(
run_unit_test ALL
COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure
Expand Down

0 comments on commit cca01c9

Please sign in to comment.