mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
ced1b3530b
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29334 a592a061-630c-0410-9148-cb99ea01b6c8
40 lines
957 B
CMake
40 lines
957 B
CMake
#
|
|
# based on FindZLIB.cmake
|
|
# created 2009, Kornel Benko, <kornel.benko@berlin.de>
|
|
#
|
|
|
|
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
|
|
|
if (MYTHESLIB_INCLUDE_DIR)
|
|
# Already in cache, be silent
|
|
set(MYTHESLIB_FIND_QUIETLY TRUE)
|
|
endif()
|
|
|
|
set(MYTHES_H mythes.hxx)
|
|
find_path(MYTHESLIB_INCLUDE_DIR ${MYTHES_H}
|
|
/usr/include
|
|
/usr/local/include)
|
|
|
|
set(POTENTIAL_MYTHES_LIBS mythes)
|
|
|
|
find_library(MYTHESLIB_LIBRARY NAMES ${POTENTIAL_MYTHES_LIBS}
|
|
PATHS
|
|
/usr/lib /usr/local/lib)
|
|
|
|
if(MYTHESLIB_INCLUDE_DIR AND MYTHESLIB_LIBRARY)
|
|
set(MYTHESLIB_FOUND TRUE)
|
|
endif()
|
|
|
|
if(MYTHESLIB_FOUND)
|
|
if(NOT MYTHESLIB_FIND_QUIETLY)
|
|
message(STATUS "Found MYTHES: ${MYTHESLIB_LIBRARY}")
|
|
endif()
|
|
else()
|
|
if(MYTHESLIB_FIND_REQUIRED)
|
|
message(STATUS "Looked for MYTHES libraries named ${POTENTIAL_MYTHES_LIBS}.")
|
|
message(STATUS "Found no acceptable MYTHES library. This is fatal.")
|
|
endif()
|
|
endif()
|
|
|
|
mark_as_advanced(MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)
|