Skip to content

Commit b3dc8b8

Browse files
authored
Merge pull request #7 from cpp-gamedev/pini
integrate pini
2 parents 6407666 + 6b27f33 commit b3dc8b8

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "ext/sfml"]
22
path = ext/sfml
33
url = https://github.com/SFML/SFML
4+
[submodule "ext/pini"]
5+
path = ext/pini
6+
url = https://github.com/cpp-gamedev/pini

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set(BUILD_SHARED_LIBS OFF)
55

66
project(world-clock)
77

8+
add_subdirectory(ext/pini)
89
add_subdirectory(ext/sfml)
910

1011
set(CMAKE_BUILD_TYPE Debug CACHE STRING "")
@@ -29,8 +30,8 @@ endif()
2930
# exe
3031
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS "src/*.?pp")
3132
add_executable(${PROJECT_NAME} ${SOURCES})
32-
target_include_directories(${PROJECT_NAME} PRIVATE src)
33-
target_link_libraries(${PROJECT_NAME} PRIVATE sfml-graphics)
33+
target_include_directories(${PROJECT_NAME} PRIVATE src ext/pini)
34+
target_link_libraries(${PROJECT_NAME} PRIVATE sfml-graphics pini::pini)
3435
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
3536

3637
if(CMAKE_CXX_COMPILER_ID STREQUAL MSVC)

ext/pini

Submodule pini added at 10e1b34

src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <delta_time.hpp>
66
#include <gfx/follow_eye.hpp>
77
#include <maths/maths.hpp>
8+
#include <pini/pini.hpp>
89
#include <world_clock/gui.hpp>
910
#include <world_clock/io.hpp>
1011

0 commit comments

Comments
 (0)