If you generated a library from your code, you probably have at least third project that will use this library to make the application. You can mark the unit test to be built first, this way you'll always have unit tests checks done each build.

Conclusion

Boost Test is now simple to use (once you found your way through their documentation or after reading this article) and provides from minimal tests to complex scenarios. You can find some more advanced features like function base test cases. I hope Boost has now been demystified for you; it's now my favorite C++ testing framework.