CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}")
  2. SET(CPACK_PACKAGE_VENDOR "${PROJECT_AUTHOR}")
  3. SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
  4. SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt")
  5. SET(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}")
  6. SET(CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}")
  7. SET(CPACK_PACKAGE_VERSION_PATCH "${VERSION_RELEASE}")
  8. IF(VERSION_STAGE)
  9. SET(CPACK_PACKAGE_VERSION_PATCH "${CPACK_PACKAGE_VERSION_PATCH}-${VERSION_STAGE}")
  10. ENDIF()
  11. IF(VERSION_BUILD)
  12. SET(CPACK_PACKAGE_VERSION_PATCH "${CPACK_PACKAGE_VERSION_PATCH}.${VERSION_BUILD}")
  13. ENDIF()
  14. SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${PROJECT_NAME_UCASE}")
  15. SET(CPACK_SOURCE_GENERATOR "TBZ2")
  16. SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}")
  17. IF(NOT DEFINED WIN32)
  18. SET(CPACK_STRIP_FILES "bin/${CMAKE_PROJECT_NAME};${PLUGIN_DIR}/*.so")
  19. SET(CPACK_PACKAGE_EXECUTABLES "${CMAKE_PROJECT_NAME}" "${PROJECT_NAME_UCASE} binary")
  20. ENDIF()
  21. IF(LMMS_BUILD_WIN32)
  22. ADD_SUBDIRECTORY(nsis)
  23. ELSEIF(LMMS_BUILD_APPLE)
  24. ADD_SUBDIRECTORY(apple)
  25. ELSE()
  26. ADD_SUBDIRECTORY(linux)
  27. ENDIF()
  28. INCLUDE(CPack)