summaryrefslogtreecommitdiffstats
path: root/test cases/cmake/19 advanced options/subprojects/cmOpts/cmMod.cpp
blob: 7651b60a14b9b11c8908996c3611eeb45d03c398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "cmMod.hpp"

using namespace std;

#if __cplusplus < 201402L
#error "At least C++14 is required"
#endif

#ifndef MESON_GLOBAL_FLAG
#error "MESON_GLOBAL_FLAG was not set"
#endif

#ifndef MESON_SPECIAL_FLAG1
#error "MESON_SPECIAL_FLAG1 was not set"
#endif

#ifndef MESON_SPECIAL_FLAG2
#error "MESON_SPECIAL_FLAG2 was not set"
#endif

cmModClass::cmModClass(string foo) {
  str = foo + " World";
}

string cmModClass::getStr() const {
  return str;
}

int cmModClass::getInt() const {
  return MESON_MAGIC_INT;
}