diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0a1be3f9..3bb06310 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -32,9 +32,11 @@ target_link_libraries(tst_docks kddockwidgets Qt${Qt_VERSION_MAJOR}::Test) set_compiler_flags(tst_docks) # tst_qtwidgets -add_executable(tst_qtwidgets qtwidgets/tst_qtwidgets.cpp ${TESTING_SRCS} ${TESTING_RESOURCES}) -target_link_libraries(tst_qtwidgets kddockwidgets Qt${Qt_VERSION_MAJOR}::Test) -set_compiler_flags(tst_qtwidgets) +if (KDDW_FRONTEND_QTWIDGETS) + add_executable(tst_qtwidgets qtwidgets/tst_qtwidgets.cpp ${TESTING_SRCS} ${TESTING_RESOURCES}) + target_link_libraries(tst_qtwidgets kddockwidgets Qt${Qt_VERSION_MAJOR}::Test) + set_compiler_flags(tst_qtwidgets) +endif() add_executable(tst_multisplitter tst_multisplitter.cpp) target_link_libraries(tst_multisplitter kddockwidgets Qt${Qt_VERSION_MAJOR}::Test)