ultimatepp/bazaar/upt/GoogleTest.upt
klugier 2b68b4cc08 Baazar: GTest: Fix issue with creating main gtest package from template.
git-svn-id: svn://ultimatepp.org/upp/trunk@11979 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-06-05 23:38:43 +00:00

27 lines
607 B
Text

template "Unit test package with Google Test" main;
option "Main package" mainPackage = 1;
option "Use Google Mock" googleMock = 1;
@@<:PACKAGE:>.cpp
??mainPackage
#include <Core/Core.h>
<:?googleMock == 0:>#include <plugin/gtest/gtest.h><:.:><:?googleMock == 1:>#include <plugin/gmock/gmock.h><:.:>
using namespace Upp;
TEST_APP_MAIN {}<:.:>
@@<:PACKAGE:>.upp
uses
Core,
plugin/gtest<:?googleMock == 0:>;<:.:><:?googleMock == 1:>,
plugin/gmock;<:.:>
file
Tests readonly separator<:?mainPackage == 0:>;<:.:><:?mainPackage:>,
Init readonly separator,
<:PACKAGE:>.cpp;
mainconfig
"" = "";
<:.:>