kdelibs/cmake/modules/FindGettextPO.cmake
Ivailo Monev e51c2231f5 cmake: remove unused LibXKlavier module
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-09 15:58:05 +02:00

27 lines
801 B
CMake

# Try to find GettextPO, once done this will define:
#
# GETTEXTPO_FOUND - System has GettextPO
# GETTEXTPO_INCLUDE_DIR - The GettextPO include directory
# GETTEXTPO_LIBRARY - The library needed to use GettextPO
#
# Copyright (c) 2021 Ivailo Monev <xakepa10@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
find_path(GETTEXTPO_INCLUDE_DIR
NAMES gettext-po.h
HINTS $ENV{GETTEXTPODIR}/include
)
find_library(GETTEXTPO_LIBRARY
NAMES gettextpo
HINTS $ENV{GETTEXTPODIR}/lib
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GettextPO
REQUIRED_VARS GETTEXTPO_LIBRARY GETTEXTPO_INCLUDE_DIR
)
mark_as_advanced(GETTEXTPO_INCLUDE_DIR GETTEXTPO_LIBRARY)