Debian Codegraph @

lib/GroongaConfig.cmake.in

raw
1 # Copyright(C) 2023 Sutou Kouhei <[email protected]>
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
17 @PACKAGE_INIT@
18
19 set(GRN_WITH_MESSAGE_PACK "@GRN_WITH_MESSAGE_PACK@")
20 set(GRN_WITH_BUNDLED_MESSAGE_PACK "@GRN_WITH_BUNDLED_MESSAGE_PACK@")
21 set(GRN_PLUGINS_DIR "@GRN_PLUGINS_DIR@")
22
23 include(CMakeFindDependencyMacro)
24
25 find_dependency(Threads)
26 if(DEFINED CMAKE_MODULE_PATH)
27 set(GRN_CMAKE_MODULE_PATH_OLD ${CMAKE_MODULE_PATH})
28 else()
29 unset(GRN_CMAKE_MODULE_PATH_OLD)
30 endif()
31 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
32 if(GRN_WITH_MESSAGE_PACK AND NOT GRN_WITH_BUNDLED_MESSAGE_PACK)
33 find_dependency(Groongamsgpackc)
34 endif()
35 if(DEFINED GRN_CMAKE_MODULE_PATH_OLD)
36 set(CMAKE_MODULE_PATH ${GRN_CMAKE_MODULE_PATH_OLD})
37 unset(GRN_CMAKE_MODULE_PATH_OLD)
38 else()
39 unset(CMAKE_MODULE_PATH)
40 endif()
41
42 include("${CMAKE_CURRENT_LIST_DIR}/GroongaTargets.cmake")
43
44 check_required_components(Groonga)