2017-07-17 12:07:21 +08:00
|
|
|
# - Find quantum-espresso
|
|
|
|
# Find the native QE headers and libraries.
|
|
|
|
#
|
|
|
|
# QE_INCLUDE_DIRS - where to find quantum-espresso.h, etc.
|
|
|
|
# QE_LIBRARIES - List of libraries when using quantum-espresso.
|
|
|
|
# QE_FOUND - True if quantum-espresso found.
|
|
|
|
#
|
|
|
|
|
|
|
|
find_path(QE_INCLUDE_DIR libqecouple.h PATH_SUFFIXES COUPLE/include)
|
|
|
|
|
2017-07-17 12:37:51 +08:00
|
|
|
find_library(QECOUPLE_LIBRARY NAMES qecouple)
|
|
|
|
find_library(PW_LIBRARY NAMES pw)
|
|
|
|
find_library(QEMOD_LIBRARY NAMES qemod)
|
|
|
|
find_library(QEFFT_LIBRARY NAMES qefft)
|
|
|
|
find_library(QELA_LIBRARY NAMES qela)
|
|
|
|
find_library(CLIB_LIBRARY NAMES clib)
|
|
|
|
find_library(IOTK_LIBRARY NAMES iotk)
|
2017-07-17 12:07:21 +08:00
|
|
|
|
2017-07-17 12:37:51 +08:00
|
|
|
|
|
|
|
set(QE_LIBRARIES ${QECOUPLE_LIBRARY} ${PW_LIBRARY} ${QEMOD_LIBRARY} ${QEFFT_LIBRARY} ${QELA_LIBRARY} ${CLIB_LIBRARY} ${IOTK_LIBRARY})
|
2017-07-17 12:07:21 +08:00
|
|
|
set(QE_INCLUDE_DIRS ${QE_INCLUDE_DIR})
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set QE_FOUND to TRUE
|
|
|
|
# if all listed variables are TRUE
|
|
|
|
|
2017-07-17 12:37:51 +08:00
|
|
|
find_package_handle_standard_args(QE DEFAULT_MSG QECOUPLE_LIBRARY PW_LIBRARY QEMOD_LIBRARY QEFFT_LIBRARY QELA_LIBRARY CLIB_LIBRARY IOTK_LIBRARY QE_INCLUDE_DIR)
|
2017-07-17 12:07:21 +08:00
|
|
|
|
2017-07-17 12:37:51 +08:00
|
|
|
mark_as_advanced(QE_INCLUDE_DIR QECOUPLE_LIBRARY PW_LIBRARY QEMOD_LIBRARY QEFFT_LIBRARY QELA_LIBRARY CLIB_LIBRARY IOTK_LIBRARY)
|