diff options
Diffstat (limited to 'examples/sending_arguments/CMakeLists.txt')
-rw-r--r-- | examples/sending_arguments/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/sending_arguments/CMakeLists.txt b/examples/sending_arguments/CMakeLists.txt new file mode 100644 index 0000000..bfdc5cc --- /dev/null +++ b/examples/sending_arguments/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 3.1.0) + +project(sending_arguments) + +set(CMAKE_AUTOMOC ON) + +# SingleApplication base class +set(QAPPLICATION_CLASS QCoreApplication CACHE STRING "Inheritance class for SingleApplication") + +add_executable(${PROJECT_NAME} + main.cpp + messagereceiver.cpp + messagereceiver.h + main.cpp + ) + +find_package(Qt5 COMPONENTS Core REQUIRED) +add_subdirectory(../.. SingleApplication) +target_link_libraries(${PROJECT_NAME} Qt5::Core SingleApplication) |