mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-12-05 09:21:57 +08:00
65848d1e5f
Some developers would be happier with the gtest version provided from their package manager. Use it if it is installed the package provide cmake support. Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/551
29 lines
1.1 KiB
CMake
29 lines
1.1 KiB
CMake
if(NOT FTXUI_ENABLE_INSTALL)
|
|
return()
|
|
endif()
|
|
|
|
if (UNIX AND NOT APPLE)
|
|
set(CPACK_GENERATOR "DEB;External;RPM;STGZ;TBZ2;TGZ;TXZ;TZ;TZST;ZIP")
|
|
elseif (UNIX AND APPLE)
|
|
set(CPACK_GENERATOR "DragNDrop;NuGet;TGZ;ZIP")
|
|
elseif (WIN32)
|
|
set(CPACK_GENERATOR "DEB;NuGet;TGZ;ZIP")
|
|
else()
|
|
set(CPACK_GENERATOR "ZIP")
|
|
endif()
|
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS " ")
|
|
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE_URL "https://github.com/ArthurSonzogni/FTXUI/")
|
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Arthur Sonzogni")
|
|
set(CPACK_DEBIAN_PACKAGE_VERSION ${PROJECT_VERSION})
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A simple C++ Terminal UI library")
|
|
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/ArthurSonzogni/FTXUI/")
|
|
set(CPACK_PACKAGE_NAME "ftxui")
|
|
set(CPACK_PACKAGE_VENDOR "Arthur Sonzogni")
|
|
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
|
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_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
|
|
|
include(CPack)
|