Skip to content

Commit

Permalink
Add basic cpack settings to create a package.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby committed Oct 7, 2017
1 parent 52554c9 commit d5f9e15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d5f9e15

Please sign in to comment.