From f9181c7d97aee38426409b49b47bac6c8271b2f2 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 25 Sep 2022 01:47:55 -0400 Subject: Add preliminary qt6 support for no particular reason. --- qdeduper/CMakeLists.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'qdeduper') diff --git a/qdeduper/CMakeLists.txt b/qdeduper/CMakeLists.txt index 270cd45..75f7de0 100644 --- a/qdeduper/CMakeLists.txt +++ b/qdeduper/CMakeLists.txt @@ -1,6 +1,12 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) -find_package(Qt5 REQUIRED COMPONENTS Widgets Concurrent) +option(QDEDUPER_USE_QT6 "Build qdeduper with Qt 6" OFF) + +if (QDEDUPER_USE_QT6) + find_package(Qt6 REQUIRED COMPONENTS Widgets Concurrent) +else() + find_package(Qt5 REQUIRED COMPONENTS Widgets Concurrent) +endif() set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) @@ -17,6 +23,10 @@ add_executable(qdeduper target_link_libraries(qdeduper xsig - Qt5::Widgets - Qt5::Concurrent ) + +if (QDEDUPER_USE_QT6) + target_link_libraries(qdeduper Qt6::Widgets Qt6::Concurrent) +else() + target_link_libraries(qdeduper Qt5::Widgets Qt5::Concurrent) +endif() -- cgit v1.2.3