aboutsummaryrefslogblamecommitdiff
path: root/qdeduper/CMakeLists.txt
blob: 737333169107f0bdd22e5015148047963ea08108 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                 






                                                            








                       


                   

                        
                 



                              
 





                                                                
set(CMAKE_INCLUDE_CURRENT_DIR ON)

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)
set(CMAKE_AUTOUIC ON)

add_executable(qdeduper
    main.cpp
    mingui.cpp
    imageitem.cpp
    sigdb_qt.cpp
    filescanner.cpp
    pathchooser.cpp
    settings.cpp
    preferencedialog.cpp
    resources.qrc
)

target_link_libraries(qdeduper
    xsig
)

if (QDEDUPER_USE_QT6)
    target_link_libraries(qdeduper Qt6::Widgets Qt6::Concurrent)
else()
    target_link_libraries(qdeduper Qt5::Widgets Qt5::Concurrent)
endif()