From 97f67560dfe215ae42a4c1ab7f19fa1fea3b00cb Mon Sep 17 00:00:00 2001 From: redstrate <54911369+redstrate@users.noreply.github.com> Date: Mon, 28 Dec 2020 15:45:09 -0500 Subject: [PATCH] Add skeleton for future example --- CMakeLists.txt | 3 ++- example/CMakeLists.txt | 14 ++++++++++++++ example/include/example.hpp | 8 ++++++++ example/src/example.cpp | 5 +++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 example/CMakeLists.txt create mode 100644 example/include/example.hpp create mode 100644 example/src/example.cpp 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