diff options
-rw-r--r-- | autotests/kconfig_compiler/CMakeLists.txt | 2 | ||||
-rw-r--r-- | autotests/kconfig_compiler/enum_group_main.cpp | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/autotests/kconfig_compiler/CMakeLists.txt b/autotests/kconfig_compiler/CMakeLists.txt index 6ca8d923..74d09e96 100644 --- a/autotests/kconfig_compiler/CMakeLists.txt +++ b/autotests/kconfig_compiler/CMakeLists.txt @@ -307,7 +307,7 @@ target_link_libraries(test_fileextensions KF5::ConfigGui) ####### next target ########## ## If this to compiles, we are sure that the generation is correct. -set(test_enums_and_properties_SRCS empty_main.cpp) +set(test_enums_and_properties_SRCS enum_group_main.cpp) gen_kcfg_test_source(test_enums_and_properties test_enums_and_properties_SRCS GENERATE_MOC) add_library(test_enums_and_properties ${test_enums_and_properties_SRCS}) target_link_libraries(test_enums_and_properties KF5::ConfigGui) diff --git a/autotests/kconfig_compiler/enum_group_main.cpp b/autotests/kconfig_compiler/enum_group_main.cpp new file mode 100644 index 00000000..fc93d275 --- /dev/null +++ b/autotests/kconfig_compiler/enum_group_main.cpp @@ -0,0 +1,18 @@ +/* + SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org> + + SPDX-License-Identifier: MIT +*/ +#include "test_enums_and_properties.h" +#include <QGuiApplication> + +int main(int argc, char **argv) +{ + QGuiApplication app(argc, argv); + + auto *t = new TestEnumsAndProperties(); + delete t; + + Q_UNUSED(app); + return 0; +} |