cmake_test/add_dir

cmake_test/add_dir.ct_add_dir(dir **kwargs)

This function will find all *.cmake files in the specified directory as well as recursively through all subdirectories. It will then configure the boilerplate template to include() each cmake file and register each configured boilerplate with CTest. The configured templates will be executed seperately via CTest during the Test phase, and each *.cmake file found in the specified directory is assumed to contain CMakeTest tests.

Parameters:

dir (path) – The directory to search for *.cmake files. Subdirectories will be recursively searched.

Keyword Arguments

Parameters:

CMAKE_OPTIONS (list) – List of additional CMake options to be passed to all test invocations. Options should follow the syntax: -D<variable_name>=<value>