Skip to content

Commit e99e6d9

Browse files
committed
CMake: Add include directory to jsoncpp_lib target so that it can be easier used with other projects.
1 parent 7165f6a commit e99e6d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib_json/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ ADD_LIBRARY( jsoncpp_lib ${JSONCPP_LIB_TYPE}
3939
SET_TARGET_PROPERTIES( jsoncpp_lib PROPERTIES OUTPUT_NAME jsoncpp )
4040
SET_TARGET_PROPERTIES( jsoncpp_lib PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_VERSION_MAJOR} )
4141

42+
TARGET_INCLUDE_DIRECTORIES( jsoncpp_lib
43+
PUBLIC ${JSONCPP_INCLUDE_DIR}
44+
)
45+
4246
# Install instructions for this target
4347
IF(JSONCPP_WITH_CMAKE_PACKAGE)
4448
TARGET_INCLUDE_DIRECTORIES( jsoncpp_lib

0 commit comments

Comments
 (0)