diff options
author | Brad King <brad.king@kitware.com> | 2008-01-30 22:26:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-30 22:26:09 (GMT) |
commit | 109b5fc7a22b1f2e1711a7fcafff08c11f1bdb49 (patch) | |
tree | ef9f65cd1985267449764979424bacf497667498 /Tests/ExportImport/Export/testExe2lib.c | |
parent | 7902bc06aae07a9d4cde81ab41c3c86694d80a9b (diff) | |
download | CMake-109b5fc7a22b1f2e1711a7fcafff08c11f1bdb49.zip CMake-109b5fc7a22b1f2e1711a7fcafff08c11f1bdb49.tar.gz CMake-109b5fc7a22b1f2e1711a7fcafff08c11f1bdb49.tar.bz2 |
ENH: Updated ExportImport test to try LINK_INTERFACE_LIBRARIES.
Diffstat (limited to 'Tests/ExportImport/Export/testExe2lib.c')
-rw-r--r-- | Tests/ExportImport/Export/testExe2lib.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/testExe2lib.c b/Tests/ExportImport/Export/testExe2lib.c new file mode 100644 index 0000000..1991439 --- /dev/null +++ b/Tests/ExportImport/Export/testExe2lib.c @@ -0,0 +1,10 @@ +#if defined(_WIN32) || defined(__CYGWIN__) +# define testExe2lib_EXPORT __declspec(dllexport) +# define testExe2libImp_IMPORT __declspec(dllimport) +#else +# define testExe2lib_EXPORT +# define testExe2libImp_IMPORT +#endif + +testExe2libImp_IMPORT int testExe2libImp(void); +testExe2lib_EXPORT int testExe2lib(void) { return testExe2libImp(); } |