Compare commits
4 commits
f3c0ad6f4a
...
0104e72997
Author | SHA1 | Date | |
---|---|---|---|
0104e72997 | |||
60365877d6 | |||
c7abfe33d6 | |||
cf4c0d3ced |
7 changed files with 37 additions and 6 deletions
|
@ -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()
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
add_subdirectory("core")
|
||||
add_subdirectory("gui")
|
|
@ -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)
|
|
@ -1,6 +1,7 @@
|
|||
#include "entity.h"
|
||||
|
||||
Entity::Entity()
|
||||
{
|
||||
#include <boost/uuid/uuid_generators.hpp>
|
||||
|
||||
Entity::Entity() : uuid(boost::uuids::random_generator()())
|
||||
{
|
||||
}
|
|
@ -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
10
src/gui/CMakeLists.txt
Normal 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
7
src/gui/kima2.cpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
|
||||
int main()
|
||||
{
|
||||
/* code */
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue