2 # based on FindZLIB.cmake
3 # created 2009, Kornel Benko, <kornel.benko@berlin.de>
6 set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
8 if (MYTHESLIB_INCLUDE_DIR)
9 # Already in cache, be silent
10 set(MYTHESLIB_FIND_QUIETLY TRUE)
13 set(MYTHES_H mythes.hxx)
14 find_path(MYTHESLIB_INCLUDE_DIR ${MYTHES_H}
18 set(POTENTIAL_MYTHES_LIBS mythes)
20 find_library(MYTHESLIB_LIBRARY NAMES ${POTENTIAL_MYTHES_LIBS}
22 /usr/lib /usr/local/lib)
24 if(MYTHESLIB_INCLUDE_DIR AND MYTHESLIB_LIBRARY)
25 set(MYTHESLIB_FOUND TRUE)
29 if(NOT MYTHESLIB_FIND_QUIETLY)
30 message(STATUS "Found MYTHES: ${MYTHESLIB_LIBRARY}")
33 if(MYTHESLIB_FIND_REQUIRED)
34 message(STATUS "Looked for MYTHES libraries named ${POTENTIAL_MYTHES_LIBS}.")
35 message(STATUS "Found no acceptable MYTHES library. This is fatal.")
39 mark_as_advanced(MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)