Functions | |
| add_custom_command (TARGET go_copy PRE_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${test_file} ${CMAKE_BINARY_DIR}/src/mlpack/bindings/go/tests/) endforeach() endif() add_custom_command(TARGET go_copy PRE_BUILD COMMAND $ | |
| if (BUILD_GO_BINDINGS) find_package(Go 1.11.0) if(NOT GO_FOUND) macro(add_go_binding name) endmacro() return() endif() find_package(Gonum) if(NOT GONUM_FOUND) macro(add_go_binding name) endmacro() endif() set(BINDING_SOURCES get_type.hpp get_param.hpp get_printable_param.hpp go_option.hpp mlpack/arma_util.h mlpack/arma_util.hpp mlpack/cli_util.h mlpack/cli_util.hpp print_class_defn.hpp print_cpp.cpp print_cpp.hpp print_defn_input.hpp print_defn_output.hpp print_doc.hpp print_doc_functions.hpp print_doc_functions_impl.hpp print_go.hpp print_go.cpp print_h.hpp print_h.cpp print_import_decl.hpp print_input_processing.hpp print_method_config.hpp print_method_init.hpp print_output_processing.hpp camel_case.hpp strip_type.hpp) set(CGO_SOURCES mlpack/arma_util.go mlpack/cli_util.go mlpack/doc.go) set(CAPI_SOURCES mlpack/capi/arma_util.cpp mlpack/capi/arma_util.h mlpack/capi/arma_util.hpp mlpack/capi/cli_util.cpp mlpack/capi/cli_util.h mlpack/capi/cli_util.hpp) set(UTIL_SOURCES mlpack/capi/arma_util.cpp mlpack/capi/cli_util.cpp) set(TEST_SOURCES tests/go_binding_test.go) add_custom_target(go ALL DEPENDS mlpack) add_custom_target(go_copy ALL DEPENDS mlpack) if(BUILD_TESTS) foreach(test_file $ | |
| add_custom_command | ( | TARGET go_copy PRE_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${test_file} ${CMAKE_BINARY_DIR}/src/mlpack/bindings/go/tests/ | ) |
Definition at line 88 of file CMakeLists.txt.
References add_executable(), add_go_binding(), add_subdirectory(), BINDING_TYPE_GO, endif(), and macro().
Referenced by add_executable(), endif(), if(), include_directories(), and set().
| if | ( | BUILD_GO_BINDINGS | ) |
Definition at line 1 of file CMakeLists.txt.
Referenced by mlpack::bindings::python::PrintDefn(), mlpack::bindings::julia::PrintDoc(), mlpack::bindings::python::PrintDoc(), mlpack::bindings::go::PrintDoc(), mlpack::bindings::julia::PrintInputParam(), mlpack::bindings::go::PrintInputProcessing(), mlpack::bindings::python::PrintInputProcessing(), mlpack::bindings::python::PrintOutputProcessing(), and set().