diff options
author | Brad King <brad.king@kitware.com> | 2020-08-06 14:53:28 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-08-06 14:53:36 (GMT) |
commit | fdcb7483d11030fe597208843437ad6cce71ff50 (patch) | |
tree | 104cd36ae823b5f6c50e9ae875fd4cffe2acc224 /Tests/UseSWIG/NamespaceCsharp/ns_example.cpp | |
parent | 5c56aaa2848fe674e7fcdc255d72b2ea9f088d48 (diff) | |
parent | 50e53eaed903e9a7b5e69eb7825a75073b44cfe9 (diff) | |
download | CMake-fdcb7483d11030fe597208843437ad6cce71ff50.zip CMake-fdcb7483d11030fe597208843437ad6cce71ff50.tar.gz CMake-fdcb7483d11030fe597208843437ad6cce71ff50.tar.bz2 |
Merge topic 'UseSWIG-support-files-in-subdirectories'
50e53eaed9 UseSWIG: Take care of support files in sub-directories
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5097
Diffstat (limited to 'Tests/UseSWIG/NamespaceCsharp/ns_example.cpp')
-rw-r--r-- | Tests/UseSWIG/NamespaceCsharp/ns_example.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/UseSWIG/NamespaceCsharp/ns_example.cpp b/Tests/UseSWIG/NamespaceCsharp/ns_example.cpp new file mode 100644 index 0000000..a03dbad --- /dev/null +++ b/Tests/UseSWIG/NamespaceCsharp/ns_example.cpp @@ -0,0 +1,14 @@ +#include "ns_example.hpp" + +namespace ns { + +void my_class_in_namespace::add(int value) +{ + Sum += value; +} + +int my_class_in_namespace::get_sum() const +{ + return Sum; +} +} |