radio/lib/wSocket/CMakeLists.txt

27 lines
516 B
CMake
Raw Permalink Normal View History

2018-08-04 21:46:25 +00:00
cmake_minimum_required(VERSION 2.8.12)
project(wSocket)
find_package(Qt5Core REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5WebSockets REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(HEADERS
socket.h
server.h
)
set(SOURCES
socket.cpp
server.cpp
)
add_library(wSocket ${HEADERS} ${SOURCES})
target_link_libraries(wSocket Qt5::Core)
target_link_libraries(wSocket Qt5::Network)
target_link_libraries(wSocket Qt5::WebSockets)
target_link_libraries(wSocket wType)