From a53e289a45a7c00c91cf4aec90e78cebc5406aba Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 10 Nov 2024 19:24:36 -0500 Subject: [PATCH] refactor: mv res/win/version.rc.in => deploy/version.rc.in --- CMakeLists.txt | 1 + cmake/Libraries.cmake | 3 --- deploy/CMakeLists.txt | 13 +++++++++++++ {res/win => deploy}/version.rc.in | 0 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 deploy/CMakeLists.txt rename {res/win => deploy}/version.rc.in (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83a00072e..06a925117 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,5 +89,6 @@ configure_packaging() add_subdirectory(doc) add_subdirectory(src) +add_subdirectory(deploy) post_config_all() diff --git a/cmake/Libraries.cmake b/cmake/Libraries.cmake index 556255296..cb45f6fc1 100644 --- a/cmake/Libraries.cmake +++ b/cmake/Libraries.cmake @@ -338,9 +338,6 @@ macro(configure_windows_libs) /DDESKFLOW_VERSION=\"${DESKFLOW_VERSION}\" /D_XKEYCHECK_H) - configure_file(${PROJECT_SOURCE_DIR}/res/win/version.rc.in - ${PROJECT_BINARY_DIR}/src/version.rc @ONLY) - configure_openssl() endmacro() diff --git a/deploy/CMakeLists.txt b/deploy/CMakeLists.txt new file mode 100644 index 000000000..531726dfd --- /dev/null +++ b/deploy/CMakeLists.txt @@ -0,0 +1,13 @@ +# SPDX-FileCopyrightText: 2024 Chris Rizzitello +# SPDX-License-Identifier: MIT + +# Handle Pre install Items +if(WIN32) + + # Configure the windows version rc file + configure_file( + ${CMAKE_CURRENT_LIST_DIR}/version.rc.in + ${PROJECT_BINARY_DIR}/src/version.rc @ONLY + ) + +endif() diff --git a/res/win/version.rc.in b/deploy/version.rc.in similarity index 100% rename from res/win/version.rc.in rename to deploy/version.rc.in