summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport/Import
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-28 18:06:17 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-28 18:06:17 (GMT)
commit611bff2c1b8a0ce533d92662504a391c9e3d494b (patch)
treec0d1f7c40a01480c3769822dd9a24b7ec05dd418 /Tests/ExportImport/Import
parent28ea03473785eddce544704306a239407a8f79bb (diff)
downloadCMake-611bff2c1b8a0ce533d92662504a391c9e3d494b.zip
CMake-611bff2c1b8a0ce533d92662504a391c9e3d494b.tar.gz
CMake-611bff2c1b8a0ce533d92662504a391c9e3d494b.tar.bz2
ENH: Added framework to ExportImport test.
Diffstat (limited to 'Tests/ExportImport/Import')
-rw-r--r--Tests/ExportImport/Import/CMakeLists.txt4
-rw-r--r--Tests/ExportImport/Import/imp_testExe1.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/Tests/ExportImport/Import/CMakeLists.txt b/Tests/ExportImport/Import/CMakeLists.txt
index 4c19819..e6be1a8 100644
--- a/Tests/ExportImport/Import/CMakeLists.txt
+++ b/Tests/ExportImport/Import/CMakeLists.txt
@@ -24,7 +24,7 @@ add_executable(imp_testExe1
)
# Try linking to a library imported from the install tree.
-target_link_libraries(imp_testExe1 exp_testLib2 exp_testLib3)
+target_link_libraries(imp_testExe1 exp_testLib2 exp_testLib3 exp_testLib4)
# Try building a plugin to an executable imported from the install tree.
add_library(imp_mod1 MODULE imp_mod1.c)
@@ -43,7 +43,7 @@ add_executable(imp_testExe1b
)
# Try linking to a library imported from the build tree.
-target_link_libraries(imp_testExe1b bld_testLib2 bld_testLib3)
+target_link_libraries(imp_testExe1b bld_testLib2 bld_testLib3 bld_testLib4)
# Try building a plugin to an executable imported from the build tree.
add_library(imp_mod1b MODULE imp_mod1.c)
diff --git a/Tests/ExportImport/Import/imp_testExe1.c b/Tests/ExportImport/Import/imp_testExe1.c
index da51ddc..52ad8ff 100644
--- a/Tests/ExportImport/Import/imp_testExe1.c
+++ b/Tests/ExportImport/Import/imp_testExe1.c
@@ -1,8 +1,9 @@
extern int generated_by_testExe1();
extern int testLib2();
extern int testLib3();
+extern int testLib4();
int main()
{
- return testLib2() + generated_by_testExe1() + testLib3();
+ return testLib2() + generated_by_testExe1() + testLib3() + testLib4();
}