summaryrefslogtreecommitdiff
path: root/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/normalizers/CMakeLists.txt
blob: db8ffedb0826616200a7cfdc0b6ea32a5267d79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright(C) 2013-2015  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; version 2
# of the License.
#
# 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
# MA 02110-1301, USA

set(NORMALIZERS_DIR "${GROONGA_PLUGINS_DIR}/normalizers")
read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/mysql_sources.am MYSQL_SOURCES)
if(GROONGA_NORMALIZER_MYSQL_EMBED)
  add_convenience_library(mysql_normalizer ${MYSQL_SOURCES})
  set_property(TARGET mysql_normalizer APPEND PROPERTY
    COMPILE_DEFINITIONS "GROONGA_NORMALIZER_MYSQL_EMBED")
else()
  add_library(mysql_normalizer MODULE ${MYSQL_SOURCES})
  set_target_properties(mysql_normalizer PROPERTIES
    PREFIX ""
    OUTPUT_NAME "mysql")
  install(TARGETS mysql_normalizer DESTINATION "${NORMALIZERS_DIR}")
endif()
target_link_libraries(mysql_normalizer ${GROONGA_LIBRARIES})