From 7cf2121f5ab7ca107d1254358d83752feea0680a Mon Sep 17 00:00:00 2001 From: wyy Date: Wed, 27 Nov 2013 20:06:09 -0800 Subject: [PATCH] add Limonp/CMakeLists.txt for installing Limonp's header file --- README.md | 3 ++- src/Limonp/CMakeLists.txt | 1 + test/make.sh | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/Limonp/CMakeLists.txt create mode 100755 test/make.sh diff --git a/README.md b/README.md index 62f209f..f9fa9f1 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ make sudo make install ``` -### 验证 +#### 验证 ```sh /usr/bin/cjseg.sh ../test/testlines.utf8 @@ -44,6 +44,7 @@ sudo make install 或者用命令 `curl "http://127.0.0.1:11200/?key=南京市长江大桥"` (ubuntu中的curl安装命令`sudo apt-get install curl`) + ### 卸载 ```sh cd build/ diff --git a/src/Limonp/CMakeLists.txt b/src/Limonp/CMakeLists.txt new file mode 100644 index 0000000..7ed15ae --- /dev/null +++ b/src/Limonp/CMakeLists.txt @@ -0,0 +1 @@ +INSTALL(FILES ArgvContext.hpp io_functs.hpp macro_def.hpp MysqlClient.hpp str_functs.hpp cast_functs.hpp Config.hpp logger.hpp map_functs.hpp std_outbound.hpp DESTINATION include/CppJieba/Limonp) diff --git a/test/make.sh b/test/make.sh new file mode 100755 index 0000000..4103b9b --- /dev/null +++ b/test/make.sh @@ -0,0 +1 @@ +g++ -o segment.demo segment.cpp -std=c++0x -L/usr/lib/CppJieba -lcppjieba