[med-svn] r2157 - trunk/packages/treeplot/trunk
tryphon-guest at alioth.debian.org
tryphon-guest at alioth.debian.org
Sun Jul 6 07:22:26 UTC 2008
Author: tryphon-guest
Date: 2008-07-06 07:22:24 +0000 (Sun, 06 Jul 2008)
New Revision: 2157
Added:
trunk/packages/treeplot/trunk/CMakeLists.txt
Log:
Added: trunk/packages/treeplot/trunk/CMakeLists.txt
===================================================================
--- trunk/packages/treeplot/trunk/CMakeLists.txt (rev 0)
+++ trunk/packages/treeplot/trunk/CMakeLists.txt 2008-07-06 07:22:24 UTC (rev 2157)
@@ -0,0 +1,71 @@
+#http://www.cmake.org/Wiki/CMake:Packaging_With_CPack
+
+
+SET(CPACK_PACKAGE_NAME "treeplot")
+SET(DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.3.1-6), libgcc1 (>= 1:3.4.2-12)")
+SET(CPACK_CMAKE_GENERATOR "Unix Makefiles")
+SET(CPACK_GENERATOR "TGZ;DEB")
+SET(CPACK_INSTALL_CMAKE_PROJECTS "/home/olivier/eclipse/treeplot;treeplot;ALL;/")
+# cpack -G TGZ --config CPackSourceConfig.cmake
+
+set(VERSION 0.7.1)
+
+# CPack version numbers for release tarball name.
+set(CPACK_PACKAGE_VERSION_MAJOR 0)
+set(CPACK_PACKAGE_VERSION_MINOR 7)
+set(CPACK_PACKAGE_VERSION_PATCH 1)
+
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Plotting phylogenetic trees")
+set(CPACK_PACKAGE_VENDOR "Tryphonar corp")
+#set(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/README)
+set(CPACK_GENERATOR TGZ)
+set(
+CPACK_SOURCE_PACKAGE_FILE_NAME
+"treeplot-${VERSION}"
+CACHE INTERNAL "tarball basename"
+)
+
+SET(CPACK_STRIP_FILES "bin/treeplot")
+SET(CPACK_SOURCE_STRIP_FILES "")
+SET(CPACK_PACKAGE_EXECUTABLES "treeplot" "treeplot")
+
+SET(CPACK_SOURCE_IGNORE_FILES
+ "cmake_install.cmake"
+ "CMakeCache.txt"
+ "CPackConfig.cmake"
+ "/CMakeFiles/"
+ "/_CPack_Packages/"
+ "/Debug/"
+ "/debian/"
+ "/Release/"
+ "/\\\\.svn/"
+ "/\\\\.settings/"
+ "Makefile"
+ "\\\\.cdtbuild"
+ "\\\\.cdtproject"
+ "\\\\.project"
+)
+
+
+INCLUDE(CPack)
+
+#INCLUDE(UseDebian)
+# IF(DEBIAN_FOUND)
+# ADD_DEBIAN_TARGETS(src)
+# ENDIF(DEBIAN_FOUND)
+
+# The name of our project is "HELLO". CMakeLists files in this project can
+# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
+# to the root binary directory of the project as ${HELLO_BINARY_DIR}.
+project (treeplot)
+
+# Recurse into the "Hello" and "Demo" subdirectories. This does not actually
+# cause another cmake executable to run. The same process will walk through
+# the project's entire directory structure.
+add_subdirectory (src)
+
+# for a local installation :
+#SET (CMAKE_INSTALL_PREFIX /usr/local)
+# for a system installation (debian package) :
+SET (CMAKE_INSTALL_PREFIX /usr)
+INSTALL(PROGRAMS src/treeplot DESTINATION bin)
More information about the debian-med-commit
mailing list