Skip to content

Commit b750c0b

Browse files
committed
Add str_format as submodule
1 parent 0148f58 commit b750c0b

File tree

8 files changed

+14
-42
lines changed

8 files changed

+14
-42
lines changed

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,9 @@ venv/
368368

369369
# project-specific files and directories
370370
assets/
371-
manifest.json
371+
manifest.json
372+
373+
# VSCode, clangd etc
374+
.vscode/
375+
.cache/
376+
compile_commands.json

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "libs/djson"]
22
path = libs/djson
33
url = https://github.com/karnkaul/djson
4+
[submodule "libs/include/str_format"]
5+
path = libs/include/str_format
6+
url = https://github.com/karnkaul/str-format

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/*.*
3232
add_subdirectory(libs/djson)
3333

3434
add_executable(${PROJECT_NAME} ${SOURCES})
35+
target_include_directories(${PROJECT_NAME} PRIVATE libs/include)
3536

3637
if(CMAKE_CXX_COMPILER_ID STREQUAL Clang OR CMAKE_CXX_COMPILER_ID STREQUAL GNU)
3738
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra)

libs/include/str_format

Submodule str_format added at 123b3a8

src/anim.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <vector>
66
#include "models.hpp"
77
#include "utils.hpp"
8-
#include "str_format.hpp"
8+
#include <str_format/str_format.hpp>
99

1010
std::vector<std::string> gen_healthbar(Pokemon& pkmn)
1111
{

src/models.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <numeric>
44
#include <vector>
55
#include "utils.hpp"
6-
#include "str_format.hpp"
6+
#include <str_format/str_format.hpp>
77
#include <dumb_json/djson.hpp>
88

99
Move::Move(std::string name, MoveType type, int accuracy, int effect_chance, int power, std::string flavor_text)

src/str_format.hpp

-38
This file was deleted.

src/utils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <string>
99
#include <thread>
1010
#include "utils.hpp"
11-
#include "str_format.hpp"
11+
#include <str_format/str_format.hpp>
1212
#include <dumb_json/djson.hpp>
1313

1414
void clear_screen()

0 commit comments

Comments
 (0)