summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Huang <jserv@0xlab.org>2011-11-03 05:27:00 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-08 11:17:05 +0800
commitf867fe3f4b877adf376516013bddbc3803c8de2a (patch)
tree90492cac35bb6aae9868bb47e4b58f55280cc401
parentf8f42f48bc95ea714303b4cefde7fcb034e83b8c (diff)
downloadlibpinyin-f867fe3f4b877adf376516013bddbc3803c8de2a.tar.gz
libpinyin-f867fe3f4b877adf376516013bddbc3803c8de2a.tar.xz
libpinyin-f867fe3f4b877adf376516013bddbc3803c8de2a.zip
update CMake rules to reflect recent changes
Signed-off-by: Peng Wu <alexepico@gmail.com>
-rw-r--r--src/lookup/CMakeLists.txt1
-rw-r--r--tests/CMakeLists.txt32
2 files changed, 32 insertions, 1 deletions
diff --git a/src/lookup/CMakeLists.txt b/src/lookup/CMakeLists.txt
index 5b631d7..bb5b8ba 100644
--- a/src/lookup/CMakeLists.txt
+++ b/src/lookup/CMakeLists.txt
@@ -11,6 +11,7 @@ set(
pinyin_lookup.cpp
winner_tree.cpp
phrase_lookup.cpp
+ lookup.cpp
)
add_library(
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 258afca..5783407 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,3 +1,33 @@
add_subdirectory(include)
add_subdirectory(storage)
-add_subdirectory(lookup) \ No newline at end of file
+add_subdirectory(lookup)
+
+add_executable(
+ test_pinyin
+ test_pinyin.cpp
+)
+
+target_link_libraries(
+ test_pinyin
+ libpinyin
+)
+
+add_executable(
+ test_phrase
+ test_phrase.cpp
+)
+
+target_link_libraries(
+ test_phrase
+ libpinyin
+)
+
+add_executable(
+ test_chewing
+ test_chewing.cpp
+)
+
+target_link_libraries(
+ test_chewing
+ libpinyin
+)