make us build in the right place

This commit is contained in:
bert hubert 2022-09-05 16:25:00 +02:00
parent a93aa69756
commit fa2079fca1
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,6 @@ set(CMAKE_CXX_EXTENSIONS ON)
add_custom_target(Work ALL DEPENDS configs.hh) add_custom_target(Work ALL DEPENDS configs.hh)
add_executable(teller teller.cc ext/lpm.c) add_executable(teller teller.cc ext/lpm.c)
target_link_libraries(teller -lpcaudio -lpthread) target_link_libraries(teller -lpcaudio -lpthread)
@ -23,7 +22,7 @@ add_test(testname testrunner)
add_custom_command( add_custom_command(
OUTPUT configs.hh 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 DEPENDS teller.conf trackers.conf
) )

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
cd $1
( (
echo \#pragma once echo \#pragma once
echo 'constexpr char tellertoml[]=R"(' echo 'constexpr char tellertoml[]=R"('