From 4bbbde203047196d9fa25aaa8a2e612b3d9e7d04 Mon Sep 17 00:00:00 2001 From: redtide Date: Thu, 11 Apr 2024 19:42:50 +0200 Subject: [PATCH] Move c files in src directory --- CMakeLists.txt | 24 +++++++++++--------- environment.c => src/environment.c | 0 environment.h => src/environment.h | 0 keyboard-layouts.c => src/keyboard-layouts.c | 0 keyboard-layouts.h => src/keyboard-layouts.h | 0 main.c => src/main.c | 0 stack-appearance.c => src/stack-appearance.c | 0 stack-appearance.h => src/stack-appearance.h | 0 stack-lang.c => src/stack-lang.c | 0 stack-lang.h => src/stack-lang.h | 0 stack-mouse.c => src/stack-mouse.c | 0 stack-mouse.h => src/stack-mouse.h | 0 state.h => src/state.h | 0 theme.c => src/theme.c | 0 theme.h => src/theme.h | 0 update.c => src/update.c | 0 update.h => src/update.h | 0 xml.c => src/xml.c | 0 xml.h => src/xml.h | 0 19 files changed, 13 insertions(+), 11 deletions(-) rename environment.c => src/environment.c (100%) rename environment.h => src/environment.h (100%) rename keyboard-layouts.c => src/keyboard-layouts.c (100%) rename keyboard-layouts.h => src/keyboard-layouts.h (100%) rename main.c => src/main.c (100%) rename stack-appearance.c => src/stack-appearance.c (100%) rename stack-appearance.h => src/stack-appearance.h (100%) rename stack-lang.c => src/stack-lang.c (100%) rename stack-lang.h => src/stack-lang.h (100%) rename stack-mouse.c => src/stack-mouse.c (100%) rename stack-mouse.h => src/stack-mouse.h (100%) rename state.h => src/state.h (100%) rename theme.c => src/theme.c (100%) rename theme.h => src/theme.h (100%) rename update.c => src/update.c (100%) rename update.h => src/update.h (100%) rename xml.c => src/xml.c (100%) rename xml.h => src/xml.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8525086..f5f99e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,14 +37,14 @@ set(PROJECT_SOURCES tweaks-qt/maindialog.ui tweaks-qt/maindialog.cpp tweaks-qt/maindialog.h - environment.c - environment.h - theme.c - theme.h - xml.c - xml.h - keyboard-layouts.c - keyboard-layouts.h + src/environment.c + src/environment.h + src/theme.c + src/theme.h + src/xml.c + src/xml.h + src/keyboard-layouts.c + src/keyboard-layouts.h ) set(PROJECT_OTHER_FILES .github/workflows/build.yml @@ -97,9 +97,11 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE PROJECT_TRANSLATION_TEST_ENABLED=${PROJECT_TRANSLATION_TEST_ENABLED} PROJECT_TRANSLATION_TEST_LANGUAGE="${PROJECT_TRANSLATION_TEST_LANGUAGE}" ) -target_include_directories(${PROJECT_NAME} PRIVATE ${GLIB_INCLUDE_DIRS}) -target_include_directories(${PROJECT_NAME} PRIVATE ${LIBXML2_INCLUDE_DIR}) - +target_include_directories(${PROJECT_NAME} PRIVATE + ${GLIB_INCLUDE_DIRS} + ${LIBXML2_INCLUDE_DIR} + src +) target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Widgets ${GLIB_LDFLAGS} diff --git a/environment.c b/src/environment.c similarity index 100% rename from environment.c rename to src/environment.c diff --git a/environment.h b/src/environment.h similarity index 100% rename from environment.h rename to src/environment.h diff --git a/keyboard-layouts.c b/src/keyboard-layouts.c similarity index 100% rename from keyboard-layouts.c rename to src/keyboard-layouts.c diff --git a/keyboard-layouts.h b/src/keyboard-layouts.h similarity index 100% rename from keyboard-layouts.h rename to src/keyboard-layouts.h diff --git a/main.c b/src/main.c similarity index 100% rename from main.c rename to src/main.c diff --git a/stack-appearance.c b/src/stack-appearance.c similarity index 100% rename from stack-appearance.c rename to src/stack-appearance.c diff --git a/stack-appearance.h b/src/stack-appearance.h similarity index 100% rename from stack-appearance.h rename to src/stack-appearance.h diff --git a/stack-lang.c b/src/stack-lang.c similarity index 100% rename from stack-lang.c rename to src/stack-lang.c diff --git a/stack-lang.h b/src/stack-lang.h similarity index 100% rename from stack-lang.h rename to src/stack-lang.h diff --git a/stack-mouse.c b/src/stack-mouse.c similarity index 100% rename from stack-mouse.c rename to src/stack-mouse.c diff --git a/stack-mouse.h b/src/stack-mouse.h similarity index 100% rename from stack-mouse.h rename to src/stack-mouse.h diff --git a/state.h b/src/state.h similarity index 100% rename from state.h rename to src/state.h diff --git a/theme.c b/src/theme.c similarity index 100% rename from theme.c rename to src/theme.c diff --git a/theme.h b/src/theme.h similarity index 100% rename from theme.h rename to src/theme.h diff --git a/update.c b/src/update.c similarity index 100% rename from update.c rename to src/update.c diff --git a/update.h b/src/update.h similarity index 100% rename from update.h rename to src/update.h diff --git a/xml.c b/src/xml.c similarity index 100% rename from xml.c rename to src/xml.c diff --git a/xml.h b/src/xml.h similarity index 100% rename from xml.h rename to src/xml.h