5213ea113c
Fixes: $ LC_ALL=C make [ 50%] Linking CXX executable teller /usr/bin/ld: CMakeFiles/teller.dir/teller.cc.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' /usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/teller.dir/build.make:103: teller] Error 1 make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/teller.dir/all] Error 2 make: *** [Makefile:103: all] Error 2
28 lines
876 B
CMake
28 lines
876 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
|
|
project(googerteller VERSION 1.0
|
|
DESCRIPTION "Audible feedback on Google communications"
|
|
LANGUAGES CXX)
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17 CACHE STRING "The C++ standard to use")
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS ON)
|
|
|
|
#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)
|
|
|
|
add_executable(teller teller.cc )
|
|
target_link_libraries(teller -lpcaudio -lpthread)
|
|
|
|
#enable_testing()
|
|
#add_test(testname testrunner)
|