Skip to content

Commit

Permalink
Find nlohmann/json.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Aug 15, 2019
1 parent c0bfe2c commit 254ca80
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/FindNLJSON.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
find_path(NLJSON_HEADER nlohmann/json.hpp)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(NLJSON DEFAULT_MSG NLJSON_HEADER)

add_library(p::nljson INTERFACE IMPORTED)
set_property(TARGET p::nljson PROPERTY INTERFACE_INCLUDE_DIRECTORIES
${NLJSON_HEADER})

0 comments on commit 254ca80

Please sign in to comment.