Commit 490fd39
committed
cmake: allow for inclusion with CPM
Allow using backwards-cpp through CPM (Cmake Package
Manager)/FetchContent without using the ${BACKWARD_ENABLE} target
CPM (https://github.com/cpm-cmake/CPM.cmake) can now be used like so:
In a main/top-level CMakeLists.txt:
```cmake
include(cmake/CPM.cmake)
CPMAddPackage("gh:#1.7")
```
And in a project (or the same CMakeLists.txt):
```cmake
cmake_minimum_required(VERSION 3.9)
project (example VERSION 0.1)
add_executable(example
main.cpp
)
target_link_libraries(example
Backward::Backward
)
```1 parent 90398ee commit 490fd39
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| |||
0 commit comments