CMakeLists.txt: add CPack package generation
This commit is contained in:
parent
255c1a28b9
commit
429f011cff
1 changed files with 11 additions and 0 deletions
|
@ -190,3 +190,14 @@ if (RAGEPHOTO_EXTRACT)
|
|||
target_link_libraries(ragephoto-extract PRIVATE ragephoto)
|
||||
install(TARGETS ragephoto-extract DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
endif()
|
||||
|
||||
# CPack Package Generation
|
||||
include(InstallRequiredSystemLibraries)
|
||||
set(CPACK_PACKAGE_DESCRIPTION "Open Source RAGE Photo Parser for GTA V and RDR 2")
|
||||
set(CPACK_PACKAGE_NAME "libragephoto")
|
||||
set(CPACK_PACKAGE_VENDOR "Syping")
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR "${ragephoto_VERSION_MAJOR}")
|
||||
set(CPACK_PACKAGE_VERSION_MINOR "${ragephoto_VERSION_MINOR}")
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "${ragephoto_VERSION_PATCH}")
|
||||
set(CPACK_STRIP_FILES ON)
|
||||
include(CPack)
|
||||
|
|
Loading…
Reference in a new issue