diff options
author | Brad King <brad.king@kitware.com> | 2009-09-01 14:38:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-01 14:38:36 (GMT) |
commit | d25912889434de4eff7ec581374d656590fce5a7 (patch) | |
tree | e9c87eb27c419a0ef5fe033eec0d0bb0dba1b69e /Tests/ExportImport/Import/A | |
parent | 0cfd8c411ff450465ad2adfca43aaeb859eee643 (diff) | |
download | CMake-d25912889434de4eff7ec581374d656590fce5a7.zip CMake-d25912889434de4eff7ec581374d656590fce5a7.tar.gz CMake-d25912889434de4eff7ec581374d656590fce5a7.tar.bz2 |
Test link multiplicity export/import
We test that LINK_INTERFACE_MULTIPLICITY propagates through export() and
install(EXPORT) into dependent projects. A simple cycle of two archives
that need to be scanned three times ensures that the importing project
uses the multiplicity correctly.
Diffstat (limited to 'Tests/ExportImport/Import/A')
-rw-r--r-- | Tests/ExportImport/Import/A/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/ExportImport/Import/A/imp_testExe1.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Tests/ExportImport/Import/A/CMakeLists.txt b/Tests/ExportImport/Import/A/CMakeLists.txt index f6536df..34b8717 100644 --- a/Tests/ExportImport/Import/A/CMakeLists.txt +++ b/Tests/ExportImport/Import/A/CMakeLists.txt @@ -29,6 +29,7 @@ target_link_libraries(imp_testExe1 exp_testLib4 exp_testLib5 exp_testLib6 + exp_testLibCycleA ) # Try building a plugin to an executable imported from the install tree. @@ -60,6 +61,7 @@ target_link_libraries(imp_testExe1b bld_testLib4 bld_testLib5 bld_testLib6 + bld_testLibCycleA ) # Try building a plugin to an executable imported from the build tree. diff --git a/Tests/ExportImport/Import/A/imp_testExe1.c b/Tests/ExportImport/Import/A/imp_testExe1.c index b690d99..451998a 100644 --- a/Tests/ExportImport/Import/A/imp_testExe1.c +++ b/Tests/ExportImport/Import/A/imp_testExe1.c @@ -6,6 +6,7 @@ extern int testLib4(); extern int testLib4lib(); extern int testLib5(); extern int testLib6(); +extern int testLibCycleA1(); /* Switch a symbol between debug and optimized builds to make sure the proper library is found from the testLib4 link interface. */ @@ -19,6 +20,6 @@ extern testLib4libcfg(void); int main() { return (testLib2() + generated_by_testExe1() + testLib3() + testLib4() - + testLib5() + testLib6() + + testLib5() + testLib6() + testLibCycleA1() + generated_by_testExe3() + testLib4lib() + testLib4libcfg()); } |