diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2017-03-22 04:51:41 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2017-03-22 04:56:19 +0300 |
commit | c5b47ac09e008bfa860f897541e95f527d99b269 (patch) | |
tree | 067689ed60762d781eecd8640f017384a2c3530b /CMakeLists.txt | |
parent | 86e323305dfb99216b3df533cee84bbef02d6c37 (diff) |
Automatically build Marian Library when building Amunmt.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cb6e81a..a967d89f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,9 @@ endif(BUILD_STATIC) include_directories(${amunmt_SOURCE_DIR}) option(CUDA "Select to compile CUDA support by default if available" ON) - +option(MARIAN "Select to compile with Marian library" ON) +option(MARIAN_LIBRARY_ONLY "Automatically set when building amunmt. Don't touch this." ON) + if(CUDA) find_package(CUDA) if(CUDA_FOUND) @@ -36,6 +38,10 @@ else(CUDA) add_definitions(-DNO_CUDA) endif(CUDA) +if (MARIAN) + add_subdirectory(marian) +endif(MARIAN) + find_package(Boost COMPONENTS system filesystem program_options timer iostreams python thread) if(Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS}) |