CMakeLists.txt 759 字节
Newer Older
Z
zhangjinchao01 已提交
1
add_subdirectory(cuda)
H
hedaoyuan 已提交
2
add_subdirectory(function)
Z
zhangjinchao01 已提交
3
add_subdirectory(utils)
H
hedaoyuan 已提交
4
add_subdirectory(testing)
Z
zhangjinchao01 已提交
5 6 7 8 9 10 11
add_subdirectory(math)
add_subdirectory(parameter)
add_subdirectory(gserver)
add_subdirectory(pserver)
add_subdirectory(trainer)
add_subdirectory(scripts)

12 13 14 15
# Do not build go directory until go cmake is working smoothly.
# if(CMAKE_Go_COMPILER)
#   add_subdirectory(go)
# endif()
L
liaogang 已提交
16

17
find_package(Boost QUIET)
L
liaogang 已提交
18 19 20 21 22 23 24

if(Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
  include_directories(${CMAKE_CURRENT_SOURCE_DIR})
  add_subdirectory(majel)
endif()

Y
Yu Yang 已提交
25 26 27
if(WITH_C_API)
    add_subdirectory(capi)
endif()
Z
zhangjinchao01 已提交
28 29

if(WITH_SWIG_PY)
Q
qiaolongfei 已提交
30 31
  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
          ${CMAKE_CURRENT_SOURCE_DIR}/setup.py)
Z
zhangjinchao01 已提交
32 33
  add_subdirectory(api)
endif()