PageRenderTime 25ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/lyx-2.0.4/development/cmake/modules/FindMyThesLIB.cmake

#
CMake | 28 lines | 14 code | 7 blank | 7 comment | 1 complexity | 802c2591ca50dfe229667ea0ca55cf7f MD5 | raw file
Possible License(s): LGPL-2.0, GPL-2.0
  1. #
  2. # based on FindZLIB.cmake
  3. # created 2009, Kornel Benko, <kornel.benko@berlin.de>
  4. #
  5. set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
  6. if (MYTHESLIB_INCLUDE_DIR)
  7. # Already in cache, be silent
  8. set(MYTHESLIB_FIND_QUIETLY TRUE)
  9. endif()
  10. set(MYTHES_H mythes.hxx)
  11. find_path(MYTHESLIB_INCLUDE_DIR ${MYTHES_H}
  12. /usr/include
  13. /usr/local/include)
  14. set(POTENTIAL_MYTHES_LIBS mythes)
  15. find_library(MYTHESLIB_LIBRARY NAMES ${POTENTIAL_MYTHES_LIBS}
  16. PATHS ${SYSTEM_LIB_DIRS} )
  17. # handle the QUIETLY and REQUIRED arguments and set MYTHESLIB_FOUND to TRUE if
  18. # all listed variables are TRUE
  19. include(FindPackageHandleStandardArgs)
  20. find_package_handle_standard_args(MYTHESLIB DEFAULT_MSG MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)
  21. mark_as_advanced(MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)