diff options
author | Brad King <brad.king@kitware.com> | 2007-04-17 17:43:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-04-17 17:43:03 (GMT) |
commit | aabcf981e22a7c39bcd828bff1a4fb4345e658c9 (patch) | |
tree | 1f166f92adf72e9008bff112099dbf1e5b61d7bf /Tests/Plugin/src/example_mod_1.c | |
parent | c50dabff029b4ea5cd639189d822e3fc76a9e719 (diff) | |
download | CMake-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/src/example_mod_1.c')
-rw-r--r-- | Tests/Plugin/src/example_mod_1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/Plugin/src/example_mod_1.c b/Tests/Plugin/src/example_mod_1.c new file mode 100644 index 0000000..f96ba29 --- /dev/null +++ b/Tests/Plugin/src/example_mod_1.c @@ -0,0 +1,16 @@ +#include <example.h> + +#include <stdio.h> + +#if defined(_WIN32) +# define MODULE_EXPORT __declspec(dllexport) +#else +# define MODULE_EXPORT +#endif + +MODULE_EXPORT int example_mod_1_function() +{ + int result = example_exe_function() + 456; + printf("world\n"); + return result; +} |