From 9fc8b732737f139d3e466510d75668ab45578960 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 8 Mar 2016 21:02:53 +0100 Subject: sync with upstream --- project/cmake/modules/FindASS.cmake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 project/cmake/modules/FindASS.cmake (limited to 'project/cmake/modules/FindASS.cmake') 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 @@ +# - Try to find ASS +# Once done this will define +# +# ASS_FOUND - system has libass +# ASS_INCLUDE_DIRS - the libass include directory +# ASS_LIBRARIES - The libass libraries + +if(PKG_CONFIG_FOUND) + pkg_check_modules (ASS libass) +else() + find_path(ASS_INCLUDE_DIRS ass/ass.h) + find_library(ASS_LIBRARIES NAMES ass libass) +endif() + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(ASS DEFAULT_MSG ASS_INCLUDE_DIRS ASS_LIBRARIES) + +mark_as_advanced(ASS_INCLUDE_DIRS ASS_LIBRARIES) -- cgit v1.2.3