aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qdeduper/CMakeLists.txt16
1 files changed, 13 insertions, 3 deletions
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()