diff --git a/CMakeLists.txt b/CMakeLists.txt index 46deebe..cbe815c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -380,3 +380,13 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-dependencies.cmake DESTINATION ${PACKAGE_CONFIG_DIR}) +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_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") + +set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright") +set(CPACK_NSIS_MODIFY_PATH ON) + +include(CPack) +