]> git.lyx.org Git - lyx.git/blob - development/cmake/modules/FindMyThesLIB.cmake
cmake: more cleanup
[lyx.git] / development / cmake / modules / FindMyThesLIB.cmake
1 #
2 #  based on FindZLIB.cmake
3 #  created 2009, Kornel Benko, <kornel.benko@berlin.de>
4 #
5
6 set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
7
8 if (MYTHESLIB_INCLUDE_DIR)
9   # Already in cache, be silent
10   set(MYTHESLIB_FIND_QUIETLY TRUE)
11 endif()
12
13 set(MYTHES_H mythes.hxx)
14 find_path(MYTHESLIB_INCLUDE_DIR ${MYTHES_H}
15  /usr/include
16  /usr/local/include)
17
18 set(POTENTIAL_MYTHES_LIBS mythes)
19
20 find_library(MYTHESLIB_LIBRARY NAMES ${POTENTIAL_MYTHES_LIBS}
21         PATHS
22         /usr/lib /usr/local/lib)
23
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)
28
29 mark_as_advanced(MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)