# set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
# set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
-set(CPACK_GENERATOR "RPM")
-SET(CPACK_RPM_PACKAGE_LICENSE "GPL")
-SET(CPACK_RPM_PACKAGE_GROUP "Applications/Sciences")
-set(CPACK_RPM_PACKAGE_REQUIRES "gnuplot >= 4.2, cmake >= 2.8")
-set(CPACK_RPM_CHANGELOG_FILE "${CMAKE_CURRENT_SOURCE_DIR}/specchangelog")
-SET(CPACK_BINARY_RPM "ON")
-SET(CPACK_BINARY_STGZ "OFF")
-SET(CPACK_BINARY_TBZ2 "OFF")
-SET(CPACK_BINARY_TGZ "OFF")
-SET(CPACK_BINARY_TXZ "ON")
-SET(CPACK_BINARY_TZ "OFF")
+#set(CPACK_GENERATOR "RPM")
+# SET(CPACK_RPM_PACKAGE_LICENSE "GPL")
+# SET(CPACK_RPM_PACKAGE_GROUP "Applications/Sciences")
+# set(CPACK_RPM_PACKAGE_REQUIRES "gnuplot >= 4.2, cmake >= 2.8")
+#set(CPACK_RPM_CHANGELOG_FILE "${CMAKE_CURRENT_SOURCE_DIR}/specchangelog")
+#cpack -G RPM --config ./CPackSourceConfig.cmake
+# SET(CPACK_BINARY_RPM "ON")
+# SET(CPACK_RPM_PACKAGE_SOURCES "ON")
+# SET(CPACK_BINARY_STGZ "OFF")
+# SET(CPACK_BINARY_TBZ2 "OFF")
+# SET(CPACK_BINARY_TGZ "OFF")
+# SET(CPACK_BINARY_TXZ "ON")
+# SET(CPACK_BINARY_TZ "OFF")
-SET(CPACK_GENERATOR "TXZ")
-SET(CPACK_SOURCE_GENERATOR "TXZ")
-SET(CPACK_SOURCE_TBZ2 "OFF")
-SET(CPACK_SOURCE_TGZ "OFF")
-SET(CPACK_SOURCE_TOPLEVEL_TAG "Linux-Source")
-SET(CPACK_SOURCE_TXZ "ON")
-SET(CPACK_SOURCE_TZ "OFF")
-SET(CPACK_SOURCE_ZIP "OFF")
+# SET(CPACK_GENERATOR "TXZ")
+# SET(CPACK_SOURCE_GENERATOR "TXZ")
-INCLUDE(InstallRequiredSystemLibraries)
+#INCLUDE(InstallRequiredSystemLibraries)
-INCLUDE(CPack)
- INCLUDE(UseRPMTools)
- IF(RPMTools_FOUND)
- RPMTools_ADD_RPM_TARGETS(${PACKAGE_NAME} ${PACKAGE_NAME}.spec.in)
- ENDIF(RPMTools_FOUND)
+#INCLUDE(CPack)
+# INCLUDE(UseRPMTools)
+# IF(RPMTools_FOUND)
+# RPMTools_ADD_RPM_TARGETS(${PACKAGE_NAME} ${PACKAGE_NAME}.spec.in)
+# ENDIF(RPMTools_FOUND)
# RPMTools_ADD_RPM_TARGETS(${PACKAGE_NAME} ${CMAKE_SOURCE_DIR}/${PACKAGE_NAME}.spec.in)
# RPMTools_ADD_RPM_TARGETS(${PACKAGE_NAME})