cmake_minimum_required(VERSION 3.18) project(cppwebsockets) set(CMAKE_CXX_FLAGS -DLWS_NO_EXTENSIONS) add_library(cppwebsockets Util.cpp Util.h WebSocketServer.cpp WebSocketServer.h) target_link_libraries(cppwebsockets PUBLIC websockets) install(FILES Util.h WebSocketServer.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/cppwebsockets) install(TARGETS cppwebsockets DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)