debian/0000775000000000000000000000000012253505175007175 5ustar debian/rules0000775000000000000000000000160312237756654010271 0ustar #!/usr/bin/make -f BUILDDIR = $(CURDIR)/debian/build %: dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --parallel export OMPI_MCA_plm_rsh_agent=/bin/false #workaround to start MPI-applications in chroot export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed disable_auto_test_archs_simpl = armel armhf disable_auto_test_archs_mpi = hurd-i386 mips mipsel s390 s390x override_dh_auto_test: ifeq (,$(filter $(DEB_HOST_ARCH),$(disable_auto_test_archs_mpi))) mkdir test cp -r examples/LIGGGHTS/Tutorials_public/heatTransfer_1/* test/ cd test; mpirun -np 2 $(BUILDDIR)/src/liggghts < in.heatGran rm -rf test endif ifeq (,$(filter $(DEB_HOST_ARCH),$(disable_auto_test_archs_simple))) mkdir test cp -r examples/LIGGGHTS/Tutorials_public/heatTransfer_1/* test/ cd test; $(BUILDDIR)/src/liggghts < in.heatGran rm -rf test endif override_dh_strip: dh_strip --dbg-package=libliggghts2-dbg debian/liggghts.manpages0000664000000000000000000000001312237756654012530 0ustar debian/*.1 debian/watch0000664000000000000000000000035612237756654010246 0ustar version=3 opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \ https://github.com/CFDEMproject/LIGGGHTS-PUBLIC/tags .*/(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) debian/liggghts.10000664000000000000000000000271712237756654011112 0ustar .TH LIGGGHTS "2011-11-4" .SH NAME .B LIGGGHTS \- open source discrete element method particle simulation code. .SH SYNOPSIS .B liggghts < in.file .SH DESCRIPTION .B LIGGGHTS stands for LAMMPS improved for general granular and granular heat transfer simulations. LAMMPS is a classical molecular dynamics simulator. It is widely used in the field of Molecular Dynamics. Thanks to physical and algorithmic analogies, LAMMPS is a very good platform for DEM simulations. LAMMPS offers a GRANULAR package to perform these kind of simulations. LIGGGHTS aims to improve those capability with the goal to apply it to industrial applications. See http://www.liggghts.com/ for documentation. .SH BUGS Please report bugs to the special topic on LIGGGHTS-forum: .br http://web678.public1.linz.at/Drupal/?q=forum/9 .SH COPYRIGHT © 2009--2011 Christoph Kloss This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/changelog0000664000000000000000000000654312253505174011056 0ustar liggghts (2.3.8-1build1) trusty; urgency=medium * No-change rebuild for libopenmpi1.3 -> libopenmpi1.6 transition. -- Logan Rosen Mon, 16 Dec 2013 00:07:01 -0500 liggghts (2.3.8-1) unstable; urgency=low * [c18713f] Imported Upstream version 2.3.8 * [8433776] Use wrap-and-sort. -- Anton Gladky Sun, 10 Nov 2013 20:25:20 +0100 liggghts (2.3.6-1) unstable; urgency=low * [e358878] Add debian/watch. * [28595e2] Imported Upstream version 2.3.6 * [a43057c] Ignore quilt dir -- Anton Gladky Sun, 07 Jul 2013 16:55:39 +0200 liggghts (2.3.2-1) unstable; urgency=low * [adf4c2b] Imported Upstream version 2.3.2 * [8fe04ee] Use cmake for building. * [e34c201] Split the package into libliggghts2, liggghts-doc, liggghts2-dbg. -- Anton Gladky Tue, 07 May 2013 22:47:51 +0200 liggghts (1.5.3-1) unstable; urgency=low * [fb49bd6] Imported Upstream version 1.5.3 * [cbfc470] Fix FTBFS due to gcc-4.7 (missing header). -- Anton Gladky Wed, 23 May 2012 22:44:20 +0200 liggghts (1.5.2-3) unstable; urgency=low * [b5f1247] Fix wrong defined archs for auto_tests. -- Anton Gladky Thu, 15 Mar 2012 21:31:29 +0100 liggghts (1.5.2-2) unstable; urgency=low * [e5a0fb3] Disable mpirun-test on some platforms, where it crashes. -- Anton Gladky Thu, 15 Mar 2012 20:05:37 +0100 liggghts (1.5.2-1) unstable; urgency=low * [5b3ec1c] Imported Upstream version 1.5.2 * [cfb6bac] Do not start mpirun-autotests on mips* archs. -- Anton Gladky Wed, 14 Mar 2012 20:41:52 +0100 liggghts (1.5.1-5) unstable; urgency=low * [d7df2ea] Fix typo in archs. -- Anton Gladky Sat, 10 Mar 2012 10:10:18 +0100 liggghts (1.5.1-4) unstable; urgency=low * [0915b9e] Disable auto-test on arm and armhf, the test hangs. -- Anton Gladky Tue, 06 Mar 2012 20:45:00 +0100 liggghts (1.5.1-3) unstable; urgency=low * [10595af] Do not break package building, if the autotest failed. -- Anton Gladky Sun, 04 Mar 2012 09:44:07 +0100 liggghts (1.5.1-2) unstable; urgency=low * [65d77e5] Update copyright-format file due to DEP-5 release. * [8fc58b6] Add auto-tests. * [0955950] Use Standards-Version: 3.9.3. No changes. * [43fb8bf] Use compilation flags proposed by build environment instead of hardcoded. * [6ed3623] Fix FTBFS "format not a string literal and no format arg". * [9d602d4] Enable JPEG. Seems FFTW hurts the productivity. * [df4535f] Use dh compat 9. -- Anton Gladky Sat, 03 Mar 2012 07:36:10 +0100 liggghts (1.5.1-1) unstable; urgency=low * [7e46270] Imported Upstream version 1.5.1 * [b2f3ee0] Use --parallel option for faster builds. * [bdc9cba] Add name of interpretator into headers of some executable example scripts. -- Anton Gladky Fri, 03 Feb 2012 22:33:06 +0100 liggghts (1.5-1) unstable; urgency=low * [9529b4b] Install a manpage. * [8d5c6d1] Imported Upstream version 1.5 -- Anton Gladky Fri, 02 Dec 2011 21:40:31 +0100 liggghts (1.4.6-1) unstable; urgency=low * Initial import. (Closes: #647235) -- Anton Gladky Fri, 04 Nov 2011 20:43:49 +0100 debian/compat0000664000000000000000000000000212237756654010407 0ustar 9 debian/libliggghts2.install0000664000000000000000000000003312237756654013156 0ustar usr/lib/*/libliggghts.so.* debian/copyright0000664000000000000000000001423012237756654011144 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://www.liggghts.com/ Files: * Copyright: Christoph Kloss (2009-2011) Sandia Corporation (2003) U.S. Government Steve Plimpton Ahmed Ismail Aidan Thompson Alexander Stukowski Ase Henry Axel Kohlmeyer Carolyn Phillips Christina Payne Chuanfu Luo Craig Maloney Eduardo Bringa Eric Simon Greg Wagner G. Ziegenhain Jeff Greathouse Kurt Smith Mark Stevens Mathias Puetz Mike Brown Mike Parks Naveen Michaud-Agrawal Paul Crozier Pieter in 't Veld Pim Schravendijk Randy Schunk Ravi Agrawal Wan Liang License: GPL-2 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. Files: lib/poems/* Copyright: KURT S ANDERSON (2004) RUDRANARAYAN M MUKHERJEE (2004) JAMES H CRITCHLEY (2004) JOHN L ZIEGLER (2004) SCOTT LIPTON (2004) GEOFFREY BASORE (2004) JOHN EVANS (2004) License: POEMS-License Authors as indicated in Author List and Rensselaer Polytechnic Institute . Parallelizable Open source Efficient Multibody Software (POEMS) is written and maintained by the authors as indicated in Author's List as a part of Scientific Computation Research Center (SCOREC) at Rensselaer Polytechnic Intitute, Troy, NY, USA. . This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder saying it may be distributed under the terms of this Rensselaer Public License (also called "this License"). Each licensee is addressed as "you". . A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library/code or any derivative work under copyright law. . "Source code" for a work means the preferred form of the work for making modifications to it including any associated interface definition files, and scripts used to control compilation and installation of the library. . This library is free software; Redistribution and use in source code and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions, the authors list, the grants list, and the following disclaimer without any modifications and in its current form. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, the authors list, the grants list, and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. You must cause the files modified to carry prominent notices stating that you changed the files and dates of the change. . 4. At your discretion, you may submit the differences between the program and your work based on the program for inclusion in the source code repository maintained by Rensselaer Polytechnic Institute. The mechanics of the submission are explained in the file named CONTRIBUTE distributed with the Library. Should you decide to submit the changes, you agree to provide Rensselaer Polytechnic Institute with a joint copyright assignment of the changes, and you agree to sign such a copyright assignment form at the request of Rensselaer Polytechnic Institute. Changes will then made as appropriate to the authors list at the Resselaer repository. . 5. The authors as listed in "Authors_List" reserve the right to distribute the software or any modified work in any other license form if they so choose to without infringing on any previous or concurrent license agreement. . 6. The name of the authors or their employer(s), Rensselaer Polytechnic Institute, the Computational Dynamics Laboratory, the Scientific Computation Research Center (SCoReC), nor the names of any of the software distributors may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR THE SCIENTIFIC COMPUTATION RESEARCH CENTER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/source/0000775000000000000000000000000012237756654010511 5ustar debian/source/format0000664000000000000000000000001412237756654011717 0ustar 3.0 (quilt) debian/liggghts-doc.examples0000664000000000000000000000001312237756654013316 0ustar examples/* debian/libliggghts-dev.install0000664000000000000000000000003312237756654013650 0ustar usr/include usr/lib/*/*.so debian/control0000664000000000000000000001055012237756654010615 0ustar Source: liggghts Section: science Priority: extra Build-Depends: cmake, debhelper (>= 9), libboost-mpi-dev, libjpeg-dev, mpi-default-bin, mpi-default-dev Maintainer: Debian Science Maintainers Uploaders: Anton Gladky Homepage: http://www.liggghts.com/ Standards-Version: 3.9.4 Vcs-Git: git://git.debian.org/git/debian-science/packages/liggghts.git Vcs-Browser: http://git.debian.org/?p=debian-science/packages/liggghts.git Package: libliggghts-dev Architecture: any Section: libdevel Pre-Depends: ${misc:Pre-Depends} Multi-Arch: same Depends: libliggghts2 (= ${binary:Version}), mpi-default-bin, ${misc:Depends}, ${shlibs:Depends} Description: Open Source DEM Particle Simulation Software. Development files LIGGGHTS stands for LAMMPS improved for general granular and granular heat transfer simulations. . LAMMPS is a classical molecular dynamics simulator. It is widely used in the field of Molecular Dynamics. Thanks to physical and algorithmic analogies, LAMMPS is a very good platform for DEM simulations. LAMMPS offers a GRANULAR package to perform these kind of simulations. LIGGGHTS aims to improve those capability with the goal to apply it to industrial applications. Development version. . The package contains development files. Package: libliggghts2 Architecture: any Depends: mpi-default-bin, ${misc:Depends}, ${shlibs:Depends} Pre-Depends: ${misc:Pre-Depends} Multi-Arch: same Description: Open Source DEM Particle Simulation Software. Shared library LIGGGHTS stands for LAMMPS improved for general granular and granular heat transfer simulations. . LAMMPS is a classical molecular dynamics simulator. It is widely used in the field of Molecular Dynamics. Thanks to physical and algorithmic analogies, LAMMPS is a very good platform for DEM simulations. LAMMPS offers a GRANULAR package to perform these kind of simulations. LIGGGHTS aims to improve those capability with the goal to apply it to industrial applications. Development version. . The package contains shared library. Package: libliggghts2-dbg Architecture: any Section: debug Pre-Depends: ${misc:Pre-Depends} Multi-Arch: same Depends: liggghts (= ${binary:Version}), mpi-default-bin, ${misc:Depends}, ${shlibs:Depends} Description: Open Source DEM Particle Simulation Software. Debugging symbols LIGGGHTS stands for LAMMPS improved for general granular and granular heat transfer simulations. . LAMMPS is a classical molecular dynamics simulator. It is widely used in the field of Molecular Dynamics. Thanks to physical and algorithmic analogies, LAMMPS is a very good platform for DEM simulations. LAMMPS offers a GRANULAR package to perform these kind of simulations. LIGGGHTS aims to improve those capability with the goal to apply it to industrial applications. Development version. . The package contains debugging symbols. Package: liggghts Architecture: any Multi-Arch: foreign Depends: libliggghts2 (>= ${source:Version}), mpi-default-bin, ${misc:Depends}, ${shlibs:Depends} Recommends: paraview Description: Open Source DEM Particle Simulation Software. LIGGGHTS stands for LAMMPS improved for general granular and granular heat transfer simulations. . LAMMPS is a classical molecular dynamics simulator. It is widely used in the field of Molecular Dynamics. Thanks to physical and algorithmic analogies, LAMMPS is a very good platform for DEM simulations. LAMMPS offers a GRANULAR package to perform these kind of simulations. LIGGGHTS aims to improve those capability with the goal to apply it to industrial applications. Development version. Package: liggghts-doc Architecture: all Section: doc Depends: mpi-default-bin, ${misc:Depends}, ${shlibs:Depends} Recommends: liggghts Description: Open Source DEM Particle Simulation Software. Dcoumentation and examples LIGGGHTS stands for LAMMPS improved for general granular and granular heat transfer simulations. . LAMMPS is a classical molecular dynamics simulator. It is widely used in the field of Molecular Dynamics. Thanks to physical and algorithmic analogies, LAMMPS is a very good platform for DEM simulations. LAMMPS offers a GRANULAR package to perform these kind of simulations. LIGGGHTS aims to improve those capability with the goal to apply it to industrial applications. Development version. . The package contains documentation and examples. debian/liggghts-doc.lintian-overrides0000664000000000000000000000005312237756654015142 0ustar liggghts-doc: executable-not-elf-or-script debian/liggghts.install0000664000000000000000000000001012237756654012400 0ustar usr/bin debian/patches/0000775000000000000000000000000012237756654010640 5ustar debian/patches/01_add_cmake_files.patch0000664000000000000000000001632212237756654015237 0ustar Description: adds cmake files. Will hopefully be accepted by upstream. Author: Anton Gladky Last-Update: 2013-05-07 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,87 @@ +# ENABLE_PACKAGE: enable PACKAGE-modules (OFF by default) +# ENABLE_PACKAGEUSER: enable PACKAGEUSER-modules (OFF by default) +# SUFFIX: add sufix to binary-name (NONE by default) +# VERSION: version number (2.2 by default) +# LIB_SUFFIX: suffix, where libliggghts library will be installed, lib/${LIB_SUFFIX} (NONE by default) + +PROJECT(LIGGGHTS C CXX) +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) + +SET(CMAKE_VERBOSE_MAKEFILE 1) +SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cMake") + +SET(VERSION 2.3.2) +SET(USERPATH 1) +#======================================= + +IF (NOT CMAKE_CXX_FLAGS) + #If flags are not set, add default flags + SET(CMAKE_BUILD_TYPE Release) + SET(CMAKE_CXX_FLAGS " -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security") +ENDIF (NOT CMAKE_CXX_FLAGS) + +#======================================= +FIND_PACKAGE(Boost COMPONENTS mpi serialization REQUIRED) +INCLUDE_DIRECTORIES (${Boost_INCLUDE_DIRS}) +#======================================= + +INCLUDE(FindVTK) +INCLUDE(GNUInstallDirs) +FIND_PACKAGE(VTK COMPONENTS Common) +IF(VTK_FOUND) + INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS}) + LINK_DIRECTORIES(${VTK_LIBRARY_DIRS}) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLAMMPS_VTK") + MESSAGE(STATUS "Found VTK") + + FIND_PACKAGE(Eigen3 REQUIRED) + INCLUDE_DIRECTORIES(${EIGEN3_INCLUDE_DIR}) + MESSAGE(STATUS "Found Eigen3") +ELSE(VTK_FOUND) + MESSAGE(STATUS "VTK NOT found!") +ENDIF(VTK_FOUND) + +#======================================= + +INCLUDE(FindJPEG) +IF(JPEG_FOUND) + INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR}) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLAMMPS_JPEG") +ELSE(JPEG_FOUND) + MESSAGE(STATUS "JPEG NOT found!") +ENDIF(JPEG_FOUND) + +#======================================= + +INCLUDE(FindMPI) +IF(MPI_C_FOUND AND MPI_CXX_FOUND) + SET(CMAKE_C_COMPILER ${MPI_C_COMPILER}) + SET(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) +ELSE(MPI_C_FOUND AND MPI_CXX_FOUND) + #Check old FindMPI version + IF(MPI_COMPILER) + SET(CMAKE_C_COMPILER ${MPI_COMPILER}) + SET(CMAKE_CXX_COMPILER ${MPI_COMPILER}) + ELSE(MPI_COMPILER) + MESSAGE(FATAL_ERROR "MPI-COMPILER NOT found!") + ENDIF(MPI_COMPILER) +ENDIF(MPI_C_FOUND AND MPI_CXX_FOUND) + +#======================================= + +#Disabled modules +#GPU KIM MEAM POEMS REAX SRD +IF(ENABLE_PACKAGE) + SET(MODULES_PACKAGE ASPHERE CLASS2 COLLOID DIPOLE FLD GRANULAR KSPACE MANYBODY MC MOLECULE OPT PERI REPLICA SHOCK XTC) +ENDIF(ENABLE_PACKAGE) +#Disabled modules +#USER-MISC +IF(ENABLE_PACKAGEUSER) + SET(MODULES_USER USER-ATC USER-AWPMD USER-CG-CMM USER-CUDA USER-EFF USER-EWALDN USER-OMP USER-REAXC USER-SPH) +ENDIF(ENABLE_PACKAGEUSER) +#======================================= + +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src) + +ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/src") --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,84 +1,45 @@ -# ENABLE_PACKAGE: enable PACKAGE-modules (OFF by default) -# ENABLE_PACKAGEUSER: enable PACKAGEUSER-modules (OFF by default) -# SUFFIX: add sufix to binary-name (NONE by default) -# USERPATH: use RPATH for search of the shared library libliggghts, need to be switched on by packaging (ON by default) -# VERSION: version number (2.2 by default) -# LIB_SUFFIX: suffix, where libliggghts library will be installed, lib/${LIB_SUFFIX} (NONE by default) - -PROJECT(LIGGGHTS C CXX) -CMAKE_MINIMUM_REQUIRED(VERSION 2.6) - -SET(CMAKE_VERBOSE_MAKEFILE 1) -SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cMake") - -SET(VERSION 2.2) -SET(USERPATH 1) -#======================================= - -IF (NOT CMAKE_CXX_FLAGS) - #If flags are not set, add default flags - SET(CMAKE_BUILD_TYPE Release) - SET(CMAKE_CXX_FLAGS " -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security") -ENDIF (NOT CMAKE_CXX_FLAGS) +FILE(GLOB SRC_FILES_SRC "*.cpp") +SET(SRC_FILES ${SRC_FILES_SRC}) -#======================================= +FILE(GLOB SRC_FILES_HEAD "*.h") + +FOREACH(SUB_DIR_ADD ${MODULES_PACKAGE} ${MODULES_USER}) + MESSAGE("SUB_DIR_ADD: ${SUB_DIR_ADD}") + FILE(GLOB SRC_FILES_ADD "${SUB_DIR_ADD}/*.cpp") + INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/${SUB_DIR_ADD}) + SET(SRC_FILES ${SRC_FILES} ${SRC_FILES_ADD}) +ENDFOREACH(SUB_DIR_ADD ${MODULES_PACKAGE} ${MODULES_USER}) + + +FILE(GLOB to_remove main.cpp) +LIST(REMOVE_ITEM SRC_FILES ${to_remove}) + +ADD_LIBRARY(libliggghts SHARED ${SRC_FILES}) +TARGET_LINK_LIBRARIES(libliggghts ${Boost_LIBRARIES}) +SET_TARGET_PROPERTIES(libliggghts PROPERTIES + OUTPUT_NAME "liggghts${SUFFIX}" + VERSION ${VERSION} + SOVERSION 2) + +IF(JPEG_FOUND) + TARGET_LINK_LIBRARIES(libliggghts ${JPEG_LIBRARIES}) +ENDIF(JPEG_FOUND) -INCLUDE(FindVTK) -FIND_PACKAGE(VTK COMPONENTS Common) IF(VTK_FOUND) - INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS}) - LINK_DIRECTORIES(${VTK_LIBRARY_DIRS}) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLAMMPS_VTK") - MESSAGE(STATUS "Found VTK") - - FIND_PACKAGE(Eigen3 REQUIRED) - INCLUDE_DIRECTORIES(${EIGEN3_INCLUDE_DIR}) - MESSAGE(STATUS "Found Eigen3") -ELSE(VTK_FOUND) - MESSAGE(STATUS "VTK NOT found!") + TARGET_LINK_LIBRARIES(libliggghts vtkHybrid) ENDIF(VTK_FOUND) -#======================================= +INSTALL(TARGETS libliggghts DESTINATION "${CMAKE_INSTALL_LIBDIR}/") +#====================================================== -INCLUDE(FindJPEG) -IF(JPEG_FOUND) - INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR}) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLAMMPS_JPEG") -ELSE(JPEG_FOUND) - MESSAGE(STATUS "JPEG NOT found!") -ENDIF(JPEG_FOUND) +ADD_EXECUTABLE(liggghts main.cpp) +SET_TARGET_PROPERTIES(liggghts PROPERTIES OUTPUT_NAME "liggghts${SUFFIX}") +TARGET_LINK_LIBRARIES(liggghts libliggghts) -#======================================= +INSTALL(TARGETS liggghts DESTINATION "${CMAKE_INSTALL_BINDIR}/") -INCLUDE(FindMPI) -IF(MPI_C_FOUND AND MPI_CXX_FOUND) - SET(CMAKE_C_COMPILER ${MPI_C_COMPILER}) - SET(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) -ELSE(MPI_C_FOUND AND MPI_CXX_FOUND) - #Check old FindMPI version - IF(MPI_COMPILER) - SET(CMAKE_C_COMPILER ${MPI_COMPILER}) - SET(CMAKE_CXX_COMPILER ${MPI_COMPILER}) - ELSE(MPI_COMPILER) - MESSAGE(FATAL_ERROR "MPI-COMPILER NOT found!") - ENDIF(MPI_COMPILER) -ENDIF(MPI_C_FOUND AND MPI_CXX_FOUND) - -#======================================= - -#Disabled modules -#GPU KIM MEAM POEMS REAX SRD -IF(ENABLE_PACKAGE) - SET(MODULES_PACKAGE ASPHERE CLASS2 COLLOID DIPOLE FLD GRANULAR KSPACE MANYBODY MC MOLECULE OPT PERI REPLICA SHOCK XTC) -ENDIF(ENABLE_PACKAGE) -#Disabled modules -#USER-MISC -IF(ENABLE_PACKAGEUSER) - SET(MODULES_USER USER-ATC USER-AWPMD USER-CG-CMM USER-CUDA USER-EFF USER-EWALDN USER-OMP USER-REAXC USER-SPH) -ENDIF(ENABLE_PACKAGEUSER) -#======================================= +#====================================================== -INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) -INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src) +INSTALL(FILES ${SRC_FILES_HEAD} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/liggghts${SUFFIX}/") +#====================================================== -ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/src") debian/patches/series0000664000000000000000000000003112237756654012047 0ustar 01_add_cmake_files.patch debian/liggghts-doc.docs0000664000000000000000000000000412237756654012430 0ustar doc