@@ -28,20 +28,23 @@ if(NOT CPP-NETLIB_BUILD_SINGLE_LIB)
2828 target_link_libraries (network-http-message
2929${Boost_LIBRARIES}
3030 network-message)
31+ target_include_directories (network-http-messagePUBLIC ${Boost_INCLUDE_DIRS} )
3132endif ()
3233
3334set (CPP-NETLIB_HTTP_MESSAGE_WRAPPERS_SRCS
3435 http/message/wrappers.cpp)
3536
3637if (NOT CPP-NETLIB_BUILD_SINGLE_LIB)
3738 add_library (network-http-message-wrappers ${CPP-NETLIB_HTTP_MESSAGE_WRAPPERS_SRCS})
39+ target_include_directories (network-http-message-wrappersPUBLIC ${Boost_INCLUDE_DIRS} )
3840endif ()
3941
4042set (CPP-NETLIB_CONSTANTS_SRCS
4143 constants.cpp)
4244
4345if (NOT CPP-NETLIB_BUILD_SINGLE_LIB)
4446 add_library (network-constants ${CPP-NETLIB_CONSTANTS_SRCS})
47+ target_include_directories (network-constantsPUBLIC ${Boost_INCLUDE_DIRS} )
4548endif ()
4649
4750# Server implementation files.
@@ -52,6 +55,7 @@ set(CPP-NETLIB_HTTP_SERVER_SRCS
5255
5356if (NOT CPP-NETLIB_BUILD_SINGLE_LIB)
5457 add_library (network-http-server ${CPP-NETLIB_HTTP_SERVER_SRCS})
58+ target_include_directories (network-http-serverPUBLIC ${Boost_INCLUDE_DIRS} )
5559endif ()
5660
5761# HTTP client
@@ -64,6 +68,7 @@ target_link_libraries(network-http-v2-client
6468${Boost_LIBRARIES}
6569 network-uri
6670 )
71+ target_include_directories (network-http-v2-clientPUBLIC ${Boost_INCLUDE_DIRS} )
6772if (OPENSSL_FOUND)
6873 target_link_libraries (network-http-v2-client${OPENSSL_LIBRARIES} )
6974endif ()