Skip to content

Commit

Permalink
Use .hpp everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Apr 27, 2019
1 parent a6a3b5e commit 707dc7e
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 32 deletions.
19 changes: 9 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ string(APPEND CMAKE_CXX_FLAGS " -Wall -Wextra")
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -fno-omit-frame-pointer -fsanitize=address")

add_library(${PROJECT_NAME}
include/goomy/Component.h
include/goomy/Engine.h
include/goomy/EngineBase.h
include/goomy/Component.hpp
include/goomy/Engine.hpp
include/goomy/EngineBase.hpp
src/EngineBase.cpp
include/goomy/Entity.h
include/goomy/Registry.h
include/goomy/System.h
include/goomy/Signal.h
include/goomy/Wrapper.h
include/goomy.h
include/goomy/Entity.hpp
include/goomy/Registry.hpp
include/goomy/System.hpp
include/goomy/Signal.hpp
include/goomy/Wrapper.hpp
include/goomy.hpp
)

target_include_directories(${PROJECT_NAME} PUBLIC include)
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)

add_subdirectory(examples/basic)
add_subdirectory(examples/sfml)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The framework also comes with a signaling/event system that makes use of the [de
The following example is extremely simple and really only scratches the surface of what's possible, but it should give you a basic idea of how the framework works.

```cpp
#include <goomy.h>
#include <goomy.hpp>

class Lifetime;
class TestSystem;
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <goomy.h>
#include <goomy.hpp>

class Lifetime;
class TestSystem;
Expand Down
2 changes: 1 addition & 1 deletion examples/sfml/Engine.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <goomy.h>
#include <goomy.hpp>

class AgeSystem;
class Display;
Expand Down
10 changes: 0 additions & 10 deletions include/goomy.h

This file was deleted.

10 changes: 10 additions & 0 deletions include/goomy.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#pragma once

#include "goomy/Component.hpp"
#include "goomy/Engine.hpp"
#include "goomy/EngineBase.hpp"
#include "goomy/Entity.hpp"
#include "goomy/Registry.hpp"
#include "goomy/Signal.hpp"
#include "goomy/System.hpp"
#include "goomy/Wrapper.hpp"
2 changes: 1 addition & 1 deletion include/goomy/Component.h → include/goomy/Component.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "goomy/Registry.h"
#include "goomy/Registry.hpp"

namespace goomy::internal {

Expand Down
10 changes: 5 additions & 5 deletions include/goomy/Engine.h → include/goomy/Engine.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include "goomy/EngineBase.h"
#include "goomy/Entity.h"
#include "goomy/Signal.h"
#include "goomy/System.h"
#include "goomy/Wrapper.h"
#include "goomy/EngineBase.hpp"
#include "goomy/Entity.hpp"
#include "goomy/Signal.hpp"
#include "goomy/System.hpp"
#include "goomy/Wrapper.hpp"

namespace goomy {

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion include/goomy/Entity.h → include/goomy/Entity.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "goomy/Registry.h"
#include "goomy/Registry.hpp"
#include <algorithm>
#include <type_traits>
#include <vector>
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion include/goomy/System.h → include/goomy/System.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "goomy/Signal.h"
#include "goomy/Signal.hpp"
#include <experimental/type_traits>
#include <type_traits>

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/EngineBase.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "goomy/EngineBase.h"
#include "goomy/EngineBase.hpp"

namespace goomy::internal {

Expand Down

0 comments on commit 707dc7e

Please sign in to comment.