From fa2079fca1cd7757776bd64193fc6c3e017493be Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 5 Sep 2022 16:25:00 +0200 Subject: [PATCH] make us build in the right place --- CMakeLists.txt | 3 +-- make-built-in-config.sh | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 670311f..17f0b76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,6 @@ set(CMAKE_CXX_EXTENSIONS ON) add_custom_target(Work ALL DEPENDS configs.hh) - add_executable(teller teller.cc ext/lpm.c) target_link_libraries(teller -lpcaudio -lpthread) @@ -23,7 +22,7 @@ add_test(testname testrunner) add_custom_command( OUTPUT configs.hh - COMMAND ./make-built-in-config.sh + COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/make-built-in-config.sh ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS teller.conf trackers.conf ) diff --git a/make-built-in-config.sh b/make-built-in-config.sh index d395aee..fecf33a 100755 --- a/make-built-in-config.sh +++ b/make-built-in-config.sh @@ -1,4 +1,5 @@ #!/bin/sh +cd $1 ( echo \#pragma once echo 'constexpr char tellertoml[]=R"('