forked from lijiext/lammps
14 lines
552 B
CMake
14 lines
552 B
CMake
# Fix rigid/meso requires RIGID to be installed
|
|
set(USER-SDPD_SOURCES_DIR ${LAMMPS_SOURCE_DIR}/USER-SDPD)
|
|
|
|
get_property(hlist GLOBAL PROPERTY FIX)
|
|
if(NOT PKG_RIGID)
|
|
list(REMOVE_ITEM hlist ${USER-SDPD_SOURCES_DIR}/fix_rigid_meso.h)
|
|
get_target_property(LAMMPS_SOURCES lammps SOURCES)
|
|
list(REMOVE_ITEM LAMMPS_SOURCES ${USER-SDPD_SOURCES_DIR}/fix_rigid_meso.cpp)
|
|
set_property(TARGET lammps PROPERTY SOURCES ${LAMMPS_SOURCES})
|
|
endif()
|
|
set_property(GLOBAL PROPERTY FIX "${hlist}")
|
|
|
|
target_include_directories(lammps PRIVATE ${USER-SDPD_SOURCES_DIR})
|