Skip to content

Commit

Permalink
README: Tagged CMake section and fixed indent (#32)
Browse files Browse the repository at this point in the history
* Tagged CMake section and fixed indent

* restored missing line
  • Loading branch information
M2-TE authored Jan 21, 2025
1 parent cf1d411 commit bf2547d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ Copy the gtl directory to your project. Update your include path. That's all.

If you are using cmake, you can use FetchContent to integrate gtl to your project, for example:

```
include(FetchContent)
FetchContent_Declare(
gtl
GIT_REPOSITORY https://github.com/greg7mdp/gtl.git
GIT_TAG v1.2.0 # adjust tag/branch/commit as needed
)
FetchContent_MakeAvailable(gtl)
...
target_link_libraries (my_target PRIVATE gtl)
```cmake
include(FetchContent)
FetchContent_Declare(
gtl
GIT_REPOSITORY https://github.com/greg7mdp/gtl.git
GIT_TAG v1.2.0 # adjust tag/branch/commit as needed
)
FetchContent_MakeAvailable(gtl)
...
target_link_libraries (my_target PRIVATE gtl)
```

#### Using a package manager
Expand Down

0 comments on commit bf2547d

Please sign in to comment.