aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/FindAdolc.cmake
blob: 1a7ff3628a1aa6bd0a033b75edf23bbdc587d899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

if (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
  set(ADOLC_FIND_QUIETLY TRUE)
endif (ADOLC_INCLUDES AND ADOLC_LIBRARIES)

find_path(ADOLC_INCLUDES
  NAMES
  adolc/adouble.h
  PATHS
  $ENV{ADOLCDIR}
  ${INCLUDE_INSTALL_DIR}
)

find_library(ADOLC_LIBRARIES adolc PATHS $ENV{ADOLCDIR} ${LIB_INSTALL_DIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ADOLC DEFAULT_MSG
                                  ADOLC_INCLUDES ADOLC_LIBRARIES)

mark_as_advanced(ADOLC_INCLUDES ADOLC_LIBRARIES)