summaryrefslogtreecommitdiff
path: root/Help/guide/tutorial/Step12/MathFunctions/MathFunctions.h
diff options
context:
space:
mode:
authorBetsy McPhail <betsy.mcphail@kitware.com>2020-01-08 12:36:47 -0500
committerBetsy McPhail <betsy.mcphail@kitware.com>2020-01-10 11:37:54 -0500
commit77b515f3eb0494721824e7ee47e32621b947c67f (patch)
tree488a67b9e80de4d9ffd266bd196acd535c333862 /Help/guide/tutorial/Step12/MathFunctions/MathFunctions.h
parent3a510a47b00ab4442ec0a983748f745190fe8b03 (diff)
downloadcmake-77b515f3eb0494721824e7ee47e32621b947c67f.tar.gz
Tutorial: Improve "MultiPackage" example
Rename to Step 12 and ensure that it follows Step 11
Diffstat (limited to 'Help/guide/tutorial/Step12/MathFunctions/MathFunctions.h')
-rw-r--r--Help/guide/tutorial/Step12/MathFunctions/MathFunctions.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Help/guide/tutorial/Step12/MathFunctions/MathFunctions.h b/Help/guide/tutorial/Step12/MathFunctions/MathFunctions.h
new file mode 100644
index 0000000000..3fb547b4a6
--- /dev/null
+++ b/Help/guide/tutorial/Step12/MathFunctions/MathFunctions.h
@@ -0,0 +1,14 @@
+
+#if defined(_WIN32)
+# if defined(EXPORTING_MYMATH)
+# define DECLSPEC __declspec(dllexport)
+# else
+# define DECLSPEC __declspec(dllimport)
+# endif
+#else // non windows
+# define DECLSPEC
+#endif
+
+namespace mathfunctions {
+double DECLSPEC sqrt(double x);
+}