Changes to make it compile on Macos (with additonal libraru installed)
This commit is contained in:
parent
9cb01ffd50
commit
206c17f212
@ -20,8 +20,20 @@ set(CMAKE_CXX_EXTENSIONS ON)
|
||||
#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_library(pcaudiolib SHARED IMPORTED)
|
||||
add_executable(teller teller.cc )
|
||||
target_link_libraries(teller -lpcaudio -lpthread)
|
||||
if (APPLE)
|
||||
set_target_properties(pcaudiolib PROPERTIES
|
||||
IMPORTED_LOCATION "/usr/local/lib/libpcaudio.dylib"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "/usr/local/include"
|
||||
)
|
||||
target_include_directories(teller PUBLIC /usr/local/include/)
|
||||
else()
|
||||
set_target_properties(pcaudiolib PROPERTIES
|
||||
IMPORTED_LOCATION "/usr/local/lib/libpcaudio.so"
|
||||
)
|
||||
endif()
|
||||
target_link_libraries(teller pcaudiolib -lpthread)
|
||||
|
||||
#enable_testing()
|
||||
#add_test(testname testrunner)
|
||||
|
@ -33,3 +33,9 @@ support page](https://support.google.com/a/answer/10026322?hl=en).
|
||||
|
||||
Note that this splits out Google services and Google cloud user IP
|
||||
addresses.
|
||||
|
||||
## Macos
|
||||
You will need to install the pcaudio library:
|
||||
https://github.com/espeak-ng/pcaudiolib#mac-os
|
||||
In turn this needs automake installed (from xcode or brew). With that it is standard install
|
||||
WIth libpcaudio in place, follow instructions above.
|
Loading…
Reference in New Issue
Block a user