Upate usage instructions
This commit is contained in:
parent
a8169aba8e
commit
8874e7911b
@ -41,7 +41,7 @@ FetchContent_Declare(
|
|||||||
GIT_TAG <HASH or TAG>
|
GIT_TAG <HASH or TAG>
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(cpptrace)
|
FetchContent_MakeAvailable(cpptrace)
|
||||||
target_link_libraries(your_target PRIVATE cpptrace)
|
target_link_libraries(your_target cpptrace)
|
||||||
```
|
```
|
||||||
|
|
||||||
It's as easy as that. Cpptrace will automatically configure itself for your system.
|
It's as easy as that. Cpptrace will automatically configure itself for your system.
|
||||||
@ -66,9 +66,8 @@ sudo make install
|
|||||||
|
|
||||||
Using through cmake:
|
Using through cmake:
|
||||||
```cmake
|
```cmake
|
||||||
include(CMakeFindDependencyMacro)
|
find_package(cpptrace REQUIRED)
|
||||||
find_dependency(cpptrace REQUIRED)
|
target_link_libraries(<your target> cpptrace::cpptrace)
|
||||||
target_link_libraries(<your target> cpptrace)
|
|
||||||
```
|
```
|
||||||
Be sure to configure with `-DCMAKE_BUILD_TYPE=Debug`.
|
Be sure to configure with `-DCMAKE_BUILD_TYPE=Debug`.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user