f639458f26
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10959 178a84e3-b1eb-0310-8ba1-8eac791a3b58
28 lines
934 B
CMake
28 lines
934 B
CMake
# - Find Fribidi
|
|
# Find the Fribidi includes and libraries
|
|
#
|
|
# Following variables are provided:
|
|
# FRIBIDI_FOUND
|
|
# True if Fribidi has been found
|
|
# FRIBIDI_INCLUDE_DIRS
|
|
# The include directories of Fribidi
|
|
# FRIBIDI_LIBRARIES
|
|
# Fribidi library list
|
|
|
|
|
|
find_path(FRIBIDI_INCLUDE_DIR NAMES fribidi/fribidi.h PATHS /Library/Frameworks/fribidi.framework/Headers "${PROJECT_SOURCE_DIR}/dependencies/include")
|
|
find_library(FRIBIDI_LIBRARY NAMES fribidi PATHS /Library/Frameworks/fribidi.framework "${PROJECT_SOURCE_DIR}/dependencies/lib")
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Fribidi DEFAULT_MSG FRIBIDI_INCLUDE_DIR FRIBIDI_LIBRARY)
|
|
|
|
|
|
if(APPLE)
|
|
set(FRIBIDI_INCLUDE_DIR "/Library/Frameworks/fribidi.framework/Headers")
|
|
endif()
|
|
|
|
# Publish variables
|
|
set(FRIBIDI_INCLUDE_DIRS ${FRIBIDI_INCLUDE_DIR})
|
|
set(FRIBIDI_LIBRARIES ${FRIBIDI_LIBRARY})
|
|
mark_as_advanced(FRIBIDI_INCLUDE_DIR FRIBIDI_LIBRARY)
|