Debian Codegraph @

CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 #http://www.cmake.org/Wiki/CMake:Packaging_With_CPack
2 cmake_minimum_required(VERSION 2.6)
3 PROJECT(populations CXX C)
4
5 #cpack -G TGZ --config CPackSourceConfig.cmake
6 # cpack -G TGZ --config CPackSourceConfig.cmake
7
8
9 #.dput.cf
10 #[olivier-langella]
11 #fqdn = ppa.launchpad.net
12 #method = ftp
13 #incoming = ~olivier-langella/ppa/ubuntu/
14 #login = olivier-langella
15 #allow_unsigned_uploads = 0
16 #
17 # debuild -S -sa
18 # dput -f olivier-langella *changes
19
20
21
22
23 message ("compiler : ${CMAKE_BASE_NAME}")
24
25
26 # cross compilation Win32 :
27 #cd build_win32
28 #export CC=/usr/bin/i586-mingw32msvc-gcc
29 #export CXX=/usr/bin/i586-mingw32msvc-g++
30 #INCLUDE(${populations_SOURCE_DIR}/win32/Toolchain-mingw32.cmake)
31 #cmake -DCMAKE_TOOLCHAIN_FILE=../win32/Toolchain-mingw32.cmake ..
32
33 #IF (MINGW32)
34 # ADD_DEFINITIONS(-DCOMPILATION_MINGW32)
35 # MESSAGE(coucou)
36 # SET( CMAKE_BUILD_TYPE "Debug")
37 # SET(CMAKE_CXX_FLAGS_DEBUG "-g")
38 #ELSE (MINGW32)
39 # SET( CMAKE_BUILD_TYPE "Release")
40 #ENDIF(MINGW32)
41
42
43 IF ( CMAKE_BASE_NAME MATCHES "cl")
44 message ("on est sous Windows")
45 SET( CMAKE_BUILD_TYPE "Release")
46 SET( WIN32 "windows")
47 ELSE (CMAKE_BASE_NAME MATCHES "cl")
48 SET( CMAKE_BUILD_TYPE "Release")
49 #SET( CMAKE_BUILD_TYPE "Debug")
50 ENDIF(CMAKE_BASE_NAME MATCHES "cl")
51
52 IF ( CMAKE_BUILD_TYPE MATCHES "Release")
53 MESSAGE("compiling as release version")
54 ADD_DEFINITIONS("-DQT_NO_DEBUG_OUTPUT")
55 ELSE ( CMAKE_BUILD_TYPE MATCHES "Release" )
56 MESSAGE("compiling as debug version")
57 ENDIF( CMAKE_BUILD_TYPE MATCHES "Release" )
58
59
60 #CMAKE_CXX_FLAGS
61 #CMAKE_CXX_FLAGS_DEBUG -g
62 #CMAKE_CXX_FLAGS_MINSIZEREL -Os -DNDEBUG
63 #CMAKE_CXX_FLAGS_RELEASE -O3 -DNDEBUG
64 #CMAKE_CXX_FLAGS_RELWITHDEBINFO -O2 -g
65
66 SET (POPULATIONS_VERSION "1.2.33")
67
68 SET(CPACK_CMAKE_GENERATOR "Unix Makefiles")
69 SET(CPACK_GENERATOR "STGZ;TGZ;TZ")
70 #SET(CPACK_INSTALL_CMAKE_PROJECTS "/tmp;Populations;src;/src")
71 #SET(CPACK_NSIS_DISPLAY_NAME "CMake 2.5")
72 SET(CPACK_OUTPUT_CONFIG_FILE "./CPackConfig.cmake")
73 SET(CPACK_PACKAGE_DESCRIPTION_FILE ${populations_SOURCE_DIR}/COPYING)
74 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Populations is population genetic software")
75 SET(CPACK_PACKAGE_EXECUTABLES "populations")
76 SET(CPACK_PACKAGE_FILE_NAME "populations-${POPULATIONS_VERSION}-Linux-i686")
77 SET(CPACK_PACKAGE_INSTALL_DIRECTORY "populations ${POPULATIONS_VERSION}")
78 SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "populations ${POPULATIONS_VERSION}")
79 SET(CPACK_PACKAGE_NAME "populations")
80 SET(CPACK_PACKAGE_VENDOR "CNRS")
81 SET(CPACK_PACKAGE_VERSION ${POPULATIONS_VERSION})
82 SET(CPACK_PACKAGE_VERSION_MAJOR "1")
83 SET(CPACK_PACKAGE_VERSION_MINOR "2")
84 SET(CPACK_PACKAGE_VERSION_PATCH "33")
85 SET(CPACK_RESOURCE_FILE_LICENSE ${populations_SOURCE_DIR}/COPYING)
86 SET(CPACK_RESOURCE_FILE_README ${populations_SOURCE_DIR}/README)
87 SET(CPACK_RESOURCE_FILE_WELCOME ${populations_SOURCE_DIR}/INSTALL)
88 SET(CPACK_RESOURCE_FILE_LICENSE ${populations_SOURCE_DIR}/ChangeLog)
89 SET(CPACK_SOURCE_GENERATOR "TGZ;TZ")
90 SET(CPACK_SOURCE_OUTPUT_CONFIG_FILE "./CPackSourceConfig.cmake")
91 SET(CPACK_SOURCE_PACKAGE_FILE_NAME "populations-${POPULATIONS_VERSION}")
92 SET(CPACK_SOURCE_STRIP_FILES "")
93 SET(CPACK_STRIP_FILES "bin/populations")
94 SET(CPACK_SYSTEM_NAME "Linux-i686")
95 SET(CPACK_TOPLEVEL_TAG "Linux-i686")
96
97
98 SET(CPACK_SOURCE_IGNORE_FILES
99 "/devel_archives/"
100 "/figures/"
101 "/Soumis/"
102 "Makefile"
103 "install_manifest.txt"
104 "cmake_install.cmake"
105 "cmake_install.cmake"
106 "CMakeCache.txt"
107 "CPackConfig.cmake"
108 "CPackSourceConfig.cmake"
109 "install_manifest.txt"
110 "/CMakeFiles/"
111 "/_CPack_Packages/"
112 "/Debug/"
113 "/Release/"
114 "/\\\\.externalToolBuilders/"
115 "/\\\\.svn/"
116 "/\\\\.settings/"
117 "Makefile"
118 "\\\\.cdtbuild"
119 "\\\\.cdtproject"
120 "\\\\.project"
121 "/win32/"
122 )
123 # cpack -G TGZ --config CPackSourceConfig.cmake
124 # dpkg-buildpackage -rfakeroot
125 configure_file (${populations_SOURCE_DIR}/src/config.h.cmake ${populations_SOURCE_DIR}/src/config.h)
126
127 #SET(CPACK_SOURCE_IGNORE_FILES "/CMakeFiles/;/_CPack_Packages/;/templates/;/debug/;/Debug/;/Release/;/\\\\.svn/;/\\\\.settings/;Makefile;\\\\.cdtbuild;\\\\.cdtproject;\\\\.project")
128 # cpack -G TGZ --config CPackSourceConfig.cmake
129 SET(CPACK_PACKAGE_EXECUTABLES "populations" "populations")
130
131
132 SET(CPACK_STRIP_FILES "src/populations")
133
134
135
136 # for debian package :
137 SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Olivier Langella <[email protected]>")
138 SET(DEBIAN_PACKAGE_BUILDS_DEPENDS "Olivier Langella <[email protected]>")
139
140
141
142 INCLUDE(CPack)
143
144 # The name of our project is "HELLO". CMakeLists files in this project can
145 # refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
146 # to the root binary directory of the project as ${HELLO_BINARY_DIR}.
147 project (populations)
148
149 # Recurse into the "Hello" and "Demo" subdirectories. This does not actually
150 # cause another cmake executable to run. The same process will walk through
151 # the project's entire directory structure.
152 add_subdirectory (src)
153 if (NOT CMAKE_INSTALL_PREFIX)
154 SET (CMAKE_INSTALL_PREFIX /usr/local)
155 endif (NOT CMAKE_INSTALL_PREFIX)
156 #INSTALL(PROGRAMS src/populations DESTINATION bin)
157 #INSTALL(DIRECTORY doc/man1 DESTINATION share/man/man1)
158 #INSTALL(FILES doc/man1/beads.1 DESTINATION share/man/man1)