[Common] Split RGB into a new Common library

This commit is contained in:
TennesseeTrash 2025-06-14 19:52:18 +02:00
parent 3b5eb6f1a4
commit 133c3d1a01
6 changed files with 22 additions and 6 deletions

View file

@ -1,2 +1,3 @@
add_subdirectory(Common)
add_subdirectory(Kanimaji)
add_subdirectory(Megane)

View file

@ -0,0 +1,11 @@
add_library(KVGToolsCommon INTERFACE)
target_compile_features(KVGToolsCommon
INTERFACE
cxx_std_23
)
target_include_directories(KVGToolsCommon
INTERFACE
"Include"
)

View file

@ -1,11 +1,11 @@
#ifndef KANIMAJI_RGB_HPP
#define KANIMAJI_RGB_HPP
#ifndef KVG_TOOLS_COMMON_RGB_HPP
#define KVG_TOOLS_COMMON_RGB_HPP
#include <cstdint>
#include <string>
#include <string_view>
namespace Kanimaji
namespace Common
{
namespace Implementation
{
@ -108,4 +108,4 @@ namespace Kanimaji
};
}
#endif // KANIMAJI_RGB_HPP
#endif // KVG_TOOLS_COMMON_RGB_HPP

View file

@ -8,6 +8,9 @@ target_compile_features(Kanimaji
)
target_link_libraries(Kanimaji
PUBLIC
KVGToolsCommon
PRIVATE
pugixml
)

View file

@ -1,13 +1,15 @@
#ifndef KANIMAJI_CONFIG_HPP
#define KANIMAJI_CONFIG_HPP
#include "RGB.hpp"
#include <Common/RGB.hpp>
#include <chrono>
#include <functional>
namespace Kanimaji
{
using Common::RGB;
enum class Flag {
Enable, Disable,
};

View file

@ -8,7 +8,6 @@ target_compile_features(KanimajiTool
target_link_libraries(KanimajiTool
PRIVATE
Kanimaji
Megane
)
target_sources(KanimajiTool