From 259398f2a3976ddf34acb13179b0cb8c63b36228 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Wed, 17 Mar 2021 15:32:24 +0100 Subject: [PATCH] Process the .manifest file for windows. --- CMakeLists.txt | 6 ++++-- resources/Yerbacon.manifest | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index caaf4ef..7d5d0f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,9 @@ if (NOT DEFINED CODENAME) endif () endif() -file(COPY "resources/${PROJECT_NAME}.manifest" "resources/${PROJECT_NAME}.ico" DESTINATION "processed") +set(EXEDESC "Transpiler for the yerbacon language.") +file(COPY "resources/${PROJECT_NAME}.ico" DESTINATION "processed") +configure_file("resources/${PROJECT_NAME}.manifest" "processed/${PROJECT_NAME}.manifest" @ONLY) configure_file("resources/${PROJECT_NAME}.rc" "processed/${PROJECT_NAME}.rc" @ONLY) set(CMAKE_CXX_STANDARD 20) @@ -54,7 +56,7 @@ set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}-${TIME}") set(CPACK_PACKAGE_VENDOR "Contributor(s)") set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/Yerbacon.png") set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/misc/desc.txt") -set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Transpiler for the yerbacon language.") +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${EXEDESC}") set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt") set(CPACK_PACKAGE_CONTACT "Username404 ") diff --git a/resources/Yerbacon.manifest b/resources/Yerbacon.manifest index a2b603b..6735582 100644 --- a/resources/Yerbacon.manifest +++ b/resources/Yerbacon.manifest @@ -6,7 +6,7 @@ processorArchitecture="x86" name="ybcon.exe" /> - The Yerbacon compiler. + @EXEDESC@