Adding some more initial files
This commit is contained in:
parent
57e932e3d1
commit
f1707c6598
6 changed files with 37 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
build
|
|
@ -1,7 +1,14 @@
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
|
project(KIMA2)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_compile_options(/W4 /WX)
|
add_compile_options(/W4 /WX)
|
||||||
else()
|
else()
|
||||||
add_compile_options(-W -Wall -Werror)
|
add_compile_options(-W -Wall -Werror)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
|
||||||
|
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
|
||||||
|
|
||||||
|
add_subdirectory(src)
|
1
src/CMakeLists.txt
Normal file
1
src/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
add_subdirectory("core")
|
9
src/core/CMakeLists.txt
Normal file
9
src/core/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
set(CORE_HEADERS
|
||||||
|
entity.h
|
||||||
|
)
|
||||||
|
set(CORE_SOURCES
|
||||||
|
entity.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(core STATIC ${CORE_SOURCES})
|
6
src/core/entity.cpp
Normal file
6
src/core/entity.cpp
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#include "entity.h"
|
||||||
|
|
||||||
|
Entity::Entity()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
13
src/core/entity.h
Normal file
13
src/core/entity.h
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#ifndef ENTITY_H
|
||||||
|
#define ENTITY_H
|
||||||
|
|
||||||
|
class Entity
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Entity();
|
||||||
|
~Entity();
|
||||||
|
private:
|
||||||
|
int uuid{-1};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif //ENTITY_H
|
Loading…
Reference in a new issue