update CMake rules to reflect recent changes
authorJim Huang <jserv@0xlab.org>
Wed, 2 Nov 2011 21:27:00 +0000 (05:27 +0800)
committerPeng Wu <alexepico@gmail.com>
Thu, 3 Nov 2011 03:08:20 +0000 (11:08 +0800)
Signed-off-by: Peng Wu <alexepico@gmail.com>
src/lookup/CMakeLists.txt
tests/CMakeLists.txt

index 5b631d7ebd2d56d1e5a7aae3b1b15a6134b565dd..bb5b8ba76531d85baa6ed8e6a02658b49fa288cc 100644 (file)
@@ -11,6 +11,7 @@ set(
     pinyin_lookup.cpp
     winner_tree.cpp
     phrase_lookup.cpp
+    lookup.cpp
 )
 
 add_library(
index 258afcaac9d9daa73e458478cbaed38c47a981cf..57834079c9163a7c20835b962f2c6c80b1482435 100644 (file)
@@ -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
+)