CMakeLists.txt 685 字节
Newer Older
D
dongzhihong 已提交
1
cc_library(paddle_go_optimizer DEPS paddle_optimizer paddle_proto glog gflags protobuf)
Y
yi.wu 已提交
2
target_link_libraries(paddle_go_optimizer stdc++ m)
3 4 5 6 7 8 9 10

# Copy library to the required place.
# See: go/pserver/optimizer.go:
# // #cgo LDFLAGS: ${SRCDIR}/client/c/libpaddle_go_optimizer.a -lstdc++ -lm
add_custom_command(TARGET paddle_go_optimizer POST_BUILD
  COMMAND cp "${CMAKE_CURRENT_BINARY_DIR}/libpaddle_go_optimizer.a" "${CMAKE_CURRENT_SOURCE_DIR}"
  )

Q
Qiao Longfei 已提交
11
go_library(paddle_pserver_cclient STATIC DEPS paddle_go_optimizer)
D
dzhwinter 已提交
12
if(WITH_TESTING)
W
wuyi05 已提交
13 14 15
  # FIXME: this test requires pserver which is not managed by the test
  # we need some kind of e2e testing machanism.
  # add_subdirectory(test)
D
dzhwinter 已提交
16
endif()