add install into cmakelists.txt

This commit is contained in:
wyy 2013-11-03 07:04:36 -08:00
parent e666a0123e
commit 4680586e65
4 changed files with 14 additions and 0 deletions

View File

@ -1,4 +1,5 @@
PROJECT(CPPJIEBA)
ADD_SUBDIRECTORY(cppjieba)
ADD_SUBDIRECTORY(husky)
ADD_SUBDIRECTORY(limonp)
ADD_SUBDIRECTORY(demo)

View File

@ -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)

View File

@ -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
View File

@ -0,0 +1,2 @@
FILE(GLOB HEAD_HPP_LIST "*.hpp")
INSTALL(FILES ${HEAD_HPP_LIST} DESTINATION include/CppJieba/Limonp)