summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport
Commit message (Collapse)AuthorAgeFilesLines
* Honor custom command dependencies on imported targets (#10395)Brad King2010-12-081-5/+45
| | | | | | | Imported targets do not themselves build, but we can follow dependencies through them to find real targets. This allows imported targets to depend on custom targets that provide the underlying files at build time.
* Allow add_dependencies() on imported targets (#10395)Brad King2010-11-192-1/+17
| | | | | | | Imported targets do not themselves build, but we can follow dependencies through them to find real targets. This allows imported targets to depend on custom targets that provide the underlying files at build time.
* Test link multiplicity export/importBrad King2009-09-019-1/+26
| | | | | | | 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.
* COMP: Shorten ExportImport test command linesBrad King2009-07-142-22/+20
| | | | | | | | | | The ExportImport test drives its Export and Import projects using the same compiler and flags. This converts the ctest --build-and-test command lines to use an initial cache file instead of passing all settings on the command line. We need a shorter command line to pass through VS 6 on Win98. This approach reduces duplicate code anyway.
* COMP: Fix ExportImport testLib6 on VS6Brad King2009-07-132-1/+1
| | | | | The compiler does not support multiple source files differing only by extension in one target. This renames the C source file in the test.
* ENH: Test export/import of link interface languagesBrad King2009-07-117-22/+42
| | | | | | | This extends the ExportImport test. The Export project creates a C++ static library and exports it. Then the Import project links the library into a C executable. On most platforms the executable will link only if the C++ linker is chosen correctly.
* ENH: Remove CMAKE_ANSI_CFLAGS from testsBrad King2009-07-082-10/+0
| | | | | As of CMake 2.6 this variable is not defined, and the ANSI flags for the HP compiler are simply hard-coded in the default C flags.
* ENH: Allow more specification of target file namesBrad King2009-05-011-0/+9
| | | | | | | | | | | | | | This creates target properties ARCHIVE_OUTPUT_NAME, LIBRARY_OUTPUT_NAME, and RUNTIME_OUTPUT_NAME, and per-configuration equivalent properties ARCHIVE_OUTPUT_NAME_<CONFIG>, LIBRARY_OUTPUT_NAME_<CONFIG>, and RUNTIME_OUTPUT_NAME_<CONFIG>. They allow specification of target output file names on a per-type, per-configuration basis. For example, a .dll and its .lib import library may have different base names. For consistency and to avoid ambiguity, the old <CONFIG>_OUTPUT_NAME property is now also available as OUTPUT_NAME_<CONFIG>. See issue #8920.
* ENH: Allow IMPORTED_IMPLIB w/o IMPORTED_LOCATIONBrad King2009-04-084-3/+36
| | | | | | Linking to a Windows shared library (.dll) requires only its import library (.lib). This teaches CMake to recognize SHARED IMPORTED library targets that set only IMPORTED_IMPLIB and not IMPORTED_LOCATION.
* ENH: Test transitive link to subdir-imported libBrad King2009-04-066-62/+97
| | | | | This tests linking to an imported target that is not visible but is a transitive dependency of a target that is visible. See issue #8843.
* ENH: Allow a custom list of debug configurationsBrad King2008-09-042-2/+11
| | | | | | Create a DEBUG_CONFIGURATIONS global property as a way for projects to specify which configuration names are considered to be 'debug' configurations.
* ENH: Make link interface mode more distinctBrad King2008-08-181-1/+2
| | | | | | | | | Rename the recently added INTERFACE mode of the target_link_libraries() command to LINK_INTERFACE_LIBRARIES. This makes it much more distinct from a normal call to the command, and clearly states its connection to the property of the same name. Also require the option to appear immediately after the target name to make it a mode rather than an option.
* BUG: Fix ExportImport test on VS6Brad King2008-08-123-2/+10
| | | | | Visual Studio 6 does not support per-target object files, so just use two separate source file names in this case.
* ENH: Test target_link_libraries INTERFACE optionBrad King2008-08-116-2/+63
|
* ENH: preclean some warningsKen Martin2008-03-253-0/+3
|
* ENH: Improve exporting/importing of targetsBrad King2008-02-061-1/+4
| | | | | - Use real name instead of link for location of versioned targets - Error when a target is exported multiple times
* COMP: Convert C function prototypes to use (void) instead of ().Brad King2008-02-034-5/+5
|
* BUG: Remove InstallNameFixupPath from cmTarget and cmInstallTargetGenerator.Brad King2008-02-011-8/+8
| | | | | | | | | - Motivation: - It depended on the order of installation - It supported only a single destination for each target - It created directory portions of an install name without user request - Updated ExportImport test to install targets in an order that expoed this bug
* ENH: Update ExportImport test to enforce dependent library pathsBrad King2008-02-012-0/+11
| | | | | - Build without rpaths - Place implementation libs in separate directories
* ENH: Support linking to shared libs with dependent libsBrad King2008-01-311-10/+5
| | | | | | | | | - Split IMPORTED_LINK_LIBRARIES into two parts: IMPORTED_LINK_INTERFACE_LIBRARIES IMPORTED_LINK_DEPENDENT_LIBRARIES - Add CMAKE_DEPENDENT_SHARED_LIBRARY_MODE to select behavior - Set mode to LINK for Darwin (fixes universal binary problem) - Update ExportImport test to account for changes
* ENH: Updated ExportImport test to try LINK_INTERFACE_LIBRARIES.Brad King2008-01-307-14/+59
|
* BUG: Custom command driver outputs must be SYMBOLIC since no corresponding ↵Brad King2008-01-291-0/+12
| | | | file is created.
* BUG: Make sure CMAKE_INSTALL_PREFIX stays in subproject caches.Brad King2008-01-291-2/+2
|
* ENH: Support exporting/importing of AppBundle targets.Brad King2008-01-284-3/+45
| | | | | | | | - Imported bundles have the MACOSX_BUNDLE property set - Added cmTarget::IsAppBundleOnApple method to simplify checks - Document BUNDLE keyword in INSTALL command - Updated IMPORTED_LOCATION property documentation for bundles - Updated ExportImport test to test bundles
* BUG: Fix export/import file generation to not store link dependencies of ↵Brad King2008-01-283-1/+6
| | | | executables or modules.
* ENH: Restored APPEND option to EXPORT() command in new implementation.Brad King2008-01-281-1/+5
|
* ENH: Added framework to ExportImport test.Brad King2008-01-284-5/+17
|
* ENH: Added ExportImport test to test new export/import features.Brad King2008-01-2811-0/+223