Closed NotAPenguin0 closed 2 years ago
@NotAPenguin0, thanks for the pull request. Personally, I always want to include the unit testing. Could you please make it ON
as default, so that I don't have to specify the additional option all the time?
Added :)
@NotAPenguin0, another question is, is it a cmake common practice used in other open source projects? I have never made unit test optional in any my projects.
I believe so yeah, the unit tests are mostly for library developers. As a user I prefer not to waste build time compiling and/or running tests. Adding the toggle just adds more flexibility in the end.
Thanks for the answer!
Building tests by default is not necessary, so I added a cmake
option()
commandPEGLIB_BUILD_TESTS
that can be used to toggle this on or off (default value is OFF).