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-1.2)
20 find_library(MYTHESLIB_LIBRARY NAMES ${POTENTIAL_MYTHES_LIBS}
21 PATHS ${SYSTEM_LIB_DIRS} )
23 # handle the QUIETLY and REQUIRED arguments and set MYTHESLIB_FOUND to TRUE if
24 # all listed variables are TRUE
25 include(FindPackageHandleStandardArgs)
26 find_package_handle_standard_args(MYTHESLIB DEFAULT_MSG MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)
28 mark_as_advanced(MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)