Adding some more initial files

allow_new_sellers
Martin Brodbeck 4 years ago
parent 57e932e3d1
commit f1707c6598
  1. 1
      .gitignore
  2. 7
      CMakeLists.txt
  3. 1
      src/CMakeLists.txt
  4. 9
      src/core/CMakeLists.txt
  5. 6
      src/core/entity.cpp
  6. 13
      src/core/entity.h

1
.gitignore vendored

@ -0,0 +1 @@
build

@ -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)

@ -0,0 +1 @@
add_subdirectory("core")

@ -0,0 +1,9 @@
set(CORE_HEADERS
entity.h
)
set(CORE_SOURCES
entity.cpp
)
add_library(core STATIC ${CORE_SOURCES})

@ -0,0 +1,6 @@
#include "entity.h"
Entity::Entity()
{
}

@ -0,0 +1,13 @@
#ifndef ENTITY_H
#define ENTITY_H
class Entity
{
public:
Entity();
~Entity();
private:
int uuid{-1};
};
#endif //ENTITY_H
Loading…
Cancel
Save