Skip to content

Commit

Permalink
fix: docs: correct paths; add to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JPHutchins committed Oct 31, 2023
1 parent 6f4cc4f commit 42dcf5e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Intercreate CMake

This CMake library adds convenience functions to the build system.

# Include in Your Project

1. Add the fetch file to your repo:
```
wget https://github.com/intercreate/ic-cmake/releases/latest/download/fetch_ic.cmake
```
2. Include and link in your CMakeLists.txt:
```cmake
include(fetch_ic.cmake)
```

# Tests

```
Expand Down
4 changes: 2 additions & 2 deletions fetch_ic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
include_guard(GLOBAL)

if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24.0")
set(download_extract_timestamp "DOWNLOAD_EXTRACT_TIMESTAMP true")
set(download_extract_timestamp DOWNLOAD_EXTRACT_TIMESTAMP true)
endif()

include(FetchContent)

FetchContent_Declare(ic_cmake
URL https://github.com/intercreate/test-cmake/releases/latest/download/ic.zip
URL https://github.com/intercreate/ic-cmake/releases/latest/download/ic_cmake.zip
${download_extract_timestamp}
)
FetchContent_MakeAvailable(ic_cmake)
Expand Down

0 comments on commit 42dcf5e

Please sign in to comment.