Skip to content

Commit a54e26a

Browse files
committed
fix missing QtDBus on macOS
Signed-off-by: Tony <[email protected]>
1 parent f690e2b commit a54e26a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openhantek/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ endif()
6666
add_executable(${PROJECT_NAME} ${EXECTYPE} ${SRC} ${HEADERS} ${UI}
6767
${QRC} ${RC} ${TRANSLATION_BIN_FILES} ${TRANSLATION_QRC} ${ICONS})
6868
target_link_libraries(${PROJECT_NAME} Qt6::Widgets Qt6::PrintSupport Qt6::OpenGL Qt6::OpenGLWidgets ${OPENGL_LIBRARIES} )
69+
if( APPLE AND BUILD_MACOSX_BUNDLE )
70+
find_package(Qt6 REQUIRED COMPONENTS DBus)
71+
target_link_libraries(${PROJECT_NAME} Qt6::DBus )
72+
endif()
6973
target_compile_features(${PROJECT_NAME} PRIVATE cxx_range_for)
7074

7175
if(MSVC)

0 commit comments

Comments
 (0)