| endfunction() | endfunction() | ||||
| add_test_suite(ScopeGuardTest) | |||||
| add_test_suite(ScopeExitTest) | |||||
| add_test_suite(UniqueResourceTest) | add_test_suite(UniqueResourceTest) | ||||
| add_custom_target(unittest ScopeGuardTest | |||||
| add_custom_target(unittest ScopeExitTest | |||||
| COMMAND UniqueResourceTest | COMMAND UniqueResourceTest | ||||
| COMMENT "Running unittests\n\n" | COMMENT "Running unittests\n\n" | ||||
| VERBATIM | VERBATIM |
| * along with Scope Guard. If not, see <http://www.gnu.org/licenses/>. | * along with Scope Guard. If not, see <http://www.gnu.org/licenses/>. | ||||
| */ | */ | ||||
| #include "scope_guard.h" | |||||
| #include "scope_exit.h" | |||||
| #include <catch.hpp> | #include <catch.hpp> | ||||
| #include <trompeloeil.hpp> | #include <trompeloeil.hpp> | ||||