dropbox / json11

A tiny JSON library for C++11.
MIT License
2.54k stars 613 forks source link

Export json11Config.cmake #121

Open fegorsch opened 6 years ago

fegorsch commented 6 years ago

Let CMake create and install json11Config.cmake allowing other CMake projects to easily import json11 as a CMake-target by setting json11_DIR to the corresponding location.

4brunu commented 6 years ago

This PR goes behind my CMake knowledge, but I tested this change in one of my projects and it works.

fegorsch commented 6 years ago

I removed appending CMAKE_DEBUG_POSTFIX and will eventually open another PR for this.

fegorsch commented 5 years ago

I'm still using json11 and I'm still using CMake. A merge of this PR or a comment on how to make it ready-to-be-merged would really help me in my day-to-day worklife :)