Prepare the initial stubs
This commit is contained in:
parent
969e0390fd
commit
aea51d9e77
11 changed files with 104 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
build/
|
||||
.cache/
|
11
CMake/ctre.cmake
Normal file
11
CMake/ctre.cmake
Normal file
|
@ -0,0 +1,11 @@
|
|||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
ctre
|
||||
GIT_REPOSITORY https://code.3011.io/Mirrors/compile-time-regular-expressions
|
||||
GIT_TAG v3.10.0
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(
|
||||
ctre
|
||||
)
|
11
CMake/pugixml.cmake
Normal file
11
CMake/pugixml.cmake
Normal file
|
@ -0,0 +1,11 @@
|
|||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
pugixml
|
||||
GIT_REPOSITORY https://code.3011.io/Mirrors/pugixml
|
||||
GIT_TAG v1.15
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(
|
||||
pugixml
|
||||
)
|
11
CMakeLists.txt
Normal file
11
CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
|
||||
project(kanjivg-tools
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
add_subdirectory(Libraries)
|
||||
|
||||
if(PROJECT_IS_TOP_LEVEL)
|
||||
add_subdirectory(Tools)
|
||||
endif()
|
1
Libraries/CMakeLists.txt
Normal file
1
Libraries/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
|||
add_subdirectory(Kanimaji)
|
25
Libraries/Kanimaji/CMakeLists.txt
Normal file
25
Libraries/Kanimaji/CMakeLists.txt
Normal file
|
@ -0,0 +1,25 @@
|
|||
include(${PROJECT_SOURCE_DIR}/CMake/ctre.cmake)
|
||||
include(${PROJECT_SOURCE_DIR}/CMake/pugixml.cmake)
|
||||
|
||||
add_library(Kanimaji STATIC)
|
||||
|
||||
target_compile_features(Kanimaji
|
||||
PUBLIC
|
||||
cxx_std_23
|
||||
)
|
||||
|
||||
target_link_libraries(Kanimaji
|
||||
PRIVATE
|
||||
ctre
|
||||
pugixml
|
||||
)
|
||||
|
||||
target_include_directories(Kanimaji
|
||||
PUBLIC
|
||||
"Include"
|
||||
)
|
||||
|
||||
target_sources(Kanimaji
|
||||
PRIVATE
|
||||
"Source/Kanimaji.cpp"
|
||||
)
|
11
Libraries/Kanimaji/Include/Kanimaji/Kanimaji.hpp
Normal file
11
Libraries/Kanimaji/Include/Kanimaji/Kanimaji.hpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef KANIMAJI_KANIMAJI_HPP
|
||||
#define KANIMAJI_KANIMAJI_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace Kanimaji
|
||||
{
|
||||
bool Animate(const std::string& source, const std::string& destination);
|
||||
}
|
||||
|
||||
#endif // KANIMAJI_KANIMAJI_HPP
|
9
Libraries/Kanimaji/Source/Kanimaji.cpp
Normal file
9
Libraries/Kanimaji/Source/Kanimaji.cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "Kanimaji/Kanimaji.hpp"
|
||||
|
||||
namespace Kanimaji
|
||||
{
|
||||
bool Animate(const std::string& source, const std::string& destination)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
1
Tools/CMakeLists.txt
Normal file
1
Tools/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
|||
add_subdirectory(KanimajiTool)
|
16
Tools/KanimajiTool/CMakeLists.txt
Normal file
16
Tools/KanimajiTool/CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
add_executable(KanimajiTool)
|
||||
|
||||
target_compile_features(KanimajiTool
|
||||
PRIVATE
|
||||
cxx_std_23
|
||||
)
|
||||
|
||||
target_link_libraries(KanimajiTool
|
||||
PRIVATE
|
||||
Kanimaji
|
||||
)
|
||||
|
||||
target_sources(KanimajiTool
|
||||
PRIVATE
|
||||
"Main.cpp"
|
||||
)
|
6
Tools/KanimajiTool/Main.cpp
Normal file
6
Tools/KanimajiTool/Main.cpp
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <Kanimaji/Kanimaji.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue