From 2f729981fa68948c895407289a5db760d92dbe6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Sat, 20 Jan 2024 18:47:02 +0300 Subject: [PATCH] add config.json --- CMakeLists.txt | 2 ++ config.json | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 config.json diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d1df44..62d04fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,8 @@ endif () set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) +configure_file(config.json ${CMAKE_BUILD_RPATH} config.json COPYONLY) + add_executable(hello_async main.cpp src/http_server.cpp diff --git a/config.json b/config.json new file mode 100644 index 0000000..68c598d --- /dev/null +++ b/config.json @@ -0,0 +1,10 @@ +{ + "maps": { + "map1": { + "a": 123 + }, + "map2": { + "b": 456 + } + } +} \ No newline at end of file