1 #-------------------------------------------------------------------------------
2 # ______ ______ ____ __ __
3 # | ____| | ____/ __ \ /\ | \/ |
4 # | |__ _ __ ___ ___| |__ | | | | / \ | \ / |
5 # | __| '__/ _ \/ _ \ __|| | | |/ /\ \ | |\/| |
6 # | | | | | __/ __/ | | |__| / ____ \| | | |
7 # |_| |_| \___|\___|_| \____/_/ \_\_| |_|
9 # FreeFOAM: The Cross-Platform CFD Toolkit
11 # Copyright (C) 2008-2009 Michael Wild <themiwi@users.sf.net>
12 # Gerber van der Graaf <gerber_graaf@users.sf.net>
13 #-------------------------------------------------------------------------------
15 # This file is part of FreeFOAM.
17 # FreeFOAM is free software; you can redistribute it and/or modify it
18 # under the terms of the GNU General Public License as published by the
19 # Free Software Foundation; either version 2 of the License, or (at your
20 # option) any later version.
22 # FreeFOAM is distributed in the hope that it will be useful, but WITHOUT
23 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
24 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
27 # You should have received a copy of the GNU General Public License
28 # along with FreeFOAM; if not, write to the Free Software Foundation,
29 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 #-------------------------------------------------------------------------------
33 set( CPACK_PACKAGE_NAME ${PROJECT_NAME} )
34 set( CPACK_PACKAGE_VENDOR "Michael Wild and Gerber van der Graaf" )
35 set( CPACK_PACKAGE_VERSION_MAJOR ${FF_VERSION_MAJOR} )
36 set( CPACK_PACKAGE_VERSION_MINOR ${FF_VERSION_MINOR} )
37 set( CPACK_PACKAGE_VERSION_PATCH ${FF_VERSION_PATCH} )
38 set( CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_SOURCE_DIR}/ReleaseNotes-1.6-OpenFOAM )
39 set( CPACK_PACKAGE_DESCRIPTION_SUMMARY "FreeFOAM - Open source CFD toolbox based on OpenFOAM" )
40 set( CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${FF_VERSION_FULL}-${FF_OS}-${CMAKE_SYSTEM_PROCESSOR}" )
41 set( CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${FF_VERSION_FULL}" )
42 set( CPACK_PACKAGE_INSTALL_DIRECTORY "FreeFOAM ${FF_VERSION_FULL}" )
43 configure_file( ${CMAKE_SOURCE_DIR}/COPYING ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/COPYING.txt COPYONLY )
44 set( CPACK_RESOURCE_FILE_LICENSE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/COPYING.txt )
45 set( CPACK_RESOURCE_FILE_README ${CMAKE_SOURCE_DIR}/README.html )
46 set( CPACK_STRIP_FILES TRUE )
47 set( CPACK_SOURCE_IGNORE_FILES "/CVS/;/\\\\.svn/;\\\\.swp$;\\\\.#;/#;.*~;cscope.*;/\\\\.git*" )
48 set( CPACK_SET_DESTDIR TRUE )
52 #HACK for CMake < 2.6.1
53 if( NOT COMMAND cpack_add_component )
54 macro( cpack_add_component )
56 endmacro( cpack_add_component )
57 endif( NOT COMMAND cpack_add_component )
59 cpack_add_component( shlibs
60 DISPLAY_NAME "Libraries"
61 DESCRIPTION "The FreeFOAM libraries"
65 cpack_add_component( bin
66 DISPLAY_NAME "Executables"
67 DESCRIPTION "The FreeFOAM solvers and utilities"
71 cpack_add_component( dev
72 DISPLAY_NAME "Development files"
73 DESCRIPTION "The FreeFOAM headers and development files"
77 cpack_add_component( plugins
78 DISPLAY_NAME "OpenFOAM-reader plugins"
79 DESCRIPTION "OpenFOAM-reader plugins for ParaView and Ensight visualization tools"
83 # ------------------------- vim: set sw=2 sts=2 et: --------------- end-of-file