Add exported public include directory for cjson

This commit is contained in:
Eric Montellese 2020-07-15 15:00:33 -04:00
parent cf97c6f066
commit 4d7b2a71d1

View File

@ -143,6 +143,7 @@ endif()
if (NOT WIN32)
target_link_libraries("${CJSON_LIB}" m)
endif()
target_include_directories(${CJSON_LIB} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/library_config/libcjson.pc.in"
"${CMAKE_CURRENT_BINARY_DIR}/libcjson.pc" @ONLY)