2015-01-11 00:17:06 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(s20)
|
|
|
|
|
2015-01-25 19:39:15 +00:00
|
|
|
add_definitions(-std=gnu++11)
|
2015-02-01 01:42:45 +00:00
|
|
|
set(CMAKE_AUTOMOC TRUE)
|
2015-01-25 19:39:15 +00:00
|
|
|
|
2015-06-07 16:07:25 +01:00
|
|
|
find_package(Qt5 REQUIRED Core Gui Widgets Network)
|
|
|
|
|
2015-02-01 01:42:45 +00:00
|
|
|
add_executable(s20 main.cpp socket.cpp consolereader.cpp server.cpp)
|
2015-01-14 13:55:28 +00:00
|
|
|
target_link_libraries(s20 Qt5::Core Qt5::Network)
|
2015-06-07 16:07:25 +01:00
|
|
|
|
|
|
|
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
|
|
|
|
qt5_wrap_ui(UIS_HDRS dialog.ui)
|
|
|
|
add_executable(s20-gui main-gui.cpp dialog.cpp socket.cpp server.cpp ${UIS_HDRS})
|
|
|
|
target_link_libraries(s20-gui Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network)
|