diff --git a/CMakeLists.txt b/CMakeLists.txt index b3e4408e..83b98ec8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,7 +88,6 @@ endif() if (NOT TARGET jsoncpp_lib) message(FATAL_ERROR "Jsoncpp is not available") endif() -include_directories(${jsoncpp_INCLUDE_DIRS} ${JSONCPP_PKG_INCLUDE_DIRS}) ## boost set(Boost_USE_MULTITHREADED ON) @@ -122,6 +121,8 @@ endif() # building project add_library(${PROJECT_NAME} ${SRC_LIST}) + +target_include_directories(${PROJECT_NAME} PUBLIC ${jsoncpp_INCLUDE_DIRS} ${JSONCPP_PKG_INCLUDE_DIRS}) target_include_directories(${PROJECT_NAME} PUBLIC $ $)