add fixup_bundle step for WIN32 interface

This commit is contained in:
Stephen Birarda 2015-02-17 13:17:23 -08:00
parent 016ef2b243
commit bc899eaa58
4 changed files with 26 additions and 3 deletions

View file

@ -103,8 +103,9 @@ set(HIFI_LIBRARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries")
# setup for find modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/")
set(MACRO_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake/macros")
set(EXTERNAL_PROJECT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake/externals")
set(HIFI_CMAKE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set(MACRO_DIR "${HIFI_CMAKE_DIR}/macros")
set(EXTERNAL_PROJECT_DIR "${HIFI_CMAKE_DIR}/externals")
set(EXTERNALS_BINARY_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/build-externals")
if (ANDROID)

View file

@ -1,5 +1,5 @@
#
# SetupExternalProject.cmake
# AddDependencyExternalProjects.cmake
# cmake/macros
#
# Copyright 2015 High Fidelity, Inc.

View file

@ -0,0 +1,13 @@
#
# FixupBundlePostBuild.cmake.in
# cmake/templates
#
# Copyright 2015 High Fidelity, Inc.
# Created by Stephen Birarda on February 13, 2014
#
# Distributed under the Apache License, Version 2.0.
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
#
include(BundleUtilities)
fixup_bundle("${BUNDLE_EXECUTABLE}" "" "")

View file

@ -239,5 +239,14 @@ else (APPLE)
endif()
endif (APPLE)
if (WIN32)
# 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
)
endif ()
# link any dependencies bubbled up from our linked dependencies
include_dependency_includes()