Skip to content
Snippets Groups Projects
Commit f4130869 authored by Benoit Favre's avatar Benoit Favre
Browse files

add support for libmacaon2.so

parent b564c719
No related branches found
No related tags found
No related merge requests found
...@@ -47,4 +47,28 @@ if(MACA_EXPORT) ...@@ -47,4 +47,28 @@ if(MACA_EXPORT)
add_subdirectory(maca_export) add_subdirectory(maca_export)
endif() endif()
#create macaon library target
set(MACAON_LIBRARY_SOURCES
$<TARGET_OBJECTS:maca_common_obj>
$<TARGET_OBJECTS:maca_lemmatizer_obj>
$<TARGET_OBJECTS:maca_tokenizer_obj>
$<TARGET_OBJECTS:maca_lexer_obj>
$<TARGET_OBJECTS:transparse_obj>
$<TARGET_OBJECTS:maca_crf_tagger_obj>
)
## $<TARGET_OBJECTS:maca_chunker_obj>
## $<TARGET_OBJECTS:maca_tagger_obj>
#set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all-symbols")
add_library(macaon SHARED ${MACAON_LIBRARY_SOURCES})
#add_library(macaon_static STATIC ${MACAON_LIBRARY_SOURCES})
#target_link_libraries(macaon ${LIBM_C_FLAGS} ${GFSM_LIBRARY} ${FST_LIBRARY} ${LIBXML2_LIBRARIES} ${GLIB2_LIBRARIES} ${MINGW_LIBRARIES})
#set_target_properties(macaon PROPERTIES SOVERSION "${MACAON_VERSION}")
#target_compile_definitions(macaon PUBLIC MACAON_VERSION=${MACAON_VERSION})
#set(MACAON_LIB_TARGETS ${MACAON_LIB_TARGETS} macaon)
#set_target_properties(macaon_static PROPERTIES OUTPUT_NAME "macaon")
#set(MACAON_STATIC_LIB_TARGETS ${MACAON_STATIC_LIB_TARGETS} macaon_static)
#set(CMAKE_INSTALL_PREFIX ../) #set(CMAKE_INSTALL_PREFIX ../)
...@@ -19,6 +19,7 @@ set(SOURCES src/util.c ...@@ -19,6 +19,7 @@ set(SOURCES src/util.c
#compiling library #compiling library
add_library(maca_common STATIC ${SOURCES}) add_library(maca_common STATIC ${SOURCES})
add_library(maca_common_obj OBJECT ${SOURCES})
#compiling, linking and installing executables #compiling, linking and installing executables
......
include_directories(src) include_directories(src)
#compiling, linking and installing executables #compiling, linking and installing executables
add_library(maca_crf_tagger_obj OBJECT ./src/simple_tagger.cc)
add_executable(crf_barebones_decoder ./src/crf_barebones_decoder.cc) add_executable(crf_barebones_decoder ./src/crf_barebones_decoder.cc)
target_compile_options(crf_barebones_decoder PRIVATE -std=c++11) target_compile_options(crf_barebones_decoder PRIVATE -std=c++11)
install (TARGETS crf_barebones_decoder DESTINATION bin) install (TARGETS crf_barebones_decoder DESTINATION bin)
......
...@@ -3,6 +3,7 @@ set(SOURCES src/context.c) ...@@ -3,6 +3,7 @@ set(SOURCES src/context.c)
##compiling library ##compiling library
include_directories(src) include_directories(src)
add_library(maca_lemmatizer_lib STATIC ${SOURCES}) add_library(maca_lemmatizer_lib STATIC ${SOURCES})
add_library(maca_lemmatizer_obj OBJECT ${SOURCES})
#compiling, linking and installing executables #compiling, linking and installing executables
......
...@@ -3,6 +3,7 @@ set(SOURCES src/context.c) ...@@ -3,6 +3,7 @@ set(SOURCES src/context.c)
##compiling library ##compiling library
include_directories(src) include_directories(src)
add_library(maca_lexer_lib STATIC ${SOURCES}) add_library(maca_lexer_lib STATIC ${SOURCES})
add_library(maca_lexer_obj OBJECT ${SOURCES})
#compiling, linking and installing executables #compiling, linking and installing executables
......
...@@ -10,6 +10,7 @@ set(SOURCES ./src/context.c ...@@ -10,6 +10,7 @@ set(SOURCES ./src/context.c
include_directories(./src) include_directories(./src)
add_library(maca_tokenizer_lib STATIC ${SOURCES}) add_library(maca_tokenizer_lib STATIC ${SOURCES})
add_library(maca_tokenizer_obj OBJECT ${SOURCES})
#compiling, linking and installing executables #compiling, linking and installing executables
......
...@@ -34,6 +34,7 @@ set(SOURCES src/context.c ...@@ -34,6 +34,7 @@ set(SOURCES src/context.c
#compiling library #compiling library
include_directories(src) include_directories(src)
add_library(transparse STATIC ${SOURCES}) add_library(transparse STATIC ${SOURCES})
add_library(transparse_obj OBJECT ${SOURCES})
target_link_libraries(transparse perceptron) target_link_libraries(transparse perceptron)
#compiling, linking and installing executables #compiling, linking and installing executables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment