summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindASS.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'project/cmake/modules/FindASS.cmake')
-rw-r--r--project/cmake/modules/FindASS.cmake18
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
8if(PKG_CONFIG_FOUND)
9 pkg_check_modules (ASS libass)
10else()
11 find_path(ASS_INCLUDE_DIRS ass/ass.h)
12 find_library(ASS_LIBRARIES NAMES ass libass)
13endif()
14
15include(FindPackageHandleStandardArgs)
16find_package_handle_standard_args(ASS DEFAULT_MSG ASS_INCLUDE_DIRS ASS_LIBRARIES)
17
18mark_as_advanced(ASS_INCLUDE_DIRS ASS_LIBRARIES)