-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the SFMLMath wiki!
You are welcome to contribute to this project so it will become a more complete library. This is done through filing issues, sending pull requests or just spreading the word.
Since this is a header-only library you can just save it in your include
folder or where ever you store your global C++ libraries. Typically you can find it in \usr\include
on Linux systems.
So simply store the file in \usr\include\SFMLMath.hpp
and include it in your code as usual with #include <SFMLMath.hpp>
And now you are good to go.
If you want to keep it more project local, then you can just add the file to your project folder. But keep in mind, that you have to specify it in your CMakeLists.txt by adding it to your executable like this:
add_executable(SFMLVectorMagicApp <your source files> SFMLMath/SFMLMath.hpp)
Or just include the provided CMakeLists.txt to your project's CMakeLists.txt.