Skip to content

Documentation on how to build CMake header only libb #3

Description

@annell

I think you could actually clarify a little on how to link up against this library in your wiki page.
Have a look at how I did for https://github.com/annell/physim-cpp

Essentially:

  1. Clone the subrepo
  2. Add the subdirectory with add_directory()
  3. Link up against your math library using target_link_library(.... SFMLMath)
  4. Include it where you want to use it in your project using #include <SFMLMath.h>

Sorry for being picky... 😅 But it's a shame when you have all the pieces there to not share how to include it correctly!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions