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
|
|
|
|
2022-08-22 22:53:24 +02:00
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
|
|
find_package(Threads REQUIRED)
|
2022-08-21 22:48:40 +02:00
|
|
|
|
2022-08-22 22:53:24 +02:00
|
|
|
message("-- Looking for Portable C Audio Library")
|
|
|
|
find_library(PCAUDIO_LIB NAMES pcaudio libpcaudio)
|
|
|
|
if (NOT PCAUDIO_LIB)
|
|
|
|
message(FATAL_ERROR "Could not find PCAUDIO_LIB using the following names: pcaudio, libpcaudio")
|
|
|
|
endif()
|
|
|
|
message("-- Looking for Portable C Audio Library - found")
|
2022-08-21 22:48:40 +02:00
|
|
|
|
|
|
|
#add_library(support STATIC ext/powerblog/h2o-pp.cc
|
|
|
|
# ext/powerblog/ext/simplesocket/swrappers.cc
|
|
|
|
# ext/powerblog/ext/simplesocket/comboaddress.cc
|
|
|
|
# ext/powerblog/ext/simplesocket/sclasses.cc
|
|
|
|
# ext/fmt-7.1.3/src/format.cc)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#target_include_directories(support PUBLIC ext/powerblog/ext/simplesocket ext/powerblog/ext ext/fmt-7.1.3/include/)
|
|
|
|
#target_link_libraries(support PUBLIC -lh2o-evloop -lssl -lcrypto Threads::Threads)
|
|
|
|
|
2022-08-29 15:59:59 +02:00
|
|
|
add_executable(teller teller.cc ext/lpm.c)
|
2022-08-22 22:53:24 +02:00
|
|
|
target_link_libraries(teller PRIVATE ${PCAUDIO_LIB} Threads::Threads)
|
2022-08-21 22:48:40 +02:00
|
|
|
|
2022-08-29 16:06:39 +02:00
|
|
|
add_executable(testrunner testrunner.cc ext/lpm.c )
|
2022-08-22 22:53:24 +02:00
|
|
|
target_link_libraries(testrunner PRIVATE ${PCAUDIO_LIB})
|
2022-08-29 16:06:39 +02:00
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
add_test(testname testrunner)
|
|
|
|
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
add_test(testname testrunner)
|