| 1 |
# Copyright(C) 2012-2013 Brazil |
| 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 version 2.1 as published by the Free Software Foundation. |
| 6 |
# |
| 7 |
# This library is distributed in the hope that it will be useful, |
| 8 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 10 |
# Lesser General Public License for more details. |
| 11 |
# |
| 12 |
# You should have received a copy of the GNU Lesser General Public |
| 13 |
# License along with this library; if not, write to the Free Software |
| 14 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA |
| 15 |
|
| 16 |
include_directories( |
| 17 |
${CMAKE_CURRENT_SOURCE_DIR}/../../lib |
| 18 |
) |
| 19 |
|
| 20 |
set(QUERY_EXPANDERS_DIR "${GRN_RELATIVE_PLUGINS_DIR}/query_expanders") |
| 21 |
read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/tsv_sources.am TSV_SOURCES) |
| 22 |
set_source_files_properties(${TSV_SOURCES} |
| 23 |
PROPERTIES |
| 24 |
COMPILE_FLAGS "${GRN_C_COMPILE_FLAGS}") |
| 25 |
if(GRN_EMBED) |
| 26 |
add_library(tsv_query_expander STATIC ${TSV_SOURCES}) |
| 27 |
set_target_properties( |
| 28 |
tsv_query_expander |
| 29 |
PROPERTIES |
| 30 |
POSITION_INDEPENDENT_CODE ON) |
| 31 |
else() |
| 32 |
add_library(tsv_query_expander MODULE ${TSV_SOURCES}) |
| 33 |
set_target_properties(tsv_query_expander PROPERTIES |
| 34 |
PREFIX "" |
| 35 |
OUTPUT_NAME "tsv") |
| 36 |
install(TARGETS tsv_query_expander DESTINATION "${QUERY_EXPANDERS_DIR}") |
| 37 |
endif() |
| 38 |
target_link_libraries(tsv_query_expander libgroonga) |