diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-10-19 01:50:53 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-10-19 01:50:53 (GMT) |
commit | fbda4a9e93bed91041418bc572ac50beed7559a3 (patch) | |
tree | f59b3f0b1a8364551782605a9063db59651a27e4 /src/cmake/modules/FindFriBiDi.cmake | |
parent | afd117ac962a8a0633f6b08fee250f327d5e6c12 (diff) | |
download | mxe-fbda4a9e93bed91041418bc572ac50beed7559a3.zip mxe-fbda4a9e93bed91041418bc572ac50beed7559a3.tar.gz mxe-fbda4a9e93bed91041418bc572ac50beed7559a3.tar.bz2 |
add CMake module FindFriBiDi.cmake
Now the following CMake code finds FriBiDi:
find_package(FriBiDi)
Diffstat (limited to 'src/cmake/modules/FindFriBiDi.cmake')
-rw-r--r-- | src/cmake/modules/FindFriBiDi.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cmake/modules/FindFriBiDi.cmake b/src/cmake/modules/FindFriBiDi.cmake new file mode 100644 index 0000000..949665b --- /dev/null +++ b/src/cmake/modules/FindFriBiDi.cmake @@ -0,0 +1,15 @@ +# This file is part of MXE. +# See index.html for further information. + +message("== Custom MXE File: " ${CMAKE_CURRENT_LIST_FILE}) + +if(NOT PKG_CONFIG_FOUND) + find_package(PkgConfig REQUIRED) +endif() + +pkg_check_modules(FRIBIDI fribidi) + +# for backward compatiblity +set(FRIBIDI_LIBRARY ${FRIBIDI_LIBRARIES}) +set(FRIBIDI_INCLUDE_DIR ${FRIBIDI_INCLUDE_DIRS}) +set(FRIBIDI_VERSION_STRING ${FRIBIDI_VERSION}) |