Skip to content

Commit

Permalink
make CPACK_PACKAGE_NAME overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Jul 8, 2024
1 parent 0543d25 commit d9dcf9e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ ENDIF()
# packaging information
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ryzom Core MMORPG Framework")
SET(CPACK_PACKAGE_VENDOR "Ryzom Core")
string(TOLOWER ${CMAKE_PROJECT_NAME} PROJECT_NAME_LOWER)
SET(CPACK_PACKAGE_NAME ${PROJECT_NAME_LOWER} CACHE STRING "")
SET(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_SOURCE_DIR}/README.md)
SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING)
SET(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR};NeL;ALL;/")
Expand All @@ -515,8 +517,8 @@ SET(CPACK_NSIS_CONTACT "matt.raykowski@gmail.com")

## Source Packages
# remove os part of file name
SET(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION}")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION}")
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
IF(WIN32)
#SET(CPACK_GENERATOR "NSIS")
SET(CPACK_GENERATOR "NSIS;ZIP")
Expand Down
3 changes: 2 additions & 1 deletion cmake/CMakePresets.nel.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"WITH_STUDIO": false,
"WITH_TOOLS": false,
"WITH_QT5": true,
"WITH_LIBGSF": true
"WITH_LIBGSF": true,
"CPACK_PACKAGE_NAME": "nel"
}
},
{
Expand Down
1 change: 1 addition & 0 deletions snowballs2/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"WITH_STUDIO": false,
"WITH_TOOLS": false,
"WITH_QT5": true,
"CPACK_PACKAGE_NAME": "snowballs",
"CMAKE_PREFIX_PATH": "${sourceDir}/build/install"
}
},
Expand Down

0 comments on commit d9dcf9e

Please sign in to comment.