mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-08 23:20:07 +02:00
24 lines
No EOL
761 B
CMake
24 lines
No EOL
761 B
CMake
#
|
|
# CopyDllsBesideWindowsExecutable.cmake
|
|
# cmake/macros
|
|
#
|
|
# Copyright 2015 High Fidelity, Inc.
|
|
# Created by Stephen Birarda on February 17, 2014
|
|
#
|
|
# Distributed under the Apache License, Version 2.0.
|
|
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
#
|
|
|
|
macro(COPY_DLLS_BESIDE_WINDOWS_EXECUTABLE)
|
|
if (WIN32 AND NOT CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
# 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}>
|
|
-DLIB_PATHS=${LIB_PATHS}
|
|
-P ${HIFI_CMAKE_DIR}/scripts/FixupBundlePostBuild.cmake
|
|
)
|
|
endif ()
|
|
endmacro() |