forked from lijiext/lammps
Added OPT
This commit is contained in:
parent
9991f679ae
commit
2978cce8db
|
@ -52,7 +52,7 @@ foreach(PKG ${PACKAGES})
|
||||||
option(ENABLE_${PKG} "Build ${PKG} Package" ${ENABLE_ALL})
|
option(ENABLE_${PKG} "Build ${PKG} Package" ${ENABLE_ALL})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
set(ACCEL_PACKAGES USER_OMP KOKKOS)
|
set(ACCEL_PACKAGES USER_OMP KOKKOS OPT)
|
||||||
foreach(PKG ${ACCEL_PACKAGES})
|
foreach(PKG ${ACCEL_PACKAGES})
|
||||||
option(ENABLE_${PKG} "Build ${PKG} Package" OFF)
|
option(ENABLE_${PKG} "Build ${PKG} Package" OFF)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
@ -328,6 +328,20 @@ if(ENABLE_KOKKOS)
|
||||||
include_directories(${KOKKOS_PKG_SOURCES_DIR})
|
include_directories(${KOKKOS_PKG_SOURCES_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_OPT)
|
||||||
|
set(OPT_SOURCES_DIR ${LAMMPS_SOURCE_DIR}/OPT)
|
||||||
|
set(OPT_SOURCES)
|
||||||
|
set_property(GLOBAL PROPERTY "OPT_SOURCES" "${OPT_SOURCES}")
|
||||||
|
|
||||||
|
# detects styles which have OPT version
|
||||||
|
RegisterStylesExt(${OPT_SOURCES_DIR} opt OPT_SOURCES)
|
||||||
|
|
||||||
|
get_property(OPT_SOURCES GLOBAL PROPERTY OPT_SOURCES)
|
||||||
|
|
||||||
|
list(APPEND LIB_SOURCES ${OPT_SOURCES})
|
||||||
|
include_directories(${OPT_SOURCES_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
######################################################
|
######################################################
|
||||||
# Generate style headers based on global list of
|
# Generate style headers based on global list of
|
||||||
|
|
Loading…
Reference in New Issue