summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/export/DependOnDoubleExport.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-06-27 12:50:57 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2019-06-27 14:57:34 (GMT)
commit27d6e51ae9b57657289a4db6092d8a47472b842e (patch)
treec874f3bda593a598aff2696e2abf81148fca6c1f /Tests/RunCMake/export/DependOnDoubleExport.cmake
parent49cfd390075ba1f92aa96bbf3d3510a813e0b068 (diff)
downloadCMake-27d6e51ae9b57657289a4db6092d8a47472b842e.zip
CMake-27d6e51ae9b57657289a4db6092d8a47472b842e.tar.gz
CMake-27d6e51ae9b57657289a4db6092d8a47472b842e.tar.bz2
Tests: add tests for export set error messages
Diffstat (limited to 'Tests/RunCMake/export/DependOnDoubleExport.cmake')
-rw-r--r--Tests/RunCMake/export/DependOnDoubleExport.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/export/DependOnDoubleExport.cmake b/Tests/RunCMake/export/DependOnDoubleExport.cmake
new file mode 100644
index 0000000..8d108d7
--- /dev/null
+++ b/Tests/RunCMake/export/DependOnDoubleExport.cmake
@@ -0,0 +1,7 @@
+add_library(doubleexported INTERFACE)
+install(TARGETS doubleexported EXPORT exportset)
+export(TARGETS doubleexported FILE "${CMAKE_CURRENT_BINARY_DIR}/manual.cmake")
+export(EXPORT exportset FILE "${CMAKE_CURRENT_BINARY_DIR}/exportset.cmake")
+add_library(exported INTERFACE)
+target_link_libraries(exported INTERFACE doubleexported)
+export(TARGETS exported FILE "${CMAKE_CURRENT_BINARY_DIR}/exports.cmake")