cppjieba/src/CMakeLists.txt
2013-11-03 07:49:41 -08:00

19 lines
781 B
CMake

ADD_EXECUTABLE(segment.demo segment.cpp)
ADD_EXECUTABLE(server.demo server.cpp)
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 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)