diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-12-23 16:07:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-12-24 12:02:49 (GMT) |
commit | cbe7e8fae48b3663e784bb37d5f66bf8b3eb0546 (patch) | |
tree | 910046c109660f4533f0ec6ceec1de485e3032d2 /Tests/RunCMake/export/OldIface.cmake | |
parent | e73d1ad003c50730a8141db757462574c0c2dddc (diff) | |
download | CMake-cbe7e8fae48b3663e784bb37d5f66bf8b3eb0546.zip CMake-cbe7e8fae48b3663e784bb37d5f66bf8b3eb0546.tar.gz CMake-cbe7e8fae48b3663e784bb37d5f66bf8b3eb0546.tar.bz2 |
export: Implement EXPORT subcommand (#9822)
Teach the export command to handle export sets defined by invocations
of install(TARGETS ... EXPORT foo). This makes maintenance of targets
exported to both the build tree and install tree trivial.
Diffstat (limited to 'Tests/RunCMake/export/OldIface.cmake')
-rw-r--r-- | Tests/RunCMake/export/OldIface.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/export/OldIface.cmake b/Tests/RunCMake/export/OldIface.cmake new file mode 100644 index 0000000..5fb8e25 --- /dev/null +++ b/Tests/RunCMake/export/OldIface.cmake @@ -0,0 +1,10 @@ +add_library(foo empty.cpp) +export(TARGETS foo FILE "${CMAKE_CURRENT_BINARY_DIR}/foo.cmake") +install(TARGETS foo EXPORT fooExport + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) +export(EXPORT fooExport + EXPORT_LINK_INTERFACE_LIBRARIES +) |