diff options
| author | 2010-05-27 21:03:20 +0200 | |
|---|---|---|
| committer | 2010-05-27 21:03:20 +0200 | |
| commit | 610509e0e69f8808443c0da2df701adda6185d7d (patch) | |
| tree | 34703d8d310a2a022b98d966f2613b0c9d409561 | |
| parent | 0833499c76f78da21fc33874a485946189a33dad (diff) | |
| download | usbmuxd-610509e0e69f8808443c0da2df701adda6185d7d.tar.gz usbmuxd-610509e0e69f8808443c0da2df701adda6185d7d.tar.bz2 | |
Added missing FindPLIST.cmake file
| -rw-r--r-- | Modules/FindPLIST.cmake | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Modules/FindPLIST.cmake b/Modules/FindPLIST.cmake new file mode 100644 index 0000000..d51aa74 --- /dev/null +++ b/Modules/FindPLIST.cmake | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | # - Try to find libplist | ||
| 2 | # Once done, this will define | ||
| 3 | # | ||
| 4 | # PLIST_FOUND - system has libplist | ||
| 5 | # PLIST_INCLUDE_DIRS - the libplist include directories | ||
| 6 | # PLIST_LIBRARIES - link these to use libplist | ||
| 7 | |||
| 8 | include(LibFindMacros) | ||
| 9 | |||
| 10 | # Dependencies | ||
| 11 | |||
| 12 | # Use pkg-config to get hints about paths | ||
| 13 | libfind_pkg_check_modules(PLIST_PKGCONF libplist >= 0.15) | ||
| 14 | |||
| 15 | # Include dir | ||
| 16 | find_path(PLIST_INCLUDE_DIR | ||
| 17 | NAMES plist/plist.h | ||
| 18 | PATHS ${PLIST_PKGCONF_INCLUDE_DIRS} | ||
| 19 | ) | ||
| 20 | |||
| 21 | # Finally the library itself | ||
| 22 | find_library(PLIST_LIBRARY | ||
| 23 | NAMES plist | ||
| 24 | PATHS ${PLIST_PKGCONF_LIBRARY_DIRS} | ||
| 25 | ) | ||
| 26 | |||
| 27 | # Set the include dir variables and the libraries and let libfind_process do the rest. | ||
| 28 | # NOTE: Singular variables for this library, plural for libraries that this lib depends on. | ||
| 29 | set(PLIST_PROCESS_INCLUDES PLIST_INCLUDE_DIR) | ||
| 30 | set(PLIST_PROCESS_LIBS PLIST_LIBRARY) | ||
| 31 | libfind_process(PLIST) | ||
