Skip to content

Commit

Permalink
Fix installation
Browse files Browse the repository at this point in the history
  • Loading branch information
kebekus committed Nov 16, 2023
1 parent 673e557 commit 180612e
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,20 @@ endif()
# Installation for Linux, MacOS, Windows
# see https://www.qt.io/blog/deploying-to-linux-with-cmake
#
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Install the executable into "${CMAKE_INSTALL_PREFIX}/bin".
install(
TARGETS ${PROJECT_NAME}
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

# Generate the deployment script for the target ${PROJECT_NAME}.
qt_generate_deploy_qml_app_script(
TARGET ${PROJECT_NAME}
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)

# Call the deployment script on "cmake --install".
install(SCRIPT ${deploy_script})
endif()

# Install the executable into "${CMAKE_INSTALL_PREFIX}/bin".
install(
TARGETS ${PROJECT_NAME}
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

# Generate the deployment script for the target ${PROJECT_NAME}.
qt_generate_deploy_qml_app_script(
TARGET ${PROJECT_NAME}
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)

# Call the deployment script on "cmake --install".
install(SCRIPT ${deploy_script})

0 comments on commit 180612e

Please sign in to comment.