File tree 12 files changed +12
-14
lines changed
12 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ${{ matrix.os }}
13
13
strategy :
14
14
matrix :
15
- os : [ubuntu-20.04, ubuntu- 22.04]
15
+ os : [ubuntu-22.04]
16
16
17
17
steps :
18
18
- uses : actions/setup-node@v3
Original file line number Diff line number Diff line change 9
9
runs-on : ${{ matrix.os }}
10
10
strategy :
11
11
matrix :
12
- os : [ubuntu-20.04, ubuntu- 22.04]
12
+ os : [ubuntu-22.04]
13
13
14
14
steps :
15
15
- uses : actions/setup-node@v3
Original file line number Diff line number Diff line change @@ -127,9 +127,7 @@ else()
127
127
find_package (PkgConfig)
128
128
129
129
# Qt
130
- find_package (Qt5Core CONFIG REQUIRED)
131
- find_package (Qt5Widgets CONFIG REQUIRED)
132
- find_package (Qt5Network CONFIG REQUIRED)
130
+ find_package (Qt5 5.15 REQUIRED COMPONENTS Core Widgets Network)
133
131
134
132
# libpcap
135
133
if (NOT WIN32 )
Original file line number Diff line number Diff line change 1
1
2
2
function (pack_qt_libs)
3
3
4
- get_target_property (QT_CORE_LIB Qt5 ::Core LOCATION )
4
+ get_target_property (QT_CORE_LIB Qt ::Core LOCATION )
5
5
if (APPLE )
6
6
get_filename_component (CORE_FRAMEWORK_DIR "${QT_CORE_LIB} " DIRECTORY )
7
7
get_filename_component (QT_LIB_DIR "${CORE_FRAMEWORK_DIR} " DIRECTORY )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ target_include_directories(hobbits-core INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
23
23
if (BUILDING_WITH_CONAN)
24
24
set (ALL_LINK_LIBS CONAN_PKG::qt)
25
25
else ()
26
- set (ALL_LINK_LIBS Qt5 ::Core Qt5 ::Widgets)
26
+ set (ALL_LINK_LIBS Qt ::Core Qt ::Widgets)
27
27
endif ()
28
28
29
29
target_link_libraries (hobbits-core ${ALL_LINK_LIBS} )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ file(GLOB RCFILES "${CMAKE_CURRENT_SOURCE_DIR}/*.qrc" "${CMAKE_CURRENT_SOURCE_DI
19
19
if (BUILDING_WITH_CONAN)
20
20
set (ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core CONAN_PKG::qt)
21
21
else ()
22
- set (ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core Qt5 ::Widgets)
22
+ set (ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core Qt ::Widgets)
23
23
endif ()
24
24
25
25
add_executable (hobbits MACOSX_BUNDLE "${SRCFILES} " "${HDRFILES} " "${RCFILES} " )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ macro(pluginInDir pluginType modName modDir)
18
18
if (BUILDING_WITH_CONAN)
19
19
set (ALL_LINK_LIBS hobbits-core hobbits-widgets CONAN_PKG::qt)
20
20
else ()
21
- set (ALL_LINK_LIBS hobbits-core hobbits-widgets Qt5 ::Core Qt5 ::Widgets)
21
+ set (ALL_LINK_LIBS hobbits-core hobbits-widgets Qt ::Core Qt ::Widgets)
22
22
endif ()
23
23
24
24
target_link_libraries ("${pluginName} " PRIVATE ${ALL_LINK_LIBS} )
Original file line number Diff line number Diff line change 1
1
pluginInDir("${pluginType} " "HttpData" "${CMAKE_CURRENT_SOURCE_DIR} " )
2
2
3
3
if (NOT BUILDING_WITH_CONAN)
4
- target_link_libraries ("hobbits-plugin-importerexporters-HttpData" PRIVATE Qt5 ::Network)
4
+ target_link_libraries ("hobbits-plugin-importerexporters-HttpData" PRIVATE Qt ::Network)
5
5
endif ()
6
6
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if (NOT WIN32)
5
5
if (BUILDING_WITH_CONAN)
6
6
target_link_libraries ("hobbits-plugin-importerexporters-PacketCapture" PRIVATE CONAN_PKG::libpcap)
7
7
else ()
8
- target_link_libraries ("hobbits-plugin-importerexporters-PacketCapture" PRIVATE ${PCAP_LIBRARY} Qt5 ::Network)
8
+ target_link_libraries ("hobbits-plugin-importerexporters-PacketCapture" PRIVATE ${PCAP_LIBRARY} Qt ::Network)
9
9
endif ()
10
10
11
11
endif ()
Original file line number Diff line number Diff line change 1
1
pluginInDir("${pluginType} " "TcpData" "${CMAKE_CURRENT_SOURCE_DIR} " )
2
2
3
3
if (NOT BUILDING_WITH_CONAN)
4
- target_link_libraries ("hobbits-plugin-importerexporters-TcpData" PRIVATE Qt5 ::Network)
4
+ target_link_libraries ("hobbits-plugin-importerexporters-TcpData" PRIVATE Qt ::Network)
5
5
endif ()
Original file line number Diff line number Diff line change 1
1
pluginInDir("${pluginType} " "UdpData" "${CMAKE_CURRENT_SOURCE_DIR} " )
2
2
3
3
if (NOT BUILDING_WITH_CONAN)
4
- target_link_libraries ("hobbits-plugin-importerexporters-UdpData" PRIVATE Qt5 ::Network)
4
+ target_link_libraries ("hobbits-plugin-importerexporters-UdpData" PRIVATE Qt ::Network)
5
5
endif ()
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ add_executable("hobbits-runner" "${SRCFILES}" "${HDRFILES}" "${RCFILES}")
19
19
if (BUILDING_WITH_CONAN)
20
20
set (ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core CONAN_PKG::qt)
21
21
else ()
22
- set (ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core Qt5 ::Widgets)
22
+ set (ALL_LINK_LIBS hobbits-python hobbits-widgets hobbits-core Qt ::Widgets)
23
23
endif ()
24
24
25
25
target_link_libraries ("hobbits-runner" ${ALL_LINK_LIBS} )
You can’t perform that action at this time.
0 commit comments