mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 04:21:15 +00:00
Update CMakeLists.txt
This commit is contained in:
parent
de5ded004d
commit
55605cb0b7
@ -680,22 +680,24 @@ install(TARGETS isle ${install_extra_targets}
|
|||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
)
|
)
|
||||||
if (ISLE_BUILD_CONFIG)
|
if (ISLE_BUILD_CONFIG)
|
||||||
find_program(WINDEPLOYQT_EXECUTABLE windeployqt)
|
if(WIN32)
|
||||||
if(WINDEPLOYQT_EXECUTABLE)
|
find_program(WINDEPLOYQT_EXECUTABLE windeployqt)
|
||||||
install(CODE "message(STATUS \"Running windeployqt with minimal dependencies\")
|
if(WINDEPLOYQT_EXECUTABLE)
|
||||||
execute_process(COMMAND \"${WINDEPLOYQT_EXECUTABLE}\"
|
install(CODE "message(STATUS \"Running windeployqt with minimal dependencies\")
|
||||||
\"$<TARGET_FILE:isle-config>\"
|
execute_process(COMMAND \"${WINDEPLOYQT_EXECUTABLE}\"
|
||||||
--dir QTLibs
|
\"$<TARGET_FILE:isle-config>\"
|
||||||
--no-compiler-runtime
|
--dir QTLibs
|
||||||
--no-opengl-sw
|
--no-compiler-runtime
|
||||||
--no-system-d3d-compiler
|
--no-opengl-sw
|
||||||
--no-translations
|
--no-system-d3d-compiler
|
||||||
--no-quick-import
|
--no-translations
|
||||||
)"
|
--no-quick-import
|
||||||
)
|
)"
|
||||||
install(DIRECTORY "Build/QTLibs/" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
)
|
||||||
else()
|
install(DIRECTORY "Build/QTLibs/" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||||
message(STATUS "windeployqt not found: Qt binaries will not be installed")
|
else()
|
||||||
|
message(STATUS "windeployqt not found: Qt binaries will not be installed")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
install(TARGETS isle-config
|
install(TARGETS isle-config
|
||||||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user