From e3590405584d70c39bef7b87bb2fdbaa6128a0d0 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Sat, 27 May 2023 19:33:00 -0400 Subject: [PATCH] src: Move tzdb2nx to its own directory --- src/CMakeLists.txt | 7 ++----- src/tzdb2nx/CMakeLists.txt | 4 ++++ src/{ => tzdb2nx}/main.cpp | 0 src/{ => tzdb2nx}/tzif.cpp | 0 src/{ => tzdb2nx}/tzif.h | 0 5 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 src/tzdb2nx/CMakeLists.txt rename src/{ => tzdb2nx}/main.cpp (100%) rename src/{ => tzdb2nx}/tzif.cpp (100%) rename src/{ => tzdb2nx}/tzif.h (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index acdb0e3..dcfc32f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,9 +5,6 @@ add_compile_options( -Werror=shadow ) -add_executable(tzdb2nx - main.cpp - tzif.cpp - tzif.h) - include_directories(.) + +add_subdirectory(tzdb2nx) diff --git a/src/tzdb2nx/CMakeLists.txt b/src/tzdb2nx/CMakeLists.txt new file mode 100644 index 0000000..9d2b034 --- /dev/null +++ b/src/tzdb2nx/CMakeLists.txt @@ -0,0 +1,4 @@ +add_executable(tzdb2nx + main.cpp + tzif.cpp + tzif.h) diff --git a/src/main.cpp b/src/tzdb2nx/main.cpp similarity index 100% rename from src/main.cpp rename to src/tzdb2nx/main.cpp diff --git a/src/tzif.cpp b/src/tzdb2nx/tzif.cpp similarity index 100% rename from src/tzif.cpp rename to src/tzdb2nx/tzif.cpp diff --git a/src/tzif.h b/src/tzdb2nx/tzif.h similarity index 100% rename from src/tzif.h rename to src/tzdb2nx/tzif.h