1
# - Try to find the GETTEXT-PO libraries
2
# Once done this will define
4
# GETTEXTPO_FOUND - system has GETTEXT-PO
5
# GETTEXTPO_INCLUDE_DIR - the GETTEXT-PO include directory
6
# GETTEXTPO_LIBRARIES - GETTEXT-PO library
8
# Copyright (c) 2012 Yichao Yu <yyc1992@gmail.com>
10
# Redistribution and use is allowed according to the terms of the BSD license.
11
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
13
if(GETTEXTPO_INCLUDE_DIR AND GETTEXTPO_LIBRARIES)
14
# Already in cache, be silent
15
set(GETTEXTPO_FIND_QUIETLY TRUE)
18
find_path(GETTEXTPO_INCLUDE_DIR
21
find_library(GETTEXTPO_LIBRARIES
24
include(FindPackageHandleStandardArgs)
25
find_package_handle_standard_args(GettextPo DEFAULT_MSG GETTEXTPO_LIBRARIES
26
GETTEXTPO_INCLUDE_DIR)
28
mark_as_advanced(GETTEXTPO_INCLUDE_DIR GETTEXTPO_LIBRARIES)