CMakeLists.txt 782 字节
Newer Older
1
if(NOT WITH_FLUID_ONLY)
H
Test  
Haihao Shen 已提交
2

X
Xin Pan 已提交
3 4
  add_subdirectory(legacy/cuda)
  add_subdirectory(legacy/function)
X
Xin Pan 已提交
5
  add_subdirectory(legacy/utils)
X
Xin Pan 已提交
6
  add_subdirectory(legacy/math)
X
Xin Pan 已提交
7
  add_subdirectory(legacy/gserver)
X
Xin Pan 已提交
8
  add_subdirectory(legacy/parameter)
9

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

L
Luo Tao 已提交
17
    if(WITH_C_API)
X
Xin Pan 已提交
18
      add_subdirectory(legacy/capi)
L
Luo Tao 已提交
19
    endif()
Z
zhangjinchao01 已提交
20

L
Luo Tao 已提交
21
    if(WITH_SWIG_PY)
X
Xin Pan 已提交
22
      add_subdirectory(legacy/api)
L
Luo Tao 已提交
23
    endif()
24
  endif()
Z
zhangjinchao01 已提交
25
endif()
L
Luo Tao 已提交
26 27

add_subdirectory(testing)
J
JiabinYang 已提交
28
set(PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR}/python/paddle/fluid/tests CACHE INTERNAL "python tests directory")
Y
Yancey 已提交
29
if(NOT MOBILE_INFERENCE AND NOT RPI AND NOT WITH_C_API)
L
Luo Tao 已提交
30 31
  add_subdirectory(fluid)
endif()