# Copyright (C) 2024 Shizuo Fujita # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA if(Groongalibedit_FOUND) return() endif() find_package(PkgConfig) if(PkgConfig_FOUND) pkg_check_modules(Groongalibedit_pkg_libedit IMPORTED_TARGET "libedit") set(Groongalibedit_FOUND ${Groongalibedit_pkg_libedit_FOUND}) if(Groongalibedit_FOUND) add_library(Groonga::libedit ALIAS PkgConfig::Groongalibedit_pkg_libedit) endif() endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Groongalibedit REQUIRED_VARS Groongalibedit_FOUND)