dawn_add_unittestΒΆ

Compile the given objects into a runnable unittest executable (.exe) and register it within CTest. Note that to enable CTest you need to call the builtin command enable_testing() in the source root.

dawn_add_unittest(NAME SOURCES DEPENDS [OUTPUT_DIR GTEST_ARGS])
NAME
Name of the unittest exectuable as well as the CMake target to build it.
SOURCES
List of source files making up the exectuable.
DEPENDS
List of external libraries and/or CMake targets to link against.
OUTPUT_DIR [optional]
Directory to place the exectuable (e.g ${CMAKE_BINARY_DIR}/bin).
GTEST_ARGS [optional]
Arguments passed to the created GTest exectuable (e.g --gtest_color=yes)