forked from IceDBorn/pipewire-screenaudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
50 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build | ||
out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(link-app-to-mic-example LANGUAGES CXX VERSION 1.0) | ||
cmake_minimum_required(VERSION 3.2.2) | ||
project(globalProject) | ||
|
||
# -------------------------------------------------------------------------------------------------------- | ||
# Create library | ||
# -------------------------------------------------------------------------------------------------------- | ||
|
||
file(GLOB src "main.cpp") | ||
|
||
add_executable(${PROJECT_NAME} ${src}) | ||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) | ||
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Werror -Wextra -pedantic) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17 CXX_EXTENSIONS OFF CXX_STANDARD_REQUIRED ON) | ||
|
||
# -------------------------------------------------------------------------------------------------------- | ||
# Supply rohrkabel if example is built stand-alone | ||
# -------------------------------------------------------------------------------------------------------- | ||
|
||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) | ||
include(FetchContent) | ||
FetchContent_Declare(rohrkabel GIT_REPOSITORY "https://github.com/Soundux/rohrkabel") | ||
FetchContent_MakeAvailable(rohrkabel) | ||
endif() | ||
|
||
# -------------------------------------------------------------------------------------------------------- | ||
# Link required libraries | ||
# -------------------------------------------------------------------------------------------------------- | ||
|
||
target_link_libraries(${PROJECT_NAME} PRIVATE rohrkabel) | ||
add_subdirectory(message-parser) | ||
add_subdirectory(screenaudio-mic) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
cmake -B build -S . | ||
cmake --build build | ||
|
||
mkdir -p out | ||
cp build/message-parser/message-parser out/ | ||
cp build/screenaudio-mic/screenaudio-mic out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 3.2.2) | ||
project(message-parser LANGUAGES CXX VERSION 1.0) | ||
|
||
file(GLOB src "message-parser.c") | ||
|
||
add_executable(${PROJECT_NAME} ${src}) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.2.2) | ||
project(screenaudio-mic LANGUAGES CXX VERSION 1.0) | ||
|
||
# -------------------------------------------------------------------------------------------------------- | ||
# Create library | ||
# -------------------------------------------------------------------------------------------------------- | ||
|
||
file(GLOB src "main.cpp") | ||
|
||
add_executable(${PROJECT_NAME} ${src}) | ||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) | ||
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Werror -Wextra -pedantic) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17 CXX_EXTENSIONS OFF CXX_STANDARD_REQUIRED ON) | ||
|
||
# -------------------------------------------------------------------------------------------------------- | ||
# Supply rohrkabel if example is built stand-alone | ||
# -------------------------------------------------------------------------------------------------------- | ||
|
||
include(FetchContent) | ||
FetchContent_Declare(rohrkabel GIT_REPOSITORY "https://github.com/Soundux/rohrkabel") | ||
FetchContent_MakeAvailable(rohrkabel) | ||
|
||
# -------------------------------------------------------------------------------------------------------- | ||
# Link required libraries | ||
# -------------------------------------------------------------------------------------------------------- | ||
|
||
target_link_libraries(${PROJECT_NAME} PRIVATE rohrkabel) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters