Skip to content

Commit 871f46c

Browse files
committed
Link against Qt DBus on Linux
1 parent e833340 commit 871f46c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ option(SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS "Build unit tests" ON)
1010
find_package(Qt6 6.6 COMPONENTS Quick QuickControls2 Widgets OpenGLWidgets REQUIRED)
1111
set(QT_LIBS Qt6::Quick Qt6::QuickControls2 Qt6::Widgets Qt6::OpenGLWidgets)
1212

13+
if (LINUX)
14+
find_package(Qt6 6.6 COMPONENTS DBus REQUIRED)
15+
set(QT_LIBS ${QT_LIBS} Qt6::DBus)
16+
endif()
17+
1318
if (SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS)
1419
set(GTEST_DIR thirdparty/googletest)
1520
add_subdirectory(${PROJECT_SOURCE_DIR}/${GTEST_DIR} ${CMAKE_CURRENT_BINARY_DIR}/${GTEST_DIR})

0 commit comments

Comments
 (0)