Skip to content

Commit fece352

Browse files
committed
Update intergrations_tests README.md
1 parent e8728ef commit fece352

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

integration_tests/cpm/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ project [releases page](https://github.com/cpm-cmake/CPM.cmake/releases/latest).
66

77
With CPM enabled, you can bring this library in using the following command:
88

9-
```
10-
CPMAddPackage ( "gh:baderouaich/BitmapPlusPlus#master" )
9+
```cmake
10+
CPMAddPackage("gh:baderouaich/BitmapPlusPlus#master")
1111
```
1212

1313
And link it to your target using:
1414

15-
```
16-
target_link_libraries( ${TARGET} LINK_PRIVATE bpp::BitmapPlusPlus )
15+
```cmake
16+
target_link_libraries(${TARGET} LINK_PRIVATE bpp::BitmapPlusPlus)
1717
```
1818

1919
Note that your target needs to compile with C++17 or newer. After that, you can simply include the library in your code:

integration_tests/fetchcontent/README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
# Integration example using CPM
1+
# Integration example using FetchContent
22

3-
CPM stands for [CMake Package Manager](https://github.com/cpm-cmake) which is a convenience wrapper over CMake's
4-
FetchContent module. You can download the CPM.cmake from the
5-
project [releases page](https://github.com/cpm-cmake/CPM.cmake/releases/latest).
3+
[FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html) is a built-in CMake module that allows you to fetch and incorporate external dependencies directly into your project.
4+
It eliminates the need for additional package managers and simplifies dependency management.
65

7-
With CPM enabled, you can bring this library in using the following command:
6+
You can bring this library in using the following command:
87

9-
```
10-
CPMAddPackage ( "gh:baderouaich/BitmapPlusPlus#master" )
8+
```cmake
9+
include(FetchContent)
10+
FetchContent_Declare(BitmapPlusPlus
11+
GIT_REPOSITORY "https://github.com/baderouaich/BitmapPlusPlus"
12+
GIT_TAG "master"
13+
)
14+
FetchContent_MakeAvailable(BitmapPlusPlus)
1115
```
1216

1317
And link it to your target using:
1418

15-
```
16-
target_link_libraries( ${TARGET} LINK_PRIVATE bpp::BitmapPlusPlus )
19+
```cmake
20+
target_link_libraries(${TARGET} LINK_PRIVATE bpp::BitmapPlusPlus)
1721
```
1822

1923
Note that your target needs to compile with C++17 or newer. After that, you can simply include the library in your code:

0 commit comments

Comments
 (0)