summaryrefslogtreecommitdiffstats
path: root/FindUECC.cmake
blob: 269c8f71b3c3180950ce4630baec332dd824b719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FIND_PATH(UECC_INCLUDE_DIR libuecc/ecc.h)
FIND_LIBRARY(UECC_LIBRARY NAMES uecc)

IF (UECC_INCLUDE_DIR AND UECC_LIBRARY)
   SET(UECC_FOUND TRUE)
ENDIF (UECC_INCLUDE_DIR AND UECC_LIBRARY)

IF (UECC_FOUND)
   IF (NOT UECC_FIND_QUIETLY)
      MESSAGE(STATUS "Found libuecc: ${UECC_LIBRARY}; include path: ${UECC_INCLUDE_DIR}")
   ENDIF (NOT UECC_FIND_QUIETLY)
ELSE (UECC_FOUND)
   IF (UECC_FIND_REQUIRED)
      MESSAGE(FATAL_ERROR "Could not find libuecc")
   ENDIF (UECC_FIND_REQUIRED)
ENDIF (UECC_FOUND)