cmake_minimum_required(VERSION 2.8) project(s20) find_package(Qt5 REQUIRED Core Network) add_executable(s20 main.cpp socket.cpp) target_link_libraries(s20 Qt5::Core Qt5::Network)