This commit is contained in:
zhuzichu 2023-08-17 12:38:44 +08:00
parent 1729b46e13
commit 26669f76e0
3 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 3.20)
project(FluentUI VERSION 0.1 LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/.cmake/")
set(FLUENTUI_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
list(APPEND CMAKE_MODULE_PATH ${FLUENTUI_DIRECTORY}/.cmake/)
include(GetGitRevisionDescription)

View File

@ -37,9 +37,9 @@ else()
endif()
##
set(HEADER_FILE_VERSION_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../example/Version.h)
set(HEADER_FILE_VERSION_PATH ${FLUENTUI_DIRECTORY}/example/Version.h)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/../.cmake/Version.h.in
${FLUENTUI_DIRECTORY}/.cmake/Version.h.in
${HEADER_FILE_VERSION_PATH}
)
@ -69,7 +69,7 @@ set(EXAMPLE_VERSION_RC_PATH "")
if(WIN32)
set(EXAMPLE_VERSION_RC_PATH ${CMAKE_BINARY_DIR}/version_${PROJECT_NAME}.rc)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/../.cmake/version_exe.rc.in
${FLUENTUI_DIRECTORY}/.cmake/version_exe.rc.in
${EXAMPLE_VERSION_RC_PATH}
)
endif()

View File

@ -68,7 +68,7 @@ set(FLUENTUI_VERSION_RC_PATH "")
if(WIN32)
set(FLUENTUI_VERSION_RC_PATH ${CMAKE_BINARY_DIR}/version_${PROJECT_NAME}.rc)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/../.cmake/version_dll.rc.in
${FLUENTUI_DIRECTORY}/.cmake/version_dll.rc.in
${FLUENTUI_VERSION_RC_PATH}
)
endif()