We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b989f3 commit 390b99bCopy full SHA for 390b99b
tests/CMakeLists.txt
@@ -54,7 +54,16 @@ else()
54
GTest::gtest
55
GTest::gtest_main)
56
57
- gtest_discover_tests(behaviortree_cpp_test)
+ # gtest_discover_tests queries the test executable for available tests and registers them on ctest individually
58
+ # On Windows it needs a little help to find the shared libraries
59
+ if(WIN32)
60
+ gtest_discover_tests(behaviortree_cpp_test
61
+ DISCOVERY_MODE PRE_TEST
62
+ DISCOVERY_ENVIRONMENT "PATH=$<TARGET_FILE_DIR:behaviortree_cpp_test>;$ENV{PATH}"
63
+ )
64
+ else()
65
+ gtest_discover_tests(behaviortree_cpp_test)
66
+ endif()
67
68
endif()
69
0 commit comments