Mercurial > molko
diff doc/docs/cmake/MolkoDefineTest.md @ 253:c4da052c0def
core: goodbye doxygen
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 03 Dec 2020 09:06:52 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/docs/cmake/MolkoDefineTest.md Thu Dec 03 09:06:52 2020 +0100 @@ -0,0 +1,26 @@ +# molko_define_test + +Create unit test. + +## Synopsis + +```cmake +molko_define_test( +TARGET target name +SOURCES src1, src2, srcn +ASSETS (Optional) list of assets to build +FLAGS (Optional) C flags (without -D) +LIBRARIES (Optional) libraries to link +INCLUDES (Optional) includes +) +``` + +Create an executable with the name *TARGET* and a test case of the same name +with the given *SOURCES*. + +Optional include paths, libraries and flags can be specified via *INCLUDES*, +*LIBRARIES* and *FLAGS* arguments respectively. + +If argument *ASSETS* is set, they are generated in the target binary +directory. +