Skip to content

Commit 42dcf5e

Browse files
committed
fix: docs: correct paths; add to readme
1 parent 6f4cc4f commit 42dcf5e

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Intercreate CMake
22

3+
This CMake library adds convenience functions to the build system.
4+
5+
# Include in Your Project
6+
7+
1. Add the fetch file to your repo:
8+
```
9+
wget https://github.com/intercreate/ic-cmake/releases/latest/download/fetch_ic.cmake
10+
```
11+
2. Include and link in your CMakeLists.txt:
12+
```cmake
13+
include(fetch_ic.cmake)
14+
```
15+
316
# Tests
417

518
```

fetch_ic.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
include_guard(GLOBAL)
77

88
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24.0")
9-
set(download_extract_timestamp "DOWNLOAD_EXTRACT_TIMESTAMP true")
9+
set(download_extract_timestamp DOWNLOAD_EXTRACT_TIMESTAMP true)
1010
endif()
1111

1212
include(FetchContent)
1313

1414
FetchContent_Declare(ic_cmake
15-
URL https://github.com/intercreate/test-cmake/releases/latest/download/ic.zip
15+
URL https://github.com/intercreate/ic-cmake/releases/latest/download/ic_cmake.zip
1616
${download_extract_timestamp}
1717
)
1818
FetchContent_MakeAvailable(ic_cmake)

0 commit comments

Comments
 (0)