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