aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-25 01:47:55 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-25 01:47:55 -0400
commitf9181c7d97aee38426409b49b47bac6c8271b2f2 (patch)
tree1cb362dd57cf30def1b90fce4986cd6ae3416cec
parent2962525cf5b4d26047ca2e79346fb85b2b93dd71 (diff)
downloaddeduper-f9181c7d97aee38426409b49b47bac6c8271b2f2.tar.xz
Add preliminary qt6 support for no particular reason.
-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()