diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-12-29 19:20:56 -0500 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-12-29 19:20:56 -0500 |
commit | 113231d182d14c749a8399b5153939c74c16bdb4 (patch) | |
tree | 20bbf87924e0225c650fad4d1f40054f1daf4144 /Tests/CustComDepend | |
parent | a9819e1c4c9804a9803faf88ba4dff30eb9339a2 (diff) | |
download | cmake-113231d182d14c749a8399b5153939c74c16bdb4.tar.gz |
ENH: try to fix test on watcom
Diffstat (limited to 'Tests/CustComDepend')
-rw-r--r-- | Tests/CustComDepend/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/CustComDepend/bar.h | 9 | ||||
-rw-r--r-- | Tests/CustComDepend/foo.cxx | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/Tests/CustComDepend/CMakeLists.txt b/Tests/CustComDepend/CMakeLists.txt index 40d8a6ba4d..e4a3325744 100644 --- a/Tests/CustComDepend/CMakeLists.txt +++ b/Tests/CustComDepend/CMakeLists.txt @@ -1,4 +1,5 @@ project(CustComDepend) +include_directories("${CustComDepend_SOURCE_DIR}") add_definitions(-D_CRT_SECURE_NO_DEPRECATE=1) set(EXECUTABLE_OUTPUT_PATH ${CustComDepend_BINARY_DIR}/bin) add_executable(foo foo.cxx) diff --git a/Tests/CustComDepend/bar.h b/Tests/CustComDepend/bar.h new file mode 100644 index 0000000000..d462c9b5bd --- /dev/null +++ b/Tests/CustComDepend/bar.h @@ -0,0 +1,9 @@ +#ifdef _WIN32 +# ifdef bar_EXPORTS +# define BAR_EXPORT __declspec( dllexport ) +# else +# define BAR_EXPORT __declspec( dllimport ) +# endif +#else +# define BAR_EXPORT +#endif diff --git a/Tests/CustComDepend/foo.cxx b/Tests/CustComDepend/foo.cxx index 54471cca30..3c204f8a2d 100644 --- a/Tests/CustComDepend/foo.cxx +++ b/Tests/CustComDepend/foo.cxx @@ -8,7 +8,7 @@ int main(int ac, char** av) { return -1; } - fprintf(fout, "int bar(){ return 10;}\n"); + fprintf(fout, "#include <bar.h>\nBAR_EXPORT int bar(){ return 10;}\n"); fclose(fout); return 0; } |