From 4680586e65f7090b38c37cbc0f77f0842de11b93 Mon Sep 17 00:00:00 2001 From: wyy Date: Sun, 3 Nov 2013 07:04:36 -0800 Subject: [PATCH] add install into cmakelists.txt --- CMakeLists.txt | 1 + cppjieba/CMakeLists.txt | 8 ++++++++ husky/CMakeLists.txt | 3 +++ limonp/CMakeLists.txt | 2 ++ 4 files changed, 14 insertions(+) create mode 100644 limonp/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 098febd..2273c21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ PROJECT(CPPJIEBA) ADD_SUBDIRECTORY(cppjieba) ADD_SUBDIRECTORY(husky) +ADD_SUBDIRECTORY(limonp) ADD_SUBDIRECTORY(demo) diff --git a/cppjieba/CMakeLists.txt b/cppjieba/CMakeLists.txt index 81bae4f..03d0ae0 100644 --- a/cppjieba/CMakeLists.txt +++ b/cppjieba/CMakeLists.txt @@ -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) diff --git a/husky/CMakeLists.txt b/husky/CMakeLists.txt index b968744..d77435d 100644 --- a/husky/CMakeLists.txt +++ b/husky/CMakeLists.txt @@ -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) diff --git a/limonp/CMakeLists.txt b/limonp/CMakeLists.txt new file mode 100644 index 0000000..e01bc74 --- /dev/null +++ b/limonp/CMakeLists.txt @@ -0,0 +1,2 @@ +FILE(GLOB HEAD_HPP_LIST "*.hpp") +INSTALL(FILES ${HEAD_HPP_LIST} DESTINATION include/CppJieba/Limonp)