Skip to content

Commit 872389f

Browse files
append library dir?
1 parent cc53483 commit 872389f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/CMakeLists.txt

+9-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ target_include_directories(${PROJECT_NAME}_TestPlugins2
1414
target_link_libraries(${PROJECT_NAME}_TestPlugins2 ${PROJECT_NAME})
1515
class_loader_hide_library_symbols(${PROJECT_NAME}_TestPlugins2)
1616

17-
ament_add_gtest(${PROJECT_NAME}_utest utest.cpp)
17+
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+
)
1826
if(TARGET ${PROJECT_NAME}_utest)
1927
target_include_directories(${PROJECT_NAME}_utest
2028
PUBLIC "../include" ${console_bridge_INCLUDE_DIRS} ${Poco_INCLUDE_DIRS})

0 commit comments

Comments
 (0)