include(InstallRequiredSystemLibraries)
set(CPACK_THREADS 0)
set(CPACK_PACKAGE_NAME "OCR")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Automation of the invoice digitizing process. ")
set(CPACK_PACKAGE_VENDOR "Mateusz Miękicki")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/MateuszMiekicki/ocr")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
set(CPACK_PACKAGE_VERSION_MAJOR ${CMAKE_PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${CMAKE_PROJECT_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${CMAKE_PROJECT_VERSION_PATCH})
set(CPACK_PACKAGE_INSTALL_DIRECTORY "CPack Component Example")
SET(CPACK_NSIS_MODIFY_PATH ON)
if(WIN32 AND NOT UNIX)
    set(CPACK_GENERATOR "NSIS;7Z")
else()
    set(CPACK_GENERATOR "7Z;TGZ")
endif()
include(CPack)