diff options
author | BYVoid <byvoid.kcp@gmail.com> | 2011-08-11 18:19:08 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-08-12 10:39:03 +0800 |
commit | c47a095c10f6104fefb7d0406b7f4076ed47f16c (patch) | |
tree | a4c3261f5e406b5b6c60f4636f327db9d668bedc /tests | |
parent | bd70f3fe77a2eda3b902c1514b07fbc821c9c1b4 (diff) | |
download | libpinyin-c47a095c10f6104fefb7d0406b7f4076ed47f16c.tar.gz libpinyin-c47a095c10f6104fefb7d0406b7f4076ed47f16c.tar.xz libpinyin-c47a095c10f6104fefb7d0406b7f4076ed47f16c.zip |
Add cmake scripts.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tests/include/CMakeLists.txt | 9 | ||||
-rw-r--r-- | tests/lookup/CMakeLists.txt | 19 | ||||
-rw-r--r-- | tests/storage/CMakeLists.txt | 59 |
4 files changed, 90 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..258afca --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory(include) +add_subdirectory(storage) +add_subdirectory(lookup)
\ No newline at end of file diff --git a/tests/include/CMakeLists.txt b/tests/include/CMakeLists.txt new file mode 100644 index 0000000..f51c87e --- /dev/null +++ b/tests/include/CMakeLists.txt @@ -0,0 +1,9 @@ +add_executable( + test_memory_chunk + test_memory_chunk.cpp +) + +target_link_libraries( + test_memory_chunk + libpinyin +)
\ No newline at end of file diff --git a/tests/lookup/CMakeLists.txt b/tests/lookup/CMakeLists.txt new file mode 100644 index 0000000..9bd2608 --- /dev/null +++ b/tests/lookup/CMakeLists.txt @@ -0,0 +1,19 @@ +add_executable( + test_simple_lookup + test_simple_lookup.cpp +) + +target_link_libraries( + test_simple_lookup + libpinyin +) + +add_executable( + test_phrase_lookup + test_phrase_lookup.cpp +) + +target_link_libraries( + test_phrase_lookup + libpinyin +)
\ No newline at end of file diff --git a/tests/storage/CMakeLists.txt b/tests/storage/CMakeLists.txt new file mode 100644 index 0000000..4c96046 --- /dev/null +++ b/tests/storage/CMakeLists.txt @@ -0,0 +1,59 @@ +add_executable( + test_parser + test_parser.cpp +) + +target_link_libraries( + test_parser + libpinyin +) + +add_executable( + test_pinyin_index + test_pinyin_index.cpp +) + +target_link_libraries( + test_pinyin_index + libpinyin +) + +add_executable( + test_phrase_index + test_phrase_index.cpp +) + +target_link_libraries( + test_phrase_index + libpinyin +) + +add_executable( + test_phrase_table + test_phrase_table.cpp +) + +target_link_libraries( + test_phrase_table + libpinyin +) + +add_executable( + test_ngram + test_ngram.cpp +) + +target_link_libraries( + test_ngram + libpinyin +) + +add_executable( + test_flexible_ngram + test_flexible_ngram.cpp +) + +target_link_libraries( + test_flexible_ngram + libpinyin +)
\ No newline at end of file |