2020-09-18 20:54:09 +02:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
|
|
|
project(smsub LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
2020-10-14 23:14:33 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
2020-09-18 20:54:09 +02:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
find_package(Qt5 COMPONENTS Network REQUIRED)
|
2020-09-19 09:31:57 +02:00
|
|
|
find_package(Qt5 COMPONENTS WebSockets QUIET)
|
2020-09-18 20:54:09 +02:00
|
|
|
|
|
|
|
set(SMSUB_SOURCES
|
|
|
|
main.cpp
|
|
|
|
SMSubProcess.cpp
|
|
|
|
SMSubServer.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(SMSUB_HEADERS
|
|
|
|
smsub.h
|
|
|
|
SMSubProcess.h
|
|
|
|
SMSubServer.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(smsub
|
|
|
|
${SMSUB_HEADERS}
|
|
|
|
${SMSUB_SOURCES}
|
|
|
|
)
|
|
|
|
|
2020-09-19 09:31:57 +02:00
|
|
|
target_link_libraries(smsub PRIVATE Qt5::Network Qt5::WebSockets)
|
2020-09-18 20:54:09 +02:00
|
|
|
|
|
|
|
install(TARGETS smsub DESTINATION bin)
|