meson/test cases/cmake/8 custom command/subprojects/cmMod/cmMod.cpp

23 lines
359 B
C++
Raw Normal View History

2019-06-28 19:21:58 +08:00
#include "cmMod.hpp"
#include "genTest.hpp"
#include "cpyBase.hpp"
#include "cmModLib.hpp"
#ifndef FOO
#error FOO not declared
#endif
2019-06-28 19:21:58 +08:00
using namespace std;
cmModClass::cmModClass(string foo) {
str = foo + " World";
}
string cmModClass::getStr() const {
return str;
}
string cmModClass::getOther() const {
return getStr() + " -- " + getStrCpy();
}