1
2if (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
3  set(ADOLC_FIND_QUIETLY TRUE)
4endif (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
5
6find_path(ADOLC_INCLUDES
7  NAMES
8  adolc/adtl.h
9  PATHS
10  $ENV{ADOLCDIR}
11  ${INCLUDE_INSTALL_DIR}
12)
13
14find_library(ADOLC_LIBRARIES adolc PATHS $ENV{ADOLCDIR} ${LIB_INSTALL_DIR})
15
16include(FindPackageHandleStandardArgs)
17find_package_handle_standard_args(ADOLC DEFAULT_MSG
18                                  ADOLC_INCLUDES ADOLC_LIBRARIES)
19
20mark_as_advanced(ADOLC_INCLUDES ADOLC_LIBRARIES)
21