Compare commits

..

4 commits

Author SHA1 Message Date
0104e72997 using boost uuid 2018-07-06 10:54:44 +02:00
60365877d6 initial commit 2018-07-06 10:54:22 +02:00
c7abfe33d6 subdir added 2018-07-06 10:53:49 +02:00
cf4c0d3ced C++17 required 2018-07-06 10:53:13 +02:00
7 changed files with 37 additions and 6 deletions

View file

@ -1,7 +1,10 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.8)
project(KIMA2)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(MSVC)
add_compile_options(/W4 /WX)
else()

View file

@ -1 +1,2 @@
add_subdirectory("core")
add_subdirectory("gui")

View file

@ -1,4 +1,7 @@
find_package(Boost 1.62 REQUIRED)
set(CORE_HEADERS
entity.h
)
@ -7,3 +10,4 @@ set(CORE_SOURCES
)
add_library(core STATIC ${CORE_SOURCES})
target_link_libraries(core Boost::boost)

View file

@ -1,6 +1,7 @@
#include "entity.h"
Entity::Entity()
{
#include <boost/uuid/uuid_generators.hpp>
Entity::Entity() : uuid(boost::uuids::random_generator()())
{
}

View file

@ -1,13 +1,18 @@
#ifndef ENTITY_H
#define ENTITY_H
#include <string>
#include <boost/uuid/uuid.hpp>
class Entity
{
public:
Entity();
~Entity();
const boost::uuids::uuid& getUuid() {return uuid;};
private:
int uuid{-1};
boost::uuids::uuid uuid;
};
#endif //ENTITY_H

10
src/gui/CMakeLists.txt Normal file
View file

@ -0,0 +1,10 @@
set(GUI_HEADERS
)
set(GUI_SOURCES
kima2.cpp
)
add_executable(kima2 ${GUI_SOURCES})
target_link_libraries(kima2 core)

7
src/gui/kima2.cpp Normal file
View file

@ -0,0 +1,7 @@
int main()
{
/* code */
return 0;
}