You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add cmake target - doctest implementation as static library
I am using doctest in several projects ( at home and at work ). As number of tests grow, compile time grows, because doctest implementation is compiled multiple times. In order to save compile time, I created a static library and linked it in all my tests executables. I want to move build of this static library in doctest repo, so I can reuse it all my projects.
My workflow is as follows (doctest is submodule in my git repo)
In my main CMakeLists.txt
SET(DOCTEST_WITH_TESTS OFF CACHE BOOL "Build tests/examples" FORCE)
add_subdirectory(doctest)
Add cmake target - doctest implementation as static library
I am using doctest in several projects ( at home and at work ). As number of tests grow, compile time grows, because doctest implementation is compiled multiple times. In order to save compile time, I created a static library and linked it in all my tests executables. I want to move build of this static library in doctest repo, so I can reuse it all my projects.
My workflow is as follows (doctest is submodule in my git repo)
In my main CMakeLists.txt
Adding Unit test whenever is needed
The text was updated successfully, but these errors were encountered: