mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
add install into cmakelists.txt
This commit is contained in:
parent
e666a0123e
commit
4680586e65
@ -1,4 +1,5 @@
|
||||
PROJECT(CPPJIEBA)
|
||||
ADD_SUBDIRECTORY(cppjieba)
|
||||
ADD_SUBDIRECTORY(husky)
|
||||
ADD_SUBDIRECTORY(limonp)
|
||||
ADD_SUBDIRECTORY(demo)
|
||||
|
@ -1,3 +1,11 @@
|
||||
SET(LIBCPPJIEBA_SRC HMMSegment.cpp KeyWordExt.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 KeyWordExt.h MPSegment.h structs.h Trie.h globals.h ISegment.hpp MixSegment.h SegmentBase.hpp TransCode.hpp DESTINATION include/CppJieba)
|
||||
|
@ -1,3 +1,6 @@
|
||||
SET(LIBHUSKY_SRC Daemon.cpp ServerFrame.cpp)
|
||||
INCLUDE_DIRECTORIES(../limonp)
|
||||
ADD_LIBRARY(husky SHARED ${LIBHUSKY_SRC})
|
||||
|
||||
INSTALL(TARGETS husky LIBRARY DESTINATION lib/CppJieba)
|
||||
INSTALL(FILES Daemon.h globals.h HttpReqInfo.hpp ServerFrame.h ThreadManager.hpp DESTINATION include/CppJieba/Husky)
|
||||
|
2
limonp/CMakeLists.txt
Normal file
2
limonp/CMakeLists.txt
Normal file
@ -0,0 +1,2 @@
|
||||
FILE(GLOB HEAD_HPP_LIST "*.hpp")
|
||||
INSTALL(FILES ${HEAD_HPP_LIST} DESTINATION include/CppJieba/Limonp)
|
Loading…
x
Reference in New Issue
Block a user