add USER-AWPMD

This commit is contained in:
Christoph Junghans 2017-07-16 16:45:28 -06:00
parent c64424754d
commit d50b62837b
1 changed files with 10 additions and 4 deletions

View File

@ -43,7 +43,7 @@ option(CMAKE_VERBOSE_MAKEFILE "Verbose makefile" OFF)
option(ENABLE_ALL "Build all packages" OFF)
set(PACKAGES ASPHERE BODY CLASS2 COLLOID COMPRESS CORESHELL DIPOLE GRANULAR
KSPACE MANYBODY MC MEAM MISC MOLECULE MSCG MPIIO PERI POEMS PYTHON QEQ
REAX REPLICA RIGID SHOCK SNAP SRD VORONOI USER-ATC)
REAX REPLICA RIGID SHOCK SNAP SRD VORONOI USER-ATC USER-AWPMD)
foreach(PKG ${PACKAGES})
option(ENABLE_${PKG} "Build ${PKG} Package" ${ENABLE_ALL})
endforeach()
@ -87,9 +87,10 @@ if(ENABLE_KOKKOS)
list(APPEND LAMMPS_LINK_LIBS kokkos)
endif()
if(ENABLE_MSCG OR ENABLE_USER-ATC)
if(ENABLE_MSCG OR ENABLE_USER-ATC OR ENABLE_USER-AWPMD)
find_package(LAPACK REQUIRED)
list(APPEND LAMMPS_LINK_LIBS ${LAPACK_LIBRARIES})
#TODO use lib/lapack
endif()
if(ENABLE_PYTHON)
@ -201,17 +202,22 @@ if(ENABLE_USER_OMP OR ENABLE_KOKKOS)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
foreach(SIMPLE_LIB REAX MEAM POEMS USER-ATC)
foreach(SIMPLE_LIB REAX MEAM POEMS USER-ATC USER-AWPMD)
if(ENABLE_${SIMPLE_LIB})
string(REGEX REPLACE "^USER-" "" SIMPLE_LIB "${SIMPLE_LIB}")
string(TOLOWER "${SIMPLE_LIB}" INC_DIR)
file(GLOB ${SIMPLE_LIB}_SOURCES ${LAMMPS_LIB_SOURCE_DIR}/${INC_DIR}/*.F
file(GLOB_RECURSE ${SIMPLE_LIB}_SOURCES ${LAMMPS_LIB_SOURCE_DIR}/${INC_DIR}/*.F
${LAMMPS_LIB_SOURCE_DIR}/${INC_DIR}/*.c ${LAMMPS_LIB_SOURCE_DIR}/${INC_DIR}/*.cpp)
list(APPEND LIB_SOURCES ${${SIMPLE_LIB}_SOURCES})
include_directories(${LAMMPS_LIB_SOURCE_DIR}/${INC_DIR})
endif()
endforeach()
if(ENABLE_USER-AWPMD)
include_directories(${LAMMPS_LIB_SOURCE_DIR}/awpmd/systems/interact
${LAMMPS_LIB_SOURCE_DIR}/awpmd/ivutils/include)
endif()
if(ENABLE_MSCG)
find_package(GSL REQUIRED)
set(LAMMPS_LIB_MSCG_BIN_DIR ${LAMMPS_LIB_BINARY_DIR}/mscg)