diff --git a/CMakeLists.txt b/CMakeLists.txt index 75f761bb..b3e725aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,10 +177,6 @@ if (WIVRN_BUILD_DASHBOARD) find_package(nlohmann_json REQUIRED) find_package(QCoro6 REQUIRED COMPONENTS Core Network Qml) qcoro_enable_coroutines() - - set(CMAKE_AUTOMOC ON) - set(CMAKE_AUTORCC ON) - set(CMAKE_AUTOUIC ON) endif() if (WIVRN_BUILD_CLIENT OR WIVRN_BUILD_DASHBOARD) diff --git a/dashboard/CMakeLists.txt b/dashboard/CMakeLists.txt index bd057e90..2f99db06 100644 --- a/dashboard/CMakeLists.txt +++ b/dashboard/CMakeLists.txt @@ -7,6 +7,10 @@ include(I18n) ecm_find_qmlmodule(org.kde.kirigami REQUIRED) ecm_find_qmlmodule(org.kde.kirigamiaddons.formcard REQUIRED) +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + add_executable(wivrn-dashboard avahi.cpp main.cpp