diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2011-05-26 21:16:58 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-05-27 20:11:43 (GMT) |
commit | 7ac7b437b8bfc344e0d7e451d419596ea809d439 (patch) | |
tree | e1e52805a1958a8a4ff5b09a2e341fed05660a8e /Tests/BundleUtilities/shared.h | |
parent | ba6579f7a3a687a42572f683441f56cbc70ae928 (diff) | |
download | CMake-7ac7b437b8bfc344e0d7e451d419596ea809d439.zip CMake-7ac7b437b8bfc344e0d7e451d419596ea809d439.tar.gz CMake-7ac7b437b8bfc344e0d7e451d419596ea809d439.tar.bz2 |
BundleUtilities: Work w/ non .app exes on Mac (#12034)
Also add a test of BundleUtilities including an exe,
some shared libs, a plugin, and a framework-style lib.
This test presently runs (and this functionality works)
on Linux, Mac and Windows.
For now, the framework-style lib is built as a plain old
shared lib because there is another yet-unresolved issue
with local frameworks without rpaths on the Mac.
Diffstat (limited to 'Tests/BundleUtilities/shared.h')
-rw-r--r-- | Tests/BundleUtilities/shared.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/BundleUtilities/shared.h b/Tests/BundleUtilities/shared.h new file mode 100644 index 0000000..3588fb8 --- /dev/null +++ b/Tests/BundleUtilities/shared.h @@ -0,0 +1,17 @@ + +#ifndef shared_h +#define shared_h + +#ifdef WIN32 +# ifdef shared_EXPORTS +# define SHARED_EXPORT __declspec(dllexport) +# else +# define SHARED_EXPORT __declspec(dllimport) +# endif +#else +# define SHARED_EXPORT +#endif + +void SHARED_EXPORT shared(); + +#endif |