blob: 00560c5d6b44b921914998c51436e766798153fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# libwav
libwav is a simple and tiny C library for reading or writing PCM wave (.wav)
files.
## Build and Install
On Linux and macOS:
mkdir build
cd build
cmake [-DCMAKE_BUILD_TYPE=<Debug|Release|RelWithDebInfo>] ..
make
sudo make install
On Windows:
mkdir build
cd build
cmake ..
cmake --build .
## CMake Support
Use `FetchContent`:
include(FetchContent)
FetchContent_Declare(libwav
GIT_REPOSITORY "https://github.com/brglng/libwav.git"
GIT_SHALLOW ON
)
FetchContent_MakeAvailable(libwav)
add_executable(yourprogram yourprogram.c)
target_link_libraries(yourprogram wav::wav)
Use `add_subdirectory`:
add_subdirectory(libwav)
add_executable(yourprogram yourprogram.c)
target_link_libraries(yourprogram wav::wav)
Use `find_package`:
find_package(wav)
add_executable(yourprogram yourprogram.c)
target_link_libraries(yourprogram wav::wav)
|