- A C++11 compliant compiler and standard library.
- CMake
-
Clone this repository into a subfolder of your project.
git clone git://github.com/TiagoRabello/Math.git
-
Add the repository as a subfolder on CMake.
ADD_SUBDIRECTORY( Math )
-
Set Math include and library directories
INCLUDE_DIRECTORIES( ${MATH_INCLUDE_DIRS} ) LINK_DIRECTORIES ( ${MATH_LIBRARY_DIRS} )
-
Link with Math
TARGET_LINK_LIBRARIES( MyProject ${MATH_LIBRARY} )
-
Use it!
#include <Math/Point3D.h> #include <Math/Vector3D.h> struct Particle { Math::Point3D position; Math::Vector3D velocity; };