forked from mia/Aegisub
19 lines
No EOL
506 B
CMake
19 lines
No EOL
506 B
CMake
find_package(PkgConfig)
|
|
pkg_check_modules(PC_uchardet QUIET uchardet)
|
|
find_path(uchardet_INCLUDE_DIRS
|
|
NAMES uchardet/uchardet.h
|
|
PATHS ${PC_uchardet_INCLUDE_DIRS}
|
|
)
|
|
find_library(uchardet_LIBRARIES
|
|
NAMES uchardet
|
|
PATHS ${PC_uchardet_LIBRARY_DIRS}
|
|
)
|
|
set(uchardet_VERSION ${PC_uchardet_VERSION})
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(uchardet
|
|
FOUND_VAR uchardet_FOUND
|
|
REQUIRED_VARS
|
|
uchardet_LIBRARIES
|
|
uchardet_INCLUDE_DIRS
|
|
VERSION_VAR uchardet_VERSION
|
|
) |