From 6c97f3e80de9c78b322617b8558bc34e978e29b9 Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Sat, 24 Oct 2020 13:42:20 +0300 Subject: Add Qt6 configuration --- examples/sending_arguments/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/sending_arguments') diff --git a/examples/sending_arguments/CMakeLists.txt b/examples/sending_arguments/CMakeLists.txt index 06c740f..2cc5597 100644 --- a/examples/sending_arguments/CMakeLists.txt +++ b/examples/sending_arguments/CMakeLists.txt @@ -6,6 +6,9 @@ set(CMAKE_AUTOMOC ON) # SingleApplication base class set(QAPPLICATION_CLASS QCoreApplication) +add_subdirectory(../.. SingleApplication) + +find_package(Qt${QT_DEFAULT_MAJOR_VERSION} COMPONENTS Core REQUIRED) add_executable(${PROJECT_NAME} main.cpp @@ -14,6 +17,4 @@ add_executable(${PROJECT_NAME} main.cpp ) -find_package(Qt5 COMPONENTS Core REQUIRED) -add_subdirectory(../.. SingleApplication) target_link_libraries(${PROJECT_NAME} SingleApplication::SingleApplication) -- cgit v1.2.1