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"('