Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
WillisMedwell committed Oct 11, 2023
1 parent 0b3af1b commit ef26025
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,25 @@ Download the headers from the [Releases](https://github.com/WillisMedwell/wm/rel
### CMake
You can use the CMake fetching module to do it all for you.
```cmake
# Fetch the ZIP file containing the headers.
# Cmake's fetch module.
include(FetchContent)
# Fetch the ZIP file containing the headers. Lets you always have the latest release.
FetchContent_Declare(
wm_headers
URL https://github.com/WillisMedwell/wm/releases/download/Headers/headers.zip
)
FetchContent_GetProperties(wm_headers)
FetchContent_Populate(wm_headers)
set(EXTRA_HEADERS ${wm_headers_SOURCE_DIR})
set(WM_HEADERS_DIR ${wm_headers_SOURCE_DIR})
```
```cmake
# Add to your include list.
target_include_directories(${CMAKE_PROJECT_NAME}
PRIVATE
${PROJECT_SOURCE_DIR}/include
${EXTRA_HEADERS}
${WM_HEADERS_DIR}
)
```
Then using it is as simple as...
Expand Down

0 comments on commit ef26025

Please sign in to comment.