Setting up a C ++ project with Boost Unit Test and CMake

I am starting a new C ++ project using Boost Unit Tests and CMake. There are several modules into which the classes are divided.

  • What is the recommended framework for cpp tests, headers and modules? For both directories and namespaces.

  • How do I tell CMake to run tests?

  • Do I need to include every file in CMakeLists or can I create a global directory?

+3
c ++ boost cmake


source to share


No one has answered this question yet

See similar questions:

five
CMake: how to add Boost.Test examples with relative directories?

or similar:

91
Organizing a C ++ project (with gtest, cmake and doxygen)
78
CMake: project structure with unit tests
20
Compiling a performance improvement test with Cmake
18
Unit Test Output context and project structure --- CMake + Google Test Framework
3
Android Studio: CMake doesn't find Boost header files
2
Adding Boost to CMake project?
1
Create a cmake project testing another cmake project
1
Modular C ++ project with CMake
0
cmake error while building Boost unit tests
0
How to set up cmake for a project with multiple modules including unit test etc.



All Articles
Loading...
X
Show
Funny
Dev
Pics