mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-09-06 03:14:40 -04:00
Destroyed Cmake (markdown)
parent
8a215312ae
commit
8068875bc2
17
Cmake.md
17
Cmake.md
@ -1,17 +0,0 @@
|
||||
We use **Meson** for our CI builds, but users help us to support **Cmake** also.
|
||||
|
||||
#### Usage
|
||||
* https://github.com/open-source-parsers/jsoncpp/issues/455#issuecomment-477307969
|
||||
|
||||
The `jsoncppConfig.cmake` defines property `INTERFACE_INCLUDE_DIRECTORIES` for targets `jsoncpp_lib` and `jsoncpp_lib_static`.
|
||||
|
||||
You need to query the target property and set it manually:
|
||||
```cmake
|
||||
get_target_property(JSON_INC_PATH jsoncpp_lib INTERFACE_INCLUDE_DIRECTORIES)
|
||||
include_directories(${JSON_INC_PATH})
|
||||
```
|
||||
|
||||
Linking is done via:
|
||||
```cmake
|
||||
target_link_libraries(${PROJECT_NAME} jsoncpp_lib)
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user