summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt3
-rw-r--r--tests/include/CMakeLists.txt9
-rw-r--r--tests/lookup/CMakeLists.txt19
-rw-r--r--tests/storage/CMakeLists.txt59
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