summaryrefslogtreecommitdiffstats
path: root/src/lookup
diff options
context:
space:
mode:
authorBYVoid <byvoid.kcp@gmail.com>2011-08-11 18:19:08 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-12 10:39:03 +0800
commitc47a095c10f6104fefb7d0406b7f4076ed47f16c (patch)
treea4c3261f5e406b5b6c60f4636f327db9d668bedc /src/lookup
parentbd70f3fe77a2eda3b902c1514b07fbc821c9c1b4 (diff)
downloadlibpinyin-c47a095c10f6104fefb7d0406b7f4076ed47f16c.tar.gz
libpinyin-c47a095c10f6104fefb7d0406b7f4076ed47f16c.tar.xz
libpinyin-c47a095c10f6104fefb7d0406b7f4076ed47f16c.zip
Add cmake scripts.
Diffstat (limited to 'src/lookup')
-rw-r--r--src/lookup/CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lookup/CMakeLists.txt b/src/lookup/CMakeLists.txt
new file mode 100644
index 0000000..99edbb6
--- /dev/null
+++ b/src/lookup/CMakeLists.txt
@@ -0,0 +1,27 @@
+set(
+ LIBLOOKUP_HEADERS
+ lookup.h
+ pinyin_lookup.h
+ phrase_lookup.h
+ winner_tree.h
+)
+
+set(
+ LIBLOOKUP_SOURCES
+ pinyin_lookup.cpp
+ winner_tree.cpp
+ phrase_lookup.cpp
+)
+
+add_library(
+ liblookup
+ STATIC
+ ${LIBLOOKUP_SOURCES}
+)
+
+install(
+ FILES
+ ${LIBLOOKUP_HEADERS}
+ DESTINATION
+ ${DIR_INCLUDE_LIBPINYIN}
+)