Skip to content

Coollab-Art/library-template

Repository files navigation

mylib

Including

To add this library to your project, simply add these two lines to your CMakeLists.txt:

add_subdirectory(path/to/mylib)
target_link_libraries(${PROJECT_NAME} PRIVATE mylib::mylib)

Then include it as:

#include "mylib/mylib.hpp"

Running the tests

Simply use "tests/CMakeLists.txt" to generate a project, then run it.
If you are using VSCode and the CMake extension, this project already contains a .vscode/settings.json that will use the right CMakeLists.txt automatically.

About

Simple template to start writing a C++ library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors 2

  •  
  •