Skip to content

Commit

Permalink
docs(CMaklists): 更新版本信息,更新 CPack
Browse files Browse the repository at this point in the history
  • Loading branch information
cathaysia committed Aug 9, 2021
1 parent 629ca45 commit d67589c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.0)

project(digikamflowplugin
VERSION 0.0.7
VERSION 0.0.8
DESCRIPTION "a plugin add a Flow View to digikam"
HOMEPAGE_URL https://github.com/cathaysia/digikamflowplugin)

Expand All @@ -13,13 +13,18 @@ add_subdirectory(extern/QtFlowLayout)
include_directories(extern/QtFlowLayout)
add_subdirectory(src)

feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)

set(CPACK_PACKAGE_VENDOR Z)
include(InstallRequiredSystemLibraries)
# set(CPACK_PACKAGE_VENDOR Z)
set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE)
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
set(CPACK_PACKAGE_DIRECTORY ${CMAKE_BINARY_DIR}/pack)

set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
set(CPACK_STRIP_FILES ON)
include(CPack)
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME})
cmake_print_variables(CPACK_PACKAGE_FILE_NAME)

feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)

0 comments on commit d67589c

Please sign in to comment.