Mercurial > molko
view doc/docs/cmake/MolkoDefineTest.md @ 279:5217c195c5b9
core: forgot to return the path
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 15 Dec 2020 22:07:01 +0100 |
parents | c4da052c0def |
children |
line wrap: on
line source
# 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.