Fixed native builds while using wasm compatible sources

- main-mts and marian-decoder-new can't be used because
   it uses multi-threaded variant of Service class
This commit is contained in:
Abhishek Aggarwal 2021-02-26 14:55:30 +01:00
parent 4d4acf6b8b
commit 0be73705d9
2 changed files with 9 additions and 7 deletions

View File

@ -67,9 +67,9 @@ endif(COMPILE_WASM)
add_subdirectory(3rd_party)
add_subdirectory(src)
if(NOT COMPILE_WASM)
add_subdirectory(app)
endif()
if(COMPILE_WASM)
add_subdirectory(wasm)
else()
add_subdirectory(app)
endif(COMPILE_WASM)

View File

@ -1,8 +1,10 @@
add_executable(bergamot-translator-app main.cpp)
target_link_libraries(bergamot-translator-app PRIVATE bergamot-translator)
add_executable(service-cli main-mts.cpp)
target_link_libraries(service-cli PRIVATE bergamot-translator)
if (NOT USE_WASM_COMPATIBLE_SOURCES)
add_executable(service-cli main-mts.cpp)
target_link_libraries(service-cli PRIVATE bergamot-translator)
add_executable(marian-decoder-new marian-decoder-new.cpp)
target_link_libraries(marian-decoder-new PRIVATE bergamot-translator)
add_executable(marian-decoder-new marian-decoder-new.cpp)
target_link_libraries(marian-decoder-new PRIVATE bergamot-translator)
endif()