From dfb80e70eefe81091f76d2b4e137e41c3af8d782 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Wed, 8 Nov 2023 17:05:09 +0800 Subject: [PATCH] fix bug #335 --- .cmake/version_exe.rc.in | 2 +- example/CMakeLists.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.cmake/version_exe.rc.in b/.cmake/version_exe.rc.in index 9dbe5048..2f551d27 100644 --- a/.cmake/version_exe.rc.in +++ b/.cmake/version_exe.rc.in @@ -31,4 +31,4 @@ BEGIN END END -IDI_ICON1 ICON DISCARDABLE "${CMAKE_SOURCE_DIR}/example/favicon.ico" +IDI_ICON1 ICON DISCARDABLE "${FLUENTUI_DIRECTORY}/example/favicon.ico" diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index d8f03e04..d822328b 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -18,9 +18,9 @@ endif() #设置可执行文件输出目录 if(CMAKE_BUILD_TYPE STREQUAL "Debug") - set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/debug) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${FLUENTUI_DIRECTORY}/bin/debug) else() - set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/release) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${FLUENTUI_DIRECTORY}/bin/release) endif() #获取文件路径分隔符(解决执行命令的时候有些平台会报错) @@ -81,7 +81,7 @@ if(WIN32) ) configure_file( ${FLUENTUI_DIRECTORY}/.cmake/InstallerScript.iss.in - ${CMAKE_SOURCE_DIR}/action-cli/InstallerScript.iss + ${FLUENTUI_DIRECTORY}/action-cli/InstallerScript.iss ) endif()