This commit is contained in:
wyy 2013-11-03 07:49:41 -08:00
parent ae09f92b19
commit 6f15f1398c
16 changed files with 12 additions and 12 deletions

View File

@ -4,5 +4,15 @@ ADD_EXECUTABLE(keywordext.demo keywordext.cpp)
INCLUDE_DIRECTORIES(../limonp ../cppjieba ../husky)
LINK_DIRECTORIES(../cppjieba ../husky)
TARGET_LINK_LIBRARIES(segment.demo cppjieba)
TARGET_LINK_LIBRARIES(server.demo cppjieba husky -lpthread)
TARGET_LINK_LIBRARIES(keywordext.demo cppjieba)
TARGET_LINK_LIBRARIES(server.demo cppjieba husky pthread)
SET(LIBCPPJIEBA_SRC HMMSegment.cpp MixSegment.cpp MPSegment.cpp Trie.cpp)
INCLUDE_DIRECTORIES(../limonp)
ADD_LIBRARY(cppjieba SHARED ${LIBCPPJIEBA_SRC})
SET_TARGET_PROPERTIES(cppjieba PROPERTIES VERSION 1.2 SOVERSION 1)
INSTALL(TARGETS cppjieba LIBRARY DESTINATION lib/CppJieba)
INSTALL(FILES ChineseFilter.hpp HMMSegment.h MPSegment.h structs.h Trie.h globals.h ISegment.hpp MixSegment.h SegmentBase.hpp TransCode.hpp DESTINATION include/CppJieba)

View File

@ -1,10 +0,0 @@
SET(LIBCPPJIEBA_SRC HMMSegment.cpp MixSegment.cpp MPSegment.cpp Trie.cpp)
INCLUDE_DIRECTORIES(../limonp)
ADD_LIBRARY(cppjieba SHARED ${LIBCPPJIEBA_SRC})
SET_TARGET_PROPERTIES(cppjieba PROPERTIES VERSION 1.2 SOVERSION 1)
INSTALL(TARGETS cppjieba LIBRARY DESTINATION lib/CppJieba)
INSTALL(FILES ChineseFilter.hpp HMMSegment.h MPSegment.h structs.h Trie.h globals.h ISegment.hpp MixSegment.h SegmentBase.hpp TransCode.hpp DESTINATION include/CppJieba)