smsub/CMakeLists.txt
2020-10-14 23:14:33 +02:00

36 lines
643 B
CMake

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)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt5 COMPONENTS Network REQUIRED)
find_package(Qt5 COMPONENTS WebSockets QUIET)
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}
)
target_link_libraries(smsub PRIVATE Qt5::Network Qt5::WebSockets)
install(TARGETS smsub DESTINATION bin)