diff --git a/CMakeLists.txt b/CMakeLists.txt index f3c4c2d..eef4528 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,4 +76,5 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) source_group(Shaders shaders) add_subdirectory(engine) -add_subdirectory(tools) \ No newline at end of file +add_subdirectory(tools) +add_subdirectory(example) \ No newline at end of file diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt new file mode 100644 index 0000000..ee7ec40 --- /dev/null +++ b/example/CMakeLists.txt @@ -0,0 +1,14 @@ +set(SRC + include/example.hpp + src/example.cpp) + +add_platform_executable( + TARGET ExampleApp + APP_CLASS ExampleApp + APP_INCLUDE example.hpp + SRC ${SRC}) +target_link_libraries(ExampleApp PUBLIC + Core) +target_include_directories(ExampleApp PUBLIC + include) +set_engine_properties(ExampleApp) \ No newline at end of file diff --git a/example/include/example.hpp b/example/include/example.hpp new file mode 100644 index 0000000..2767690 --- /dev/null +++ b/example/include/example.hpp @@ -0,0 +1,8 @@ +#pragma once + +#include "app.hpp" + +class ExampleApp : public App { +public: + +}; \ No newline at end of file diff --git a/example/src/example.cpp b/example/src/example.cpp new file mode 100644 index 0000000..1dbb56b --- /dev/null +++ b/example/src/example.cpp @@ -0,0 +1,5 @@ +#include "example.hpp" + +void app_main(Engine* engine) { + +} \ No newline at end of file