diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt index 2376823..d0592a3 100644 --- a/src/bin/CMakeLists.txt +++ b/src/bin/CMakeLists.txt @@ -253,14 +253,14 @@ endif() if(BUILD_SHARED_LIBS) target_include_directories(msquic PUBLIC $ - $) + $) else() target_include_directories(msquic_static INTERFACE $ - $) + $) target_include_directories(msquic INTERFACE $ - $) + $) endif() set(PUBLIC_HEADERS @@ -269,11 +269,10 @@ set(PUBLIC_HEADERS ../inc/msquic_posix.h ../inc/quic_sal_stub.h) -if(BUILD_SHARED_LIBS) - install(TARGETS msquic EXPORT msquic DESTINATION lib) -else() - install(FILES ${QUIC_STATIC_LIBRARY} DESTINATION lib) -endif() +install(TARGETS msquic EXPORT msquic + RUNTIME DESTINATION bin + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib) install(FILES ${PUBLIC_HEADERS} DESTINATION include) configure_file(msquic-config.cmake.in ${CMAKE_BINARY_DIR}/msquic-config.cmake)