summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/include_directories/BinaryDirectoryInInterface.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/include_directories/BinaryDirectoryInInterface.cmake')
-rw-r--r--Tests/RunCMake/include_directories/BinaryDirectoryInInterface.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/include_directories/BinaryDirectoryInInterface.cmake b/Tests/RunCMake/include_directories/BinaryDirectoryInInterface.cmake
new file mode 100644
index 000000000..875454029
--- /dev/null
+++ b/Tests/RunCMake/include_directories/BinaryDirectoryInInterface.cmake
@@ -0,0 +1,11 @@
+
+project(BinaryDirectoryInInterface)
+
+add_library(testTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
+target_include_directories(testTarget INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/foo")
+
+install(TARGETS testTarget EXPORT testTargets
+ DESTINATION lib
+)
+
+install(EXPORT testTargets DESTINATION lib/cmake)