summaryrefslogtreecommitdiffstats
path: root/client/CMakeLists.txt
blob: d3f9439da40ccda34ee70354eaead00192368658 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

set(GODIR ${CMAKE_CURRENT_SOURCE_DIR}/go)

file(GLOB_RECURSE GOSRCFILES ${GODIR}/*.go)

add_custom_command(OUTPUT ${GODIR}/bin/vespa-logfmt ${GODIR}/bin/vespa-deploy
                   COMMAND make
                   DEPENDS ${GODIR}/Makefile ${GOSRCFILES}
                   WORKING_DIRECTORY ${GODIR})

add_custom_target(vespalog_logfmt ALL DEPENDS ${GODIR}/bin/vespa-logfmt)
add_custom_target(vespa_deploy_go ALL DEPENDS ${GODIR}/bin/vespa-deploy)

install(PROGRAMS ${GODIR}/bin/vespa-logfmt DESTINATION bin)
install(PROGRAMS ${GODIR}/bin/vespa-deploy DESTINATION bin)