forked from mia/Aegisub
19 lines
No EOL
442 B
CMake
19 lines
No EOL
442 B
CMake
find_package(PkgConfig)
|
|
pkg_check_modules(PC_ass QUIET ass)
|
|
find_path(ass_INCLUDE_DIRS
|
|
NAMES ass/ass.h ass/ass_types.h
|
|
PATHS ${PC_ass_INCLUDE_DIRS}
|
|
)
|
|
find_library(ass_LIBRARIES
|
|
NAMES ass
|
|
PATHS ${PC_ass_LIBRARY_DIRS}
|
|
)
|
|
set(ass_VERSION ${PC_ass_VERSION})
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(ass
|
|
FOUND_VAR ass_FOUND
|
|
REQUIRED_VARS
|
|
ass_LIBRARIES
|
|
ass_INCLUDE_DIRS
|
|
VERSION_VAR ass_VERSION
|
|
) |