add CMake support

This commit is contained in:
Syping 2020-09-18 20:54:09 +02:00
parent f13345e0f2
commit b34482ae97

35
CMakeLists.txt Normal file
View file

@ -0,0 +1,35 @@
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 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt5 COMPONENTS Network REQUIRED)
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)
install(TARGETS smsub DESTINATION bin)