diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-09-08 10:27:30 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-09-08 16:33:03 +0300 |
commit | af1eff03c9e839914aab4109970c4a9f6fac8a99 (patch) | |
tree | ae11034560b0e1c270614077ffd8f0f7485c7381 /src/settings/CMakeLists.txt | |
parent | Add RekonqWindow tests (diff) | |
download | rekonq-af1eff03c9e839914aab4109970c4a9f6fac8a99.tar.xz |
RekonqSettings: add resetValue and remove value's defaultValue parameter
- generate default rekonqrc and include it in libsettings
- Settings uses :/settings/rekonqrc to provide default values
- Add Settings::path() to get the default settings location
Diffstat (limited to 'src/settings/CMakeLists.txt')
-rw-r--r-- | src/settings/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/settings/CMakeLists.txt b/src/settings/CMakeLists.txt index 712fd57a..38a35cf6 100644 --- a/src/settings/CMakeLists.txt +++ b/src/settings/CMakeLists.txt @@ -15,11 +15,20 @@ add_custom_command(OUTPUT shortcutssettingswidget.cpp DEPENDS ${PROJECT_SOURCE_D --group=Shortcuts --output=shortcutssettingswidget.cpp ${PROJECT_SOURCE_DIR}/src/rekonq.kcfg) +# generate rekonqrc +execute_process( + COMMAND python3 ${PROJECT_SOURCE_DIR}/scripts/rekonf.py --group=all --output=rekonqrc ${PROJECT_SOURCE_DIR}/src/rekonq.kcfg + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + #OUTPUT rekonqrc + #DEPENDS ${PROJECT_SOURCE_DIR}/scripts/rekonf.py ${PROJECT_SOURCE_DIR}/src/rekonq.kcfg +) + add_library(settings STATIC ${PROJECT_SOURCE_DIR}/include/rsettings.hpp settings.cpp settings.hpp settingsdialog.cpp settingsdialog.h settingsdialog.ui settingswidgets.hpp settingswidget.cpp helpers.hpp generalsettingswidget.cpp appearancesettingswidget.cpp networksettingswidget.cpp shortcutssettingswidget.cpp + settings.qrc rekonqrc ) target_link_libraries(settings PUBLIC Qt6::Widgets) @@ -27,7 +36,7 @@ IF(${CMAKE_BUILD_TYPE} STREQUAL "Debug") add_executable(test_settingsdialog test/test_settingsdialog.cpp test/settings_mock.hpp) target_link_libraries(test_settingsdialog GTest::gmock settings) - add_executable(test_settings test/test_settings.cpp test/test_settings.qrc test/settings_mock.hpp) + add_executable(test_settings test/test_settings.cpp test/settings_mock.hpp) target_link_libraries(test_settings PRIVATE GTest::gtest GTest::gmock settings) - gtest_discover_tests(test_settings EXTRA_ARGS rekonqrc) + gtest_discover_tests(test_settings) endif() |