Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « src - github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 244977dbcbd650ea0dedfb4e308de135b717ddfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

include_directories(.)

add_library(libcommon OBJECT
  exception.cpp
)

cuda_add_executable(
  marian
  test.cu
  expressions.cu
  tensor_operators.cu
  $<TARGET_OBJECTS:libcommon>
)

foreach(exec marian)
  target_link_libraries(${exec} ${EXT_LIBS} cuda cudnn)
  cuda_add_cublas_to_target(${exec})
  set_target_properties(${exec} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
endforeach(exec)