We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc53483 commit 872389fCopy full SHA for 872389f
test/CMakeLists.txt
@@ -14,7 +14,15 @@ target_include_directories(${PROJECT_NAME}_TestPlugins2
14
target_link_libraries(${PROJECT_NAME}_TestPlugins2 ${PROJECT_NAME})
15
class_loader_hide_library_symbols(${PROJECT_NAME}_TestPlugins2)
16
17
-ament_add_gtest(${PROJECT_NAME}_utest utest.cpp)
+set(append_library_dirs "${CMAKE_CURRENT_BINARY_DIR}")
18
+
19
+if(WIN32)
20
+ set(append_library_dirs "${append_library_dirs}/$<CONFIG>")
21
+endif()
22
23
+ament_add_gtest(${PROJECT_NAME}_utest utest.cpp
24
+ APPEND_LIBRARY_DIRS "${append_library_dirs}"
25
+)
26
if(TARGET ${PROJECT_NAME}_utest)
27
target_include_directories(${PROJECT_NAME}_utest
28
PUBLIC "../include" ${console_bridge_INCLUDE_DIRS} ${Poco_INCLUDE_DIRS})
0 commit comments