CMakeLists.txt 350 字节
Newer Older
L
liaogang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
include_directories(${CMAKE_CURRENT_BINARY_DIR})

go_library(adder SRCS adder.go)

# cc_test(cgo_test
#         SRCS
#         cgo_test.cc
#         DEPS
#         adder)
add_executable(cgo_test cgo_test.cc)
add_dependencies(cgo_test adder)
target_link_libraries(cgo_test ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} adder)
add_test(cgo_test cgo_test)