summaryrefslogtreecommitdiffstats
path: root/client/CMakeLists.txt
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2022-08-18 10:41:49 +0000
committerArne Juul <arnej@yahooinc.com>2022-08-18 10:41:49 +0000
commit9fd9e60dec70ab83154bdbe9cd7dba7dfac2449e (patch)
tree2614c4b07a5c645e8ad2673ffd000a7dfde93193 /client/CMakeLists.txt
parent4c80fc1991a3ff8cc605ef9c1e1684d055f1f9a7 (diff)
Reapply "Arnej/use go logfmt"
This reverts commit ebf0b7e6b37a0674da370c5fe0057f1aeac1d5a0.
Diffstat (limited to 'client/CMakeLists.txt')
-rw-r--r--client/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
new file mode 100644
index 00000000000..1ca6d2b4e60
--- /dev/null
+++ b/client/CMakeLists.txt
@@ -0,0 +1,14 @@
+# 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
+ COMMAND make
+ DEPENDS ${GODIR}/Makefile ${GOSRCFILES}
+ WORKING_DIRECTORY ${GODIR})
+
+add_custom_target(vespalog_logfmt ALL DEPENDS ${GODIR}/bin/vespa-logfmt)
+
+install(PROGRAMS ${GODIR}/bin/vespa-logfmt DESTINATION bin)