diff --git a/examples/meshnet-worker/CMakeLists.txt b/examples/meshnet-worker/CMakeLists.txt new file mode 100644 index 0000000000..8d9f9a1a2f --- /dev/null +++ b/examples/meshnet-worker/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 3.16) +project(meshnet_llama_worker CXX) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" + "${CMAKE_CURRENT_BINARY_DIR}/version.h" + @ONLY) + +add_executable(meshnet_worker + meshnet_worker.cpp) + +target_include_directories(meshnet_worker PRIVATE "${CMAKE_CURRENT_BINARY_DIR}") + +enable_testing() +add_test(NAME meshnet_worker_smoke + COMMAND meshnet_worker --smoke) diff --git a/examples/meshnet-worker/version.h.in b/examples/meshnet-worker/version.h.in new file mode 100644 index 0000000000..0b75c4e60f --- /dev/null +++ b/examples/meshnet-worker/version.h.in @@ -0,0 +1,4 @@ +#pragma once + +#define MESHNET_LLAMA_UPSTREAM_COMMIT "@MESHNET_LLAMA_UPSTREAM_COMMIT@" +#define MESHNET_LLAMA_PATCHSET_VERSION "@MESHNET_LLAMA_PATCHSET_VERSION@"