diff --git a/CMakeLists.txt b/CMakeLists.txt index 321a919494..85f30671fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -469,3 +469,15 @@ if(LUACHECK_PRG) -DTEST_DIR=${CMAKE_CURRENT_SOURCE_DIR}/test -P ${PROJECT_SOURCE_DIR}/cmake/RunTestsLint.cmake) endif() + +set(CPACK_PACKAGE_NAME "Neovim") +set(CPACK_PACKAGE_VENDOR "neovim.io") +set(CPACK_PACKAGE_VERSION ${NVIM_VERSION_MEDIUM}) +set(CPACK_PACKAGE_INSTALL_DIRECTORY "Neovim") +# Set toplevel directory/installer name as Neovim +set(CPACK_PACKAGE_FILE_NAME "Neovim") +set(CPACK_TOPLEVEL_TAG "Neovim") +set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE") +set(CPACK_NSIS_MODIFY_PATH ON) +set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON) +include(CPack)