forked from tumcms/Blue-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
157fdb8
commit 45472f0
Showing
4 changed files
with
31 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
if(WIN32) | ||
# Unit tests need access to Qt DLLs and resources - this project copies this stuff to the right place | ||
add_custom_target(ExecuteQtDeployTool | ||
#------------------------------------------------------------------------------------------------------ | ||
# Variant A: This does not need a prebuild DrawTriangle.exe | ||
# This parts builds just the DrawTriangle unit test which is needed by windeployqt | ||
# Actually this takes a long time... | ||
#COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target DrawTriangle --config debug | ||
#COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target DrawTriangle --config release | ||
#COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target DrawTriangle --config relWithDebInfo | ||
#------------------------------------------------------------------------------------------------------ | ||
|
||
#------------------------------------------------------------------------------------------------------ | ||
# Variant B: This requires a prebuild DrawTriangle.exe | ||
# From my experience it is fine to use for every build type the debug.exe... | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/Deploy/Debug/DrawTriangle.exe ${CMAKE_BINARY_DIR}/Debug | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/Deploy/Debug/DrawTriangle.exe ${CMAKE_BINARY_DIR}/RelWithDebInfo | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/Deploy/Debug/DrawTriangle.exe ${CMAKE_BINARY_DIR}/Release | ||
#------------------------------------------------------------------------------------------------------ | ||
|
||
COMMAND ${Qt5Core_DIR}/../../../bin/windeployqt.exe --no-system-d3d-compiler --force --debug ${CMAKE_BINARY_DIR}/Debug/DrawTriangle.exe | ||
COMMAND ${Qt5Core_DIR}/../../../bin/windeployqt.exe --no-system-d3d-compiler --force --pdb ${CMAKE_BINARY_DIR}/Debug/DrawTriangle.exe | ||
COMMAND ${Qt5Core_DIR}/../../../bin/windeployqt.exe --no-system-d3d-compiler --force --release ${CMAKE_BINARY_DIR}/RelWithDebInfo/DrawTriangle.exe | ||
COMMAND ${Qt5Core_DIR}/../../../bin/windeployqt.exe --no-system-d3d-compiler --force --release ${CMAKE_BINARY_DIR}/Release/DrawTriangle.exe | ||
) | ||
endif() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.