1
0
mirror of https://github.com/wqking/eventpp.git synced 2024-12-25 23:30:49 +08:00
eventpp/doc/build_for_development.md
2024-10-25 16:07:35 +08:00

1.2 KiB

Build eventpp for development

The library itself is header only and doesn't need building.
If you want to improve eventpp, you need to build the test code.

There are three parts of code to test the library,

  • unittests: tests the library. They require C++17 since it uses generic lambda and std::any (the library itself only requires C++11).
  • tutorials: sample code to demonstrate how to use the library. They require C++11. If you want to have a quick study on how to use the library, you can look at the tutorials.
  • benchmarks: measure the library performance.

All parts are in the tests folder.

All three parts require CMake to build, and there is a makefile to ease the building.
Go to folder tests/build, then run make with different target.

  • make vc19 #generate solution files for Microsoft Visual Studio 2019, then open eventpptest.sln in folder project_vc19
  • make vc17 #generate solution files for Microsoft Visual Studio 2017, then open eventpptest.sln in folder project_vc17
  • make vc15 #generate solution files for Microsoft Visual Studio 2015, then open eventpptest.sln in folder project_vc15
  • make mingw #build using MinGW
  • make linux #build on Linux
  • make mingw_coverage #build using MinGW and generate code coverage report