2022-08-21 22:48:40 +02:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
|
|
|
|
|
|
|
project(googerteller VERSION 1.0
|
|
|
|
DESCRIPTION "Audible feedback on Google communications"
|
2022-08-29 15:59:59 +02:00
|
|
|
LANGUAGES CXX C)
|
2022-08-21 22:48:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17 CACHE STRING "The C++ standard to use")
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS ON)
|
|
|
|
|
2022-09-05 16:04:50 +02:00
|
|
|
add_custom_target(Work ALL DEPENDS configs.hh)
|
2022-08-21 22:48:40 +02:00
|
|
|
|
|
|
|
|
2022-08-29 15:59:59 +02:00
|
|
|
add_executable(teller teller.cc ext/lpm.c)
|
2022-08-22 09:13:26 +02:00
|
|
|
target_link_libraries(teller -lpcaudio -lpthread)
|
2022-08-21 22:48:40 +02:00
|
|
|
|
2022-08-29 16:06:39 +02:00
|
|
|
add_executable(testrunner testrunner.cc ext/lpm.c )
|
|
|
|
target_link_libraries(testrunner -lpcaudio)
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
add_test(testname testrunner)
|
|
|
|
|
2022-09-05 16:04:50 +02:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT configs.hh
|
|
|
|
COMMAND ./make-built-in-config.sh
|
|
|
|
DEPENDS teller.conf trackers.conf
|
|
|
|
)
|
2022-08-29 16:06:39 +02:00
|
|
|
|