diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 70d755ff..7d9441d4 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, ubuntu-22.04] + os: [ubuntu-22.04] steps: - uses: actions/setup-node@v3 diff --git a/.github/workflows/prod-build.yml b/.github/workflows/prod-build.yml index ff793633..dfcd4bca 100644 --- a/.github/workflows/prod-build.yml +++ b/.github/workflows/prod-build.yml @@ -9,7 +9,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, ubuntu-22.04] + os: [ubuntu-22.04] steps: - uses: actions/setup-node@v3 diff --git a/CMakeLists.txt b/CMakeLists.txt index ea5909fd..169621b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,9 +127,7 @@ else() find_package(PkgConfig) # Qt - find_package(Qt5Core CONFIG REQUIRED) - find_package(Qt5Widgets CONFIG REQUIRED) - find_package(Qt5Network CONFIG REQUIRED) + find_package(Qt5 5.15 REQUIRED COMPONENTS Core Widgets Network) # libpcap if (NOT WIN32) diff --git a/cmake/PackExternalDeps.cmake b/cmake/PackExternalDeps.cmake index 330be03b..fa1326d3 100644 --- a/cmake/PackExternalDeps.cmake +++ b/cmake/PackExternalDeps.cmake @@ -1,7 +1,7 @@ function(pack_qt_libs) - get_target_property(QT_CORE_LIB Qt5::Core LOCATION) + get_target_property(QT_CORE_LIB Qt::Core LOCATION) if (APPLE) get_filename_component(CORE_FRAMEWORK_DIR "${QT_CORE_LIB}" DIRECTORY) get_filename_component(QT_LIB_DIR "${CORE_FRAMEWORK_DIR}" DIRECTORY) diff --git a/src/hobbits-core/CMakeLists.txt b/src/hobbits-core/CMakeLists.txt index c7e3bacc..bb617f60 100644 --- a/src/hobbits-core/CMakeLists.txt +++ b/src/hobbits-core/CMakeLists.txt @@ -23,7 +23,7 @@ target_include_directories(hobbits-core INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}") if (BUILDING_WITH_CONAN) set(ALL_LINK_LIBS CONAN_PKG::qt) else() - set(ALL_LINK_LIBS Qt5::Core Qt5::Widgets) + set(ALL_LINK_LIBS Qt::Core Qt::Widgets) endif() target_link_libraries(hobbits-core ${ALL_LINK_LIBS}) diff --git a/src/hobbits-gui/CMakeLists.txt b/src/hobbits-gui/CMakeLists.txt index 42357701..da8e5f8a 100644 --- a/src/hobbits-gui/CMakeLists.txt +++ b/src/hobbits-gui/CMakeLists.txt @@ -19,7 +19,7 @@ file(GLOB RCFILES "${CMAKE_CURRENT_SOURCE_DIR}/*.qrc" "${CMAKE_CURRENT_SOURCE_DI if (BUILDING_WITH_CONAN) set(ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core CONAN_PKG::qt) else() - set(ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core Qt5::Widgets) + set(ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core Qt::Widgets) endif() add_executable(hobbits MACOSX_BUNDLE "${SRCFILES}" "${HDRFILES}" "${RCFILES}") diff --git a/src/hobbits-plugins/CMakeLists.txt b/src/hobbits-plugins/CMakeLists.txt index d0141a0e..11fcaaf2 100644 --- a/src/hobbits-plugins/CMakeLists.txt +++ b/src/hobbits-plugins/CMakeLists.txt @@ -18,7 +18,7 @@ macro(pluginInDir pluginType modName modDir) if (BUILDING_WITH_CONAN) set(ALL_LINK_LIBS hobbits-core hobbits-widgets CONAN_PKG::qt) else() - set(ALL_LINK_LIBS hobbits-core hobbits-widgets Qt5::Core Qt5::Widgets) + set(ALL_LINK_LIBS hobbits-core hobbits-widgets Qt::Core Qt::Widgets) endif() target_link_libraries("${pluginName}" PRIVATE ${ALL_LINK_LIBS}) diff --git a/src/hobbits-plugins/importerexporters/HttpData/CMakeLists.txt b/src/hobbits-plugins/importerexporters/HttpData/CMakeLists.txt index 5aeff0a3..4f2fcb23 100644 --- a/src/hobbits-plugins/importerexporters/HttpData/CMakeLists.txt +++ b/src/hobbits-plugins/importerexporters/HttpData/CMakeLists.txt @@ -1,6 +1,6 @@ pluginInDir("${pluginType}" "HttpData" "${CMAKE_CURRENT_SOURCE_DIR}") if (NOT BUILDING_WITH_CONAN) - target_link_libraries("hobbits-plugin-importerexporters-HttpData" PRIVATE Qt5::Network) + target_link_libraries("hobbits-plugin-importerexporters-HttpData" PRIVATE Qt::Network) endif() \ No newline at end of file diff --git a/src/hobbits-plugins/importerexporters/PacketCapture/CMakeLists.txt b/src/hobbits-plugins/importerexporters/PacketCapture/CMakeLists.txt index c7e4ec7a..e05d799c 100644 --- a/src/hobbits-plugins/importerexporters/PacketCapture/CMakeLists.txt +++ b/src/hobbits-plugins/importerexporters/PacketCapture/CMakeLists.txt @@ -5,7 +5,7 @@ if (NOT WIN32) if (BUILDING_WITH_CONAN) target_link_libraries("hobbits-plugin-importerexporters-PacketCapture" PRIVATE CONAN_PKG::libpcap) else() - target_link_libraries("hobbits-plugin-importerexporters-PacketCapture" PRIVATE ${PCAP_LIBRARY} Qt5::Network) + target_link_libraries("hobbits-plugin-importerexporters-PacketCapture" PRIVATE ${PCAP_LIBRARY} Qt::Network) endif() endif() diff --git a/src/hobbits-plugins/importerexporters/TcpData/CMakeLists.txt b/src/hobbits-plugins/importerexporters/TcpData/CMakeLists.txt index 9a7df4d9..068617e9 100644 --- a/src/hobbits-plugins/importerexporters/TcpData/CMakeLists.txt +++ b/src/hobbits-plugins/importerexporters/TcpData/CMakeLists.txt @@ -1,5 +1,5 @@ pluginInDir("${pluginType}" "TcpData" "${CMAKE_CURRENT_SOURCE_DIR}") if (NOT BUILDING_WITH_CONAN) - target_link_libraries("hobbits-plugin-importerexporters-TcpData" PRIVATE Qt5::Network) + target_link_libraries("hobbits-plugin-importerexporters-TcpData" PRIVATE Qt::Network) endif() diff --git a/src/hobbits-plugins/importerexporters/UdpData/CMakeLists.txt b/src/hobbits-plugins/importerexporters/UdpData/CMakeLists.txt index 8e9afa3d..d86f3b00 100644 --- a/src/hobbits-plugins/importerexporters/UdpData/CMakeLists.txt +++ b/src/hobbits-plugins/importerexporters/UdpData/CMakeLists.txt @@ -1,5 +1,5 @@ pluginInDir("${pluginType}" "UdpData" "${CMAKE_CURRENT_SOURCE_DIR}") if (NOT BUILDING_WITH_CONAN) - target_link_libraries("hobbits-plugin-importerexporters-UdpData" PRIVATE Qt5::Network) + target_link_libraries("hobbits-plugin-importerexporters-UdpData" PRIVATE Qt::Network) endif() diff --git a/src/hobbits-runner/CMakeLists.txt b/src/hobbits-runner/CMakeLists.txt index d42fe82a..b732b3b2 100644 --- a/src/hobbits-runner/CMakeLists.txt +++ b/src/hobbits-runner/CMakeLists.txt @@ -19,7 +19,7 @@ add_executable("hobbits-runner" "${SRCFILES}" "${HDRFILES}" "${RCFILES}") if (BUILDING_WITH_CONAN) set(ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core CONAN_PKG::qt) else() - set(ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core Qt5::Widgets) + set(ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core Qt::Widgets) endif() target_link_libraries("hobbits-runner" ${ALL_LINK_LIBS})