test for recursive dll dir search

This commit is contained in:
Stephen Birarda 2015-02-17 13:41:37 -08:00
parent bc899eaa58
commit 250b25154c
2 changed files with 6 additions and 2 deletions

View file

@ -10,4 +10,4 @@
#
include(BundleUtilities)
fixup_bundle("${BUNDLE_EXECUTABLE}" "" "")
fixup_bundle("${BUNDLE_EXECUTABLE}" "" "${LIB_SEARCH_DIRS}")

View file

@ -240,11 +240,15 @@ else (APPLE)
endif (APPLE)
if (WIN32)
list(APPEND LIB_SEARCH_DIRS ${EXTERNALS_BINARY_DIR})
# add a post-build command to copy DLLs beside the interface executable
add_custom_command(
TARGET ${TARGET_NAME}
POST_BUILD
COMMAND ${CMAKE_COMMAND} -DBUNDLE_EXECUTABLE=$<TARGET_FILE:${TARGET_NAME}> -P ${HIFI_CMAKE_DIR}/scripts/FixupBundlePostBuild.cmake
COMMAND ${CMAKE_COMMAND}
-DBUNDLE_EXECUTABLE=$<TARGET_FILE:${TARGET_NAME}>
-DLIB_SEARCH_DIRS=${LIB_SEARCH_DIRS}
-P ${HIFI_CMAKE_DIR}/scripts/FixupBundlePostBuild.cmake
)
endif ()