Blame view

tools/maca/CMakeScripts/FindLoki.cmake 670 Bytes
Jan Lupa authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FIND_PATH(LOKI_INCLUDE_DIR loki/LokiExport.h /usr/include /usr/local/include)

FIND_LIBRARY(LOKI_LIBRARY NAMES loki PATHS /usr/lib /usr/local/lib) 

MARK_AS_ADVANCED(LOKI_LIBRARY)
MARK_AS_ADVANCED(LOKI_INCLUDE_DIR)


IF (LOKI_INCLUDE_DIR AND LOKI_LIBRARY)
   SET(LOKI_FOUND TRUE)
ENDIF (LOKI_INCLUDE_DIR AND LOKI_LIBRARY)


IF (LOKI_FOUND)
   IF (NOT LOKI_FIND_QUIETLY)
      MESSAGE(STATUS "Found LOKI: ${LOKI_LIBRARY}")
   ENDIF (NOT LOKI_FIND_QUIETLY)
ELSE (LOKI_FOUND)
   IF (Loki_FIND_REQUIRED)
      MESSAGE(FATAL_ERROR "Could not find Loki-lib")
   ELSE (Loki_FIND_REQUIRED)
      MESSAGE(STATUS "Loki not found")
   ENDIF (Loki_FIND_REQUIRED)
ENDIF (LOKI_FOUND)