Skip to content

Stephen-Seo/EntityComponentMetaSystem

Repository files navigation

About

EntityComponentMetaSystem is a header-only library. However, UnitTests can be built and run using cmake (gtest is a dependency no longer a dependency).

Generated Doxygen Documentation

Check this repository's gh-pages documentation on ECMS

Alternatively, check out the doxygen docs hosted on my website

Compiling the UnitTests

Create a build directory.
mkdir build

Generate makefile with CMake.
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ../src

Build the project's UnitTests.
make

Run the UnitTests.
./UnitTests

Install the Header-Only Library

mkdir build; cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../src

Install the project to where you want to.
make DESTDIR=install_here install

In this example, CMAKE_INSTALL_PREFIX=/usr, then invoking make DESTDIR=install_here install will install the src/EC directory to install_here/usr/include. The path to Manager.hpp will then look like install_here/usr/include/EC/Manager.hpp

About

Implements an Entity Component system with c++14 template-meta-programming. Loosely based off of https://www.youtube.com/watch?v=NTWSeQtHZ9M or https://github.com/SuperV1234/cppcon2015

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages