Debian Codegraph @

storage/mroonga/vendor/groonga/plugins/suggest/CMakeLists.txt

raw
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 ${MRUBY_INCLUDE_DIRS}
19 ${MESSAGE_PACK_INCLUDE_DIRS})
20
21 read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/sources.am SUGGEST_SOURCES)
22 set_source_files_properties(${SUGGEST_SOURCES}
23 PROPERTIES
24 COMPILE_FLAGS "${GRN_C_COMPILE_FLAGS}")
25 if(GRN_EMBED)
26 add_library(suggest STATIC ${SUGGEST_SOURCES})
27 set_target_properties(
28 suggest
29 PROPERTIES
30 POSITION_INDEPENDENT_CODE ON)
31 else()
32 add_library(suggest MODULE ${SUGGEST_SOURCES})
33 set_target_properties(suggest PROPERTIES PREFIX "")
34 install(TARGETS suggest DESTINATION "${GRN_RELATIVE_PLUGINS_DIR}/suggest")
35 endif()
36 target_link_libraries(suggest libgroonga)