diff --git a/gdextension/SConstruct b/gdextension/SConstruct index aeba23f..9fa7767 100644 --- a/gdextension/SConstruct +++ b/gdextension/SConstruct @@ -1,8 +1,9 @@ env = SConscript("godot-cpp/SConstruct") -env.Append(CPPPATH="src/") +env.Append(CPPPATH=["src/","include/"]) src = Glob("src/*.cpp") +headers = Glob("include/*.hpp") if env["platform"] == "linux": pass diff --git a/gdextension/src/register_types.h b/gdextension/include/register_types.hpp similarity index 75% rename from gdextension/src/register_types.h rename to gdextension/include/register_types.hpp index d7c328b..b806079 100644 --- a/gdextension/src/register_types.h +++ b/gdextension/include/register_types.hpp @@ -3,8 +3,8 @@ * This is free and unencumbered software released into the public domain. */ -#ifndef EXAMPLE_REGISTER_TYPES_H -#define EXAMPLE_REGISTER_TYPES_H +#ifndef EXAMPLE_REGISTER_TYPES_HPP +#define EXAMPLE_REGISTER_TYPES_HPP #include @@ -13,4 +13,4 @@ using namespace godot; void initialize_test_module(ModuleInitializationLevel p_level); void uninitialize_test_module(ModuleInitializationLevel p_level); -#endif // EXAMPLE_REGISTER_TYPES_H +#endif // EXAMPLE_REGISTER_TYPES_HPP diff --git a/gdextension/src/test.h b/gdextension/include/test.hpp similarity index 85% rename from gdextension/src/test.h rename to gdextension/include/test.hpp index 692d4b1..221a8b9 100644 --- a/gdextension/src/test.h +++ b/gdextension/include/test.hpp @@ -1,5 +1,5 @@ -#ifndef TEST_H -#define TEST_H +#ifndef TEST_HPP +#define TEST_HPP #include diff --git a/gdextension/src/register_types.cpp b/gdextension/src/register_types.cpp index d0ab6b5..e8c974d 100644 --- a/gdextension/src/register_types.cpp +++ b/gdextension/src/register_types.cpp @@ -3,7 +3,7 @@ * This is free and unencumbered software released into the public domain. */ -#include "register_types.h" +#include "register_types.hpp" #include @@ -11,7 +11,7 @@ #include #include -#include "test.h" +#include "test.hpp" using namespace godot; diff --git a/gdextension/src/test.cpp b/gdextension/src/test.cpp index d1bf2c4..ba8fd1f 100644 --- a/gdextension/src/test.cpp +++ b/gdextension/src/test.cpp @@ -1,4 +1,4 @@ -#include "test.h" +#include "test.hpp" #include