mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-17 19:31:35 +02:00
CMake: Add include directory to jsoncpp_lib target so that it can be easier used with other projects.
This commit is contained in:
parent
7165f6ac4c
commit
e99e6d9cc6
@ -39,6 +39,10 @@ ADD_LIBRARY( jsoncpp_lib ${JSONCPP_LIB_TYPE}
|
|||||||
SET_TARGET_PROPERTIES( jsoncpp_lib PROPERTIES OUTPUT_NAME jsoncpp )
|
SET_TARGET_PROPERTIES( jsoncpp_lib PROPERTIES OUTPUT_NAME jsoncpp )
|
||||||
SET_TARGET_PROPERTIES( jsoncpp_lib PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_VERSION_MAJOR} )
|
SET_TARGET_PROPERTIES( jsoncpp_lib PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_VERSION_MAJOR} )
|
||||||
|
|
||||||
|
TARGET_INCLUDE_DIRECTORIES( jsoncpp_lib
|
||||||
|
PUBLIC ${JSONCPP_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
# Install instructions for this target
|
# Install instructions for this target
|
||||||
IF(JSONCPP_WITH_CMAKE_PACKAGE)
|
IF(JSONCPP_WITH_CMAKE_PACKAGE)
|
||||||
TARGET_INCLUDE_DIRECTORIES( jsoncpp_lib
|
TARGET_INCLUDE_DIRECTORIES( jsoncpp_lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user