diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c795b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 0099a8d..488a94d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,14 @@ cmake_minimum_required(VERSION 3.5) +project(KIMA2) + if(MSVC) add_compile_options(/W4 /WX) else() add_compile_options(-W -Wall -Werror) endif() + +set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) +set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib) + +add_subdirectory(src) \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..1ea1c18 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory("core") \ No newline at end of file diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt new file mode 100644 index 0000000..57a7a7a --- /dev/null +++ b/src/core/CMakeLists.txt @@ -0,0 +1,9 @@ + +set(CORE_HEADERS + entity.h +) +set(CORE_SOURCES + entity.cpp +) + +add_library(core STATIC ${CORE_SOURCES}) \ No newline at end of file diff --git a/src/core/entity.cpp b/src/core/entity.cpp new file mode 100644 index 0000000..cb9925d --- /dev/null +++ b/src/core/entity.cpp @@ -0,0 +1,6 @@ +#include "entity.h" + +Entity::Entity() +{ + +} \ No newline at end of file diff --git a/src/core/entity.h b/src/core/entity.h new file mode 100644 index 0000000..ab68b40 --- /dev/null +++ b/src/core/entity.h @@ -0,0 +1,13 @@ +#ifndef ENTITY_H +#define ENTITY_H + +class Entity +{ +public: + Entity(); + ~Entity(); +private: + int uuid{-1}; +}; + +#endif //ENTITY_H \ No newline at end of file