File tree Expand file tree Collapse file tree 4 files changed +183
-125
lines changed Expand file tree Collapse file tree 4 files changed +183
-125
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,15 @@ cmake_minimum_required(VERSION 3.16)
3
3
# set the project name
4
4
project (snapclient )
5
5
6
- # lots of warnings and all warnings as errors
7
- ## add_compile_options(-Wall -Wextra )
8
6
set (CMAKE_CXX_STANDARD 17 )
9
7
10
- file (GLOB_RECURSE SRC_LIST_C CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR} /src/lightsnapcast/*.c" )
8
+ # lots of warnings and all warnings as errors
9
+ ## add_compile_options(-Wall -Wextra )
11
10
12
- # define libraries
13
- add_library (snapclient ${SRC_LIST_C} )
11
+ add_library (snapclient INTERFACE )
14
12
15
13
# define location for header files
16
- target_include_directories (snapclient PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /src ${CMAKE_CURRENT_SOURCE_DIR} /src/lightsnapcast )
14
+ target_include_directories (snapclient INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} /src )
17
15
18
- # prevent compile errors
19
- #target_compile_options(snapclient PRIVATE -DUSE_DEFAULT_STDLIB)
20
16
21
17
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ add_executable (desktop-client SnapClient.cpp)
47
47
target_compile_definitions (desktop-client PUBLIC -DARDUINO -DEXIT_ON_STOP -DIS_DESKTOP -DCONFIG_USE_RTOS=0 -DCONFIG_USE_PSRAM=0 -DCONFIG_SNAPCLIENT_SNTP_ENABLE=0 -DCONFIG_SNAPCLIENT_USE_MDNS=0 )
48
48
49
49
# specify libraries
50
- target_link_libraries (desktop-client arduino_emulator arduino_libopus snapclient arduino-audio-tools )
50
+ target_link_libraries (desktop-client snapclient arduino_emulator arduino_libopus arduino-audio-tools )
51
51
52
52
# to find include for miniaudio
53
53
target_include_directories (desktop-client PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
Original file line number Diff line number Diff line change 8
8
#include " AudioLibs/MiniAudioStream.h"
9
9
#include " AudioCodecs/CodecOpus.h"
10
10
11
- // PortAudioStream out;
12
- MiniAudioStream out; // Output to MiniAudioStream
11
+ MiniAudioStream out;
13
12
OpusAudioDecoder opus;
14
- SnapClient client (out, opus);
13
+ WiFiClient wifi;
14
+ SnapClient client (wifi, out, opus);
15
15
16
16
void setup () {
17
17
Serial.begin (115200 );
You can’t perform that action at this time.
0 commit comments