diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt index 4c537a1641..5f4eb1d277 100644 --- a/src/bin/CMakeLists.txt +++ b/src/bin/CMakeLists.txt @@ -251,25 +251,19 @@ elseif (CX_PLATFORM STREQUAL "darwin") endif() include(GNUInstallDirs) -set(include_dest ${CMAKE_INSTALL_INCLUDEDIR}) -if(BUILD_SHARED_LIBS) - target_include_directories(msquic PUBLIC - $ - $) -else() - target_include_directories(msquic_static INTERFACE - $ - $) - target_include_directories(msquic INTERFACE - $ - $) +file(GLOB PUBLIC_HEADERS "../inc/*.h" "../inc/*.hpp") + +if(QUIC_TLS STREQUAL "openssl" OR QUIC_TLS STREQUAL "openssl3") + set(OTHER_TARGETS OpenSSL OpenSSLQuic) endif() -file(GLOB PUBLIC_HEADERS "../inc/*.h" "../inc/*.hpp") +if(WIN32) + list(APPEND OTHER_TARGETS MsQuicEtw_Header) +endif() if(BUILD_SHARED_LIBS) - install(TARGETS msquic EXPORT msquic DESTINATION lib) + install(TARGETS msquic platform inc logging_inc warnings main_binary_link_args ${OTHER_TARGETS} EXPORT msquic DESTINATION lib) else() install(FILES ${QUIC_STATIC_LIBRARY} DESTINATION lib) endif() diff --git a/src/generated/CMakeLists.txt b/src/generated/CMakeLists.txt index 19c49f1bf3..93bd6cc9a2 100644 --- a/src/generated/CMakeLists.txt +++ b/src/generated/CMakeLists.txt @@ -23,9 +23,15 @@ if(QUIC_ENABLE_LOGGING) target_link_libraries(logging PRIVATE inc) elseif(QUIC_LOGGING_TYPE STREQUAL "lttng") - target_include_directories(logging_inc INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/common) - target_include_directories(logging_inc INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/linux) - target_include_directories(logging_inc INTERFACE ${LTTNGUST_INCLUDE_DIRS}) + target_include_directories(logging_inc INTERFACE + $ + $) + target_include_directories(logging_inc INTERFACE + $ + $) + target_include_directories(logging_inc INTERFACE + $ + $) FILE(GLOB LOGGING_FILES ${CMAKE_CURRENT_SOURCE_DIR}/linux/*.c) add_library(logging STATIC ${LOGGING_FILES}) diff --git a/src/inc/CMakeLists.txt b/src/inc/CMakeLists.txt index 94daef9a66..f682d012f8 100644 --- a/src/inc/CMakeLists.txt +++ b/src/inc/CMakeLists.txt @@ -9,7 +9,9 @@ target_compile_options(inc INTERFACE ${QUIC_C_FLAGS}) target_compile_options(inc INTERFACE $<$:${QUIC_CXX_FLAGS}>) target_compile_definitions(inc INTERFACE ${QUIC_COMMON_DEFINES}) -target_include_directories(inc INTERFACE ${QUIC_INCLUDE_DIR}) +target_include_directories(inc INTERFACE + $ + $) target_compile_features(inc INTERFACE cxx_std_17) target_compile_features(inc INTERFACE c_std_11) diff --git a/submodules/CMakeLists.txt b/submodules/CMakeLists.txt index a6c5929512..2acefc4af1 100644 --- a/submodules/CMakeLists.txt +++ b/submodules/CMakeLists.txt @@ -157,8 +157,9 @@ if (WIN32) target_include_directories( OpenSSLQuic INTERFACE - $<$:${OPENSSL_DIR}/debug/include> - $<$>:${OPENSSL_DIR}/release/include> + $:${OPENSSL_DIR}/debug/include> + $<$>:${OPENSSL_DIR}/release/include>> + $ ) target_link_libraries( OpenSSLQuic