From c4e2a6c6830141c71f3afcf9634def2bb5486197 Mon Sep 17 00:00:00 2001 From: magnesj <1793152+magnesj@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:51:01 +0000 Subject: [PATCH] Fixes by cmake-format --- ApplicationExeCode/CMakeLists.txt | 35 ++++++++++++++++++------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/ApplicationExeCode/CMakeLists.txt b/ApplicationExeCode/CMakeLists.txt index a259eb6073..fcb65e4cdc 100644 --- a/ApplicationExeCode/CMakeLists.txt +++ b/ApplicationExeCode/CMakeLists.txt @@ -487,26 +487,31 @@ if(RESINSIGHT_PRIVATE_INSTALL) install(TARGETS ResInsight DESTINATION ${RESINSIGHT_INSTALL_FOLDER}) install(FILES ${RESINSIGHT_FILES} DESTINATION ${RESINSIGHT_INSTALL_FOLDER}) - # Add a post-build command to run windeployqt. This makes it possible to debug the binary from a debugger without any manual steps. This also - # fixes an issue related to the Install() command and usage of windeployqt as part of installation. The installation tried to use windeployqt on the - # executable in the build directory, which did not find the Qt libraries. + # Add a post-build command to run windeployqt. This makes it possible to debug + # the binary from a debugger without any manual steps. This also fixes an + # issue related to the Install() command and usage of windeployqt as part of + # installation. The installation tried to use windeployqt on the executable in + # the build directory, which did not find the Qt libraries. # - # TODO: This command copies all required dlls, so we should probably not use the Install() command to copy external dlls dependencies. + # TODO: This command copies all required dlls, so we should probably not use + # the Install() command to copy external dlls dependencies. # if(WIN32 AND WINDEPLOYQT_EXECUTABLE) - add_custom_command(TARGET ResInsight POST_BUILD - COMMAND ${WINDEPLOYQT_EXECUTABLE} $ --release --no-translations - COMMENT "Running windeployqt to deploy Qt dependencies" + add_custom_command( + TARGET ResInsight + POST_BUILD + COMMAND ${WINDEPLOYQT_EXECUTABLE} $ --release + --no-translations + COMMENT "Running windeployqt to deploy Qt dependencies" ) - install( - TARGETS ResInsight - DESTINATION ${RESINSIGHT_INSTALL_FOLDER} - RUNTIME_DEPENDENCIES PRE_EXCLUDE_REGEXES "api-ms-" "ext-ms-" - POST_EXCLUDE_REGEXES ".*system32/.*\\.dll" - ) -endif() - + install( + TARGETS ResInsight + DESTINATION ${RESINSIGHT_INSTALL_FOLDER} + RUNTIME_DEPENDENCIES PRE_EXCLUDE_REGEXES "api-ms-" "ext-ms-" + POST_EXCLUDE_REGEXES ".*system32/.*\\.dll" + ) + endif() if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") install(