[Common] Split RGB into a new Common library
This commit is contained in:
parent
3b5eb6f1a4
commit
133c3d1a01
6 changed files with 22 additions and 6 deletions
|
@ -1,2 +1,3 @@
|
||||||
|
add_subdirectory(Common)
|
||||||
add_subdirectory(Kanimaji)
|
add_subdirectory(Kanimaji)
|
||||||
add_subdirectory(Megane)
|
add_subdirectory(Megane)
|
||||||
|
|
11
Libraries/Common/CMakeLists.txt
Normal file
11
Libraries/Common/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
add_library(KVGToolsCommon INTERFACE)
|
||||||
|
|
||||||
|
target_compile_features(KVGToolsCommon
|
||||||
|
INTERFACE
|
||||||
|
cxx_std_23
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(KVGToolsCommon
|
||||||
|
INTERFACE
|
||||||
|
"Include"
|
||||||
|
)
|
|
@ -1,11 +1,11 @@
|
||||||
#ifndef KANIMAJI_RGB_HPP
|
#ifndef KVG_TOOLS_COMMON_RGB_HPP
|
||||||
#define KANIMAJI_RGB_HPP
|
#define KVG_TOOLS_COMMON_RGB_HPP
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
||||||
namespace Kanimaji
|
namespace Common
|
||||||
{
|
{
|
||||||
namespace Implementation
|
namespace Implementation
|
||||||
{
|
{
|
||||||
|
@ -108,4 +108,4 @@ namespace Kanimaji
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // KANIMAJI_RGB_HPP
|
#endif // KVG_TOOLS_COMMON_RGB_HPP
|
|
@ -8,6 +8,9 @@ target_compile_features(Kanimaji
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(Kanimaji
|
target_link_libraries(Kanimaji
|
||||||
|
PUBLIC
|
||||||
|
KVGToolsCommon
|
||||||
|
|
||||||
PRIVATE
|
PRIVATE
|
||||||
pugixml
|
pugixml
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
#ifndef KANIMAJI_CONFIG_HPP
|
#ifndef KANIMAJI_CONFIG_HPP
|
||||||
#define KANIMAJI_CONFIG_HPP
|
#define KANIMAJI_CONFIG_HPP
|
||||||
|
|
||||||
#include "RGB.hpp"
|
#include <Common/RGB.hpp>
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
namespace Kanimaji
|
namespace Kanimaji
|
||||||
{
|
{
|
||||||
|
using Common::RGB;
|
||||||
|
|
||||||
enum class Flag {
|
enum class Flag {
|
||||||
Enable, Disable,
|
Enable, Disable,
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,7 +8,6 @@ target_compile_features(KanimajiTool
|
||||||
target_link_libraries(KanimajiTool
|
target_link_libraries(KanimajiTool
|
||||||
PRIVATE
|
PRIVATE
|
||||||
Kanimaji
|
Kanimaji
|
||||||
Megane
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_sources(KanimajiTool
|
target_sources(KanimajiTool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue