summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindASS.cmake
blob: 5f4b0c79d2255405c69a4524e2dd6df9e3f7c0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)