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