Skip to content

Commit

Permalink
Remove Qt5Network Qt5OpenGL and Qt5QML dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
RipleyTom authored and Nekotekina committed Mar 22, 2020
1 parent 09a8974 commit af4efaf
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 236 deletions.
8 changes: 4 additions & 4 deletions 3rdparty/qt5.cmake
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
add_library(3rdparty_qt5 INTERFACE)

find_package(Qt5 5.14 CONFIG COMPONENTS Widgets Qml Concurrent)
find_package(Qt5 5.14 CONFIG COMPONENTS Widgets Concurrent)
if(WIN32)
find_package(Qt5 5.14 COMPONENTS WinExtras REQUIRED)
target_link_libraries(3rdparty_qt5 INTERFACE Qt5::Widgets Qt5::WinExtras Qt5::Qml Qt5::Concurrent)
target_link_libraries(3rdparty_qt5 INTERFACE Qt5::Widgets Qt5::WinExtras Qt5::Concurrent)
else()
find_package(Qt5 5.14 COMPONENTS DBus Gui)
if(Qt5DBus_FOUND)
target_link_libraries(3rdparty_qt5 INTERFACE Qt5::Widgets Qt5::DBus Qt5::Qml Qt5::Concurrent)
target_link_libraries(3rdparty_qt5 INTERFACE Qt5::Widgets Qt5::DBus Qt5::Concurrent)
target_compile_definitions(3rdparty_qt5 INTERFACE -DHAVE_QTDBUS)
else()
target_link_libraries(3rdparty_qt5 INTERFACE Qt5::Widgets Qt5::Qml Qt5::Concurrent)
target_link_libraries(3rdparty_qt5 INTERFACE Qt5::Widgets Qt5::Concurrent)
endif()
target_include_directories(3rdparty_qt5 INTERFACE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
endif()
Expand Down
Loading

0 comments on commit af4efaf

Please sign in to comment.