mirror-chatterino2/cmake/FindWebsocketpp.cmake
kornes b14bfd2aad
Fix vcpkg manifest and finding RapidJSON and Websocketpp modules (#3753)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2022-05-21 15:38:10 +00:00

15 lines
509 B
CMake

include(FindPackageHandleStandardArgs)
find_path(Websocketpp_INCLUDE_DIR websocketpp/version.hpp HINTS ${CMAKE_SOURCE_DIR}/lib/websocketpp)
find_package_handle_standard_args(Websocketpp DEFAULT_MSG Websocketpp_INCLUDE_DIR)
if (Websocketpp_FOUND)
add_library(websocketpp::websocketpp INTERFACE IMPORTED)
set_target_properties(websocketpp::websocketpp PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${Websocketpp_INCLUDE_DIR}"
)
endif ()
mark_as_advanced(Websocketpp_INCLUDE_DIR)