mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
[Fix] Correct path for each build configuration
Used the cmake generator expression to determine the full path to the target file. Link: https://cmake.org/cmake/help/v3.0/manual/cmake-generator-expressions.7.html#informational-expressions
This commit is contained in:
parent
6cf9dfaa68
commit
0f3da1ccc7
@ -173,10 +173,8 @@ macro(DeployUnix TARGET)
|
|||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(DeployWindows TARGET)
|
macro(DeployWindows TARGET)
|
||||||
# TODO Find out what build type it is
|
|
||||||
set(TARGET_FILE ${CMAKE_BINARY_DIR}/bin/Release/${TARGET}.exe)
|
|
||||||
|
|
||||||
if(EXISTS ${TARGET_FILE})
|
if(EXISTS ${TARGET_FILE})
|
||||||
|
message(STATUS "Collecting Dependencies for target file: ${TARGET_FILE}")
|
||||||
find_package(Qt5Core REQUIRED)
|
find_package(Qt5Core REQUIRED)
|
||||||
|
|
||||||
# Find the windeployqt binaries
|
# Find the windeployqt binaries
|
||||||
@ -277,7 +275,7 @@ macro(DeployWindows TARGET)
|
|||||||
# Run CMake after target was built
|
# Run CMake after target was built
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${TARGET} POST_BUILD
|
TARGET ${TARGET} POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND "${CMAKE_COMMAND}" "-DTARGET_FILE=$<TARGET_FILE:${TARGET}>"
|
||||||
ARGS ${CMAKE_SOURCE_DIR}
|
ARGS ${CMAKE_SOURCE_DIR}
|
||||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||||
VERBATIM
|
VERBATIM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user