...
<CPPTEST_INSTALL_DIR>/integration/cmake/cmake/cpptest.cmake
– the C/C++test extension for CMake you need to add to theCMakeFiles.txt
build file to provide the C/C++test project definition.<CPPTEST_INSTALL_DIR>/integration/cmake/cmake/cpptest.templates/*.in
– a set of C/C++test templates for automatically generated project definition files that allows you to highly customize the extension for CMake.
...
To enable CMake to automatically generate C/C++test project files, you must define a target that represents your C/C++test project in the cpptest_add_executable()
function. At a minimum, you must must configure:
- the name of the targertarget.
- all the source files you want to add to the C/C++test project.
- build options and dependencies (external libraries) using regular CMake functions, such as
target_include_directories()
ortarget_link_libraries()
.
...