summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/EXPORT-OldIFace.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/install/EXPORT-OldIFace.cmake')
-rw-r--r--Tests/RunCMake/install/EXPORT-OldIFace.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/EXPORT-OldIFace.cmake b/Tests/RunCMake/install/EXPORT-OldIFace.cmake
new file mode 100644
index 0000000..033f684
--- /dev/null
+++ b/Tests/RunCMake/install/EXPORT-OldIFace.cmake
@@ -0,0 +1,7 @@
+enable_language(C)
+set(CMAKE_BUILD_WITH_INSTALL_RPATH 1)
+add_subdirectory(EXPORT-OldIFace)
+add_library(foo SHARED empty.c)
+target_link_libraries(foo bar)
+install(TARGETS foo DESTINATION lib EXPORT fooExport)
+install(EXPORT fooExport DESTINATION lib/cmake/foo EXPORT_LINK_INTERFACE_LIBRARIES)