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 # handle the QUIETLY and REQUIRED arguments and set MYTHESLIB_FOUND to TRUE if
25 # all listed variables are TRUE
26 include(FindPackageHandleStandardArgs)
27 find_package_handle_standard_args(MYTHESLIB DEFAULT_MSG MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)
29 mark_as_advanced(MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)