diff --git a/CMakeLists.txt b/CMakeLists.txt index dc07e51..dad3be3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,12 +177,20 @@ endif() include(GNUInstallDirs) -install(TARGETS sioclient sioclient_tls +install(TARGETS sioclient EXPORT sioclientTargets INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sioclient ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/sioclient ) +if(OPENSSL_FOUND) + install(TARGETS sioclient_tls + EXPORT sioclientTargets + INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sioclient + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/sioclient + ) +endif() + install( FILES ${CMAKE_CURRENT_LIST_DIR}/src/sio_client.h