mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
27 lines
801 B
CMake
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)
|