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