add CMake support
This commit is contained in:
parent
f13345e0f2
commit
b34482ae97
1 changed files with 35 additions and 0 deletions
35
CMakeLists.txt
Normal file
35
CMakeLists.txt
Normal 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)
|
Loading…
Reference in a new issue