diff options
Diffstat (limited to 'project/cmake/modules/FindFreeType.cmake')
| -rw-r--r-- | project/cmake/modules/FindFreeType.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/project/cmake/modules/FindFreeType.cmake b/project/cmake/modules/FindFreeType.cmake new file mode 100644 index 0000000..a1e69ab --- /dev/null +++ b/project/cmake/modules/FindFreeType.cmake | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # - Try to find freetype | ||
| 2 | # Once done this will define | ||
| 3 | # | ||
| 4 | # FREETYPE_FOUND - system has freetype | ||
| 5 | # FREETYPE_INCLUDE_DIRS - the freetype include directory | ||
| 6 | # FREETYPE_LIBRARIES - The freetype libraries | ||
| 7 | |||
| 8 | if(PKG_CONFIG_FOUND) | ||
| 9 | pkg_check_modules (FREETYPE freetype2) | ||
| 10 | else() | ||
| 11 | find_path(FREETYPE_INCLUDE_DIRS freetype/freetype.h) | ||
| 12 | find_library(FREETYPE_LIBRARIES NAMES freetype freetype246MT) | ||
| 13 | endif() | ||
| 14 | |||
| 15 | include(FindPackageHandleStandardArgs) | ||
| 16 | find_package_handle_standard_args(FreeType DEFAULT_MSG FREETYPE_INCLUDE_DIRS FREETYPE_LIBRARIES) | ||
| 17 | |||
| 18 | mark_as_advanced(FREETYPE_INCLUDE_DIRS FREETYPE_LIBRARIES) | ||
