Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brglng committed Sep 23, 2020
1 parent 1b541d0 commit 1e0fe31
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,32 @@ files.

## Build

Linux/Cygwin/OS X using makefiles:

```sh
mkdir build
cd build
cmake [-DCMAKE_BUILD_TYPE=<Debug|Release|RelWithDebInfo|MinSizeRel>] -G "Unix Makefiles" ..
make
```

Windows using Visual Studio 2013:

```sh
mkdir build
cd build
cmake [-DCMAKE_BUILD_TYPE=<Debug|Release|RelWithDebInfo|MinSizeRel>] -G "Visual Studio 12" ..
```

OS X using Xcode:

```sh
mkdir build
cd build
cmake [-DCMAKE_BUILD_TYPE=<Debug|Release|RelWithDebInfo|MinSizeRel>] -G Xcode ..
```
mkdir build
cd build
cmake [-DCMAKE_BUILD_TYPE=<Debug|Release|RelWithDebInfo>] ..
make

## CMake Support

Use `FetchContent`:

include(FetchContent)
FetchContent_Declare(naivedsp
GIT_REPOSITORY "https://github.com/brglng/libwav.git"
GIT_SHALLOW ON
)
FetchContent_MakeAvailable(naivedsp)
add_executable(yourprogram yourprogram.c)
target_link_libraries(yourprogram wav::wav)

Use `add_subdirectory`:

add_subdirectory(naivedsp)
add_executable(yourprogram yourprogram.c)
target_link_libraries(yourprogram wav::wav)

Use `find_package`:

find_package(naivedsp)
add_executable(yourprogram yourprogram.c)
target_link_libraries(yourprogram wav::wav)

0 comments on commit 1e0fe31

Please # to comment.