summaryrefslogtreecommitdiffstats
path: root/Tests/Plugin/include
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-17 17:43:03 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-17 17:43:03 (GMT)
commitaabcf981e22a7c39bcd828bff1a4fb4345e658c9 (patch)
tree1f166f92adf72e9008bff112099dbf1e5b61d7bf /Tests/Plugin/include
parentc50dabff029b4ea5cd639189d822e3fc76a9e719 (diff)
downloadCMake-aabcf981e22a7c39bcd828bff1a4fb4345e658c9.zip
CMake-aabcf981e22a7c39bcd828bff1a4fb4345e658c9.tar.gz
CMake-aabcf981e22a7c39bcd828bff1a4fb4345e658c9.tar.bz2
ENH: Added test for executables with plugins that use an API exported by the executable itself.
Diffstat (limited to 'Tests/Plugin/include')
-rw-r--r--Tests/Plugin/include/example.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Tests/Plugin/include/example.h b/Tests/Plugin/include/example.h
new file mode 100644
index 0000000..f2af886
--- /dev/null
+++ b/Tests/Plugin/include/example.h
@@ -0,0 +1,25 @@
+#ifndef example_h
+#define example_h
+
+#if defined(_WIN32)
+# if defined(example_exe_EXPORTS)
+# define EXAMPLE_EXPORT __declspec(dllexport)
+# else
+# define EXAMPLE_EXPORT __declspec(dllimport)
+# endif
+#else
+# define EXAMPLE_EXPORT
+#endif
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+EXAMPLE_EXPORT int example_exe_function(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif