diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-08 17:36:18 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-08 17:36:18 (GMT) |
commit | 65e3edea04fdd058719659e99a7a3da3dfb80b25 (patch) | |
tree | db1d3a1c33d40bb43c5333399163a76df7aee689 /Tests/Complex/Library/testConly.h | |
parent | 7883b6c7dc38c73638947575c75aeb06acba9c90 (diff) | |
download | CMake-65e3edea04fdd058719659e99a7a3da3dfb80b25.zip CMake-65e3edea04fdd058719659e99a7a3da3dfb80b25.tar.gz CMake-65e3edea04fdd058719659e99a7a3da3dfb80b25.tar.bz2 |
ENH: use separate vars for creating c++ and c shared libraries and add a test for c libraries
Diffstat (limited to 'Tests/Complex/Library/testConly.h')
-rw-r--r-- | Tests/Complex/Library/testConly.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/Complex/Library/testConly.h b/Tests/Complex/Library/testConly.h new file mode 100644 index 0000000..8553a6b --- /dev/null +++ b/Tests/Complex/Library/testConly.h @@ -0,0 +1,12 @@ +#if defined(_WIN32) || defined(WIN32) /* Win32 version */ +#ifdef CMakeTestLibraryShared_EXPORTS +# define CMakeTest_EXPORT __declspec(dllexport) +#else +# define CMakeTest_EXPORT __declspec(dllimport) +#endif +#else +// unix needs nothing +#define CMakeTest_EXPORT +#endif + +CMakeTest_EXPORT int CsharedFunction(); |