CMakeLists.txt 637 字节
Newer Older
1
if(NOT WITH_FLUID_ONLY)
X
Xin Pan 已提交
2 3
  add_subdirectory(legacy/cuda)
  add_subdirectory(legacy/function)
L
Luo Tao 已提交
4
  add_subdirectory(utils)
X
Xin Pan 已提交
5
  add_subdirectory(legacy/math)
X
Xin Pan 已提交
6
  add_subdirectory(legacy/gserver)
X
Xin Pan 已提交
7
  add_subdirectory(legacy/parameter)
8

L
Luo Tao 已提交
9
  if(MOBILE_INFERENCE)
10
    add_subdirectory(capi)
L
Luo Tao 已提交
11
  else()
X
Xin Pan 已提交
12
    add_subdirectory(legacy/pserver)
L
Luo Tao 已提交
13 14
    add_subdirectory(trainer)
    add_subdirectory(scripts)
15

L
Luo Tao 已提交
16 17 18
    if(WITH_C_API)
      add_subdirectory(capi)
    endif()
Z
zhangjinchao01 已提交
19

L
Luo Tao 已提交
20 21 22
    if(WITH_SWIG_PY)
      add_subdirectory(api)
    endif()
23
  endif()
Z
zhangjinchao01 已提交
24
endif()
L
Luo Tao 已提交
25 26

add_subdirectory(testing)
Y
Yancey 已提交
27
if(NOT MOBILE_INFERENCE AND NOT RPI AND NOT WITH_C_API)
L
Luo Tao 已提交
28 29
  add_subdirectory(fluid)
endif()