diff --git a/README.md b/README.md index 388bfdc..280b8cf 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ The [examples](https://github.com/ggerganov/ggwave/blob/master/examples/) folder | Example | Description | | ------- | ----------- | -| [simple-rx](https://github.com/ggerganov/ggwave/blob/master/examples/simple-rx) | A very basic receive-only program | +| [ggwave-rx](https://github.com/ggerganov/ggwave/blob/master/examples/ggwave-rx) | A very basic receive-only program | | [ggwave-cli](https://github.com/ggerganov/ggwave/blob/master/examples/ggwave-cli) | A command line tool for sending/receiving data through sound | | [ggwave-wasm](https://github.com/ggerganov/ggwave/blob/master/examples/ggwave-wasm) | a WebAssembly module for web applications | | [waver](https://github.com/ggerganov/ggwave/blob/master/examples/waver) | A GUI tool for sending/receiving data through sound | diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 50ebf43..afa9ee1 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -73,7 +73,7 @@ if (GGWAVE_SUPPORT_SDL2) else() # non-emscripten sdl2 examples - add_subdirectory(simple-rx) + add_subdirectory(ggwave-rx) add_subdirectory(ggwave-cli) add_subdirectory(waver) endif() diff --git a/examples/ggwave-rx/CMakeLists.txt b/examples/ggwave-rx/CMakeLists.txt new file mode 100644 index 0000000..562a228 --- /dev/null +++ b/examples/ggwave-rx/CMakeLists.txt @@ -0,0 +1,15 @@ +set(TARGET ggwave-rx) + +add_executable(${TARGET} main.cpp) + +target_include_directories(${TARGET} PRIVATE + .. + ${SDL2_INCLUDE_DIRS} + ) + +target_link_libraries(${TARGET} PRIVATE + ggwave + ggwave-common + ggwave-common-sdl2 + ${CMAKE_THREAD_LIBS_INIT} + ) diff --git a/examples/simple-rx/main.cpp b/examples/ggwave-rx/main.cpp similarity index 100% rename from examples/simple-rx/main.cpp rename to examples/ggwave-rx/main.cpp diff --git a/examples/simple-rx/CMakeLists.txt b/examples/simple-rx/CMakeLists.txt deleted file mode 100644 index 48d7a64..0000000 --- a/examples/simple-rx/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -add_executable(simple-rx main.cpp) - -target_include_directories(simple-rx PRIVATE - .. - ${SDL2_INCLUDE_DIRS} - ) - -target_link_libraries(simple-rx PRIVATE - ggwave - ggwave-common - ggwave-common-sdl2 - ${CMAKE_THREAD_LIBS_INIT} - )