Merge pull request #988 from dvetutnev/refactoring_include_directories
Refactoring include directories
This commit is contained in:
commit
6635ca5e26
|
@ -7,11 +7,8 @@ if(ENABLE_EXAMPLES)
|
||||||
COMPILE_FLAGS "${WARNCXXFLAGS} ${CXX1XCXXFLAGS}")
|
COMPILE_FLAGS "${WARNCXXFLAGS} ${CXX1XCXXFLAGS}")
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/lib/includes
|
"${CMAKE_CURRENT_SOURCE_DIR}/../third-party"
|
||||||
${CMAKE_BINARY_DIR}/lib/includes
|
|
||||||
${CMAKE_SOURCE_DIR}/src/includes
|
|
||||||
${CMAKE_SOURCE_DIR}/third-party
|
|
||||||
|
|
||||||
${LIBEVENT_INCLUDE_DIRS}
|
${LIBEVENT_INCLUDE_DIRS}
|
||||||
${OPENSSL_INCLUDE_DIRS}
|
${OPENSSL_INCLUDE_DIRS}
|
||||||
|
|
|
@ -44,6 +44,10 @@ set_target_properties(nghttp2 PROPERTIES
|
||||||
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}
|
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}
|
||||||
C_VISIBILITY_PRESET hidden
|
C_VISIBILITY_PRESET hidden
|
||||||
)
|
)
|
||||||
|
target_include_directories(nghttp2 INTERFACE
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/includes"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/includes"
|
||||||
|
)
|
||||||
|
|
||||||
if(HAVE_CUNIT)
|
if(HAVE_CUNIT)
|
||||||
# Static library (for unittests because of symbol visibility)
|
# Static library (for unittests because of symbol visibility)
|
||||||
|
|
|
@ -8,11 +8,8 @@ set_source_files_properties(${cxx_sources} PROPERTIES
|
||||||
COMPILE_FLAGS "${WARNCXXFLAGS} ${CXX1XCXXFLAGS}")
|
COMPILE_FLAGS "${WARNCXXFLAGS} ${CXX1XCXXFLAGS}")
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
"${CMAKE_SOURCE_DIR}/lib/includes"
|
"${CMAKE_CURRENT_SOURCE_DIR}/includes"
|
||||||
"${CMAKE_BINARY_DIR}/lib/includes"
|
"${CMAKE_CURRENT_SOURCE_DIR}/../third-party"
|
||||||
"${CMAKE_SOURCE_DIR}/lib"
|
|
||||||
"${CMAKE_SOURCE_DIR}/src/includes"
|
|
||||||
"${CMAKE_SOURCE_DIR}/third-party"
|
|
||||||
|
|
||||||
${JEMALLOC_INCLUDE_DIRS}
|
${JEMALLOC_INCLUDE_DIRS}
|
||||||
${SPDYLAY_INCLUDE_DIRS}
|
${SPDYLAY_INCLUDE_DIRS}
|
||||||
|
@ -252,6 +249,11 @@ if(ENABLE_ASIO_LIB)
|
||||||
${OPENSSL_INCLUDE_DIRS}
|
${OPENSSL_INCLUDE_DIRS}
|
||||||
${Boost_INCLUDE_DIRS}
|
${Boost_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
target_include_directories(nghttp2_asio INTERFACE
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/../lib/includes"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/../lib/includes"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/includes"
|
||||||
|
)
|
||||||
target_link_libraries(nghttp2_asio
|
target_link_libraries(nghttp2_asio
|
||||||
nghttp2
|
nghttp2
|
||||||
${OPENSSL_LIBRARIES}
|
${OPENSSL_LIBRARIES}
|
||||||
|
|
Loading…
Reference in New Issue