2019-10-11 21:30:11 +08:00
|
|
|
cmake_minimum_required(VERSION 3.1.0)
|
|
|
|
|
2020-05-15 23:42:56 +08:00
|
|
|
project(sending_arguments LANGUAGES CXX)
|
2019-10-11 21:30:11 +08:00
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
# SingleApplication base class
|
2020-05-15 23:42:56 +08:00
|
|
|
set(QAPPLICATION_CLASS QCoreApplication)
|
2019-10-11 21:30:11 +08:00
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
main.cpp
|
|
|
|
messagereceiver.cpp
|
|
|
|
messagereceiver.h
|
|
|
|
main.cpp
|
2020-05-15 23:42:56 +08:00
|
|
|
)
|
2019-10-11 21:30:11 +08:00
|
|
|
|
|
|
|
find_package(Qt5 COMPONENTS Core REQUIRED)
|
|
|
|
add_subdirectory(../.. SingleApplication)
|
2020-05-15 23:42:56 +08:00
|
|
|
target_link_libraries(${PROJECT_NAME} SingleApplication)
|