From 56e4f8d277e41bf78e22c3100d6d88308a0b3c84 Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Fri, 15 May 2020 18:42:56 +0300 Subject: Update CMake examples --- examples/sending_arguments/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/sending_arguments') diff --git a/examples/sending_arguments/CMakeLists.txt b/examples/sending_arguments/CMakeLists.txt index bfdc5cc..a129781 100644 --- a/examples/sending_arguments/CMakeLists.txt +++ b/examples/sending_arguments/CMakeLists.txt @@ -1,19 +1,19 @@ cmake_minimum_required(VERSION 3.1.0) -project(sending_arguments) +project(sending_arguments LANGUAGES CXX) set(CMAKE_AUTOMOC ON) # SingleApplication base class -set(QAPPLICATION_CLASS QCoreApplication CACHE STRING "Inheritance class for SingleApplication") +set(QAPPLICATION_CLASS QCoreApplication) 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) +target_link_libraries(${PROJECT_NAME} SingleApplication) -- cgit v1.2.1