Skip to content

Commit ba08b68

Browse files
authored
[runtime] fix openfst patch (#75)
1 parent 7e764f2 commit ba08b68

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

runtime/patch/openfst/src/bin/CMakeLists.txt

Whitespace-only changes.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
add_executable(fst_test
2+
fst_test.cc
3+
../include/fst/test/fst_test.h
4+
)
5+
target_link_libraries(fst_test fst ${CMAKE_DL_LIBS})
6+
set_target_properties(fst_test PROPERTIES FOLDER test)
7+
add_test(NAME fst_test-test COMMAND fst_test)
8+
9+
add_executable(weight_test
10+
weight_test.cc
11+
../include/fst/test/weight-tester.h
12+
)
13+
target_link_libraries(weight_test fst ${CMAKE_DL_LIBS})
14+
set_target_properties(weight_test PROPERTIES FOLDER test)
15+
add_test(NAME weight_test-test COMMAND weight_test)
16+
17+
add_executable(algo_test_log algo_test.cc ../include/fst/test/algo_test.h ../include/fst/test/rand-fst.h)
18+
target_link_libraries(algo_test_log fst ${CMAKE_DL_LIBS})
19+
target_compile_definitions(algo_test_log
20+
PRIVATE TEST_LOG=1)
21+
set_target_properties(algo_test_log PROPERTIES FOLDER test)
22+
add_test(NAME algo_test_log-test COMMAND algo_test_log)
23+
24+
25+
add_executable(algo_test_tropical algo_test.cc ../include/fst/test/algo_test.h ../include/fst/test/rand-fst.h)
26+
target_link_libraries(algo_test_tropical fst ${CMAKE_DL_LIBS})
27+
target_compile_definitions(algo_test_tropical
28+
PRIVATE TEST_TROPICAL=1)
29+
set_target_properties(algo_test_tropical PROPERTIES FOLDER test)
30+
add_test(NAME algo_test_tropical-test COMMAND algo_test_tropical)
31+
32+
33+
add_executable(algo_test_minmax algo_test.cc ../include/fst/test/algo_test.h ../include/fst/test/rand-fst.h)
34+
target_link_libraries(algo_test_minmax fst ${CMAKE_DL_LIBS})
35+
target_compile_definitions(algo_test_minmax
36+
PRIVATE TEST_MINMAX=1)
37+
set_target_properties(algo_test_minmax PROPERTIES FOLDER test)
38+
add_test(NAME algo_test_minmax-test COMMAND algo_test_minmax)
39+
40+
41+
add_executable(algo_test_lexicographic algo_test.cc ../include/fst/test/algo_test.h ../include/fst/test/rand-fst.h)
42+
target_link_libraries(algo_test_lexicographic fst ${CMAKE_DL_LIBS})
43+
target_compile_definitions(algo_test_lexicographic
44+
PRIVATE TEST_LEXICOGRAPHIC=1)
45+
set_target_properties(algo_test_lexicographic PROPERTIES FOLDER test)
46+
add_test(NAME algo_test_lexicographic-test COMMAND algo_test_lexicographic)
47+
48+
49+
add_executable(algo_test_power algo_test.cc ../include/fst/test/algo_test.h ../include/fst/test/rand-fst.h)
50+
target_link_libraries(algo_test_power fst ${CMAKE_DL_LIBS})
51+
target_compile_definitions(algo_test_power
52+
PRIVATE TEST_POWER=1)
53+
set_target_properties(algo_test_power PROPERTIES FOLDER test)
54+
add_test(NAME algo_test_power-test COMMAND algo_test_power)
55+

0 commit comments

Comments
 (0)