2009-02-28 00:19:13 +08:00
|
|
|
|
|
|
|
if (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
|
|
|
|
set(ADOLC_FIND_QUIETLY TRUE)
|
2019-11-01 00:36:27 +08:00
|
|
|
endif ()
|
2009-02-28 00:19:13 +08:00
|
|
|
|
|
|
|
find_path(ADOLC_INCLUDES
|
2021-02-20 06:17:10 +08:00
|
|
|
NAMES adolc/adtl.h
|
|
|
|
PATHS $ENV{ADOLCDIR} $ENV{ADOLCDIR}/include ${INCLUDE_INSTALL_DIR}
|
2009-02-28 00:19:13 +08:00
|
|
|
)
|
|
|
|
|
2021-02-20 06:17:10 +08:00
|
|
|
find_library(ADOLC_LIBRARIES
|
|
|
|
adolc
|
|
|
|
PATHS $ENV{ADOLCDIR} ${LIB_INSTALL_DIR}
|
|
|
|
PATH_SUFFIXES lib lib64)
|
2009-02-28 00:19:13 +08:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2021-02-20 06:17:10 +08:00
|
|
|
find_package_handle_standard_args(Adolc DEFAULT_MSG
|
2009-02-28 00:19:13 +08:00
|
|
|
ADOLC_INCLUDES ADOLC_LIBRARIES)
|
|
|
|
|
|
|
|
mark_as_advanced(ADOLC_INCLUDES ADOLC_LIBRARIES)
|