summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/InterfaceLibrary/IncludeDirectories.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/InterfaceLibrary/IncludeDirectories.cmake')
-rw-r--r--Tests/RunCMake/InterfaceLibrary/IncludeDirectories.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/InterfaceLibrary/IncludeDirectories.cmake b/Tests/RunCMake/InterfaceLibrary/IncludeDirectories.cmake
new file mode 100644
index 0000000..b94eac0
--- /dev/null
+++ b/Tests/RunCMake/InterfaceLibrary/IncludeDirectories.cmake
@@ -0,0 +1,7 @@
+cmake_policy(SET CMP0076 NEW)
+include_directories(Inc1 Inc2)
+add_library(iface INTERFACE)
+target_sources(iface PRIVATE iface.c)
+# Ensure the INCLUDE_DIRECTORIES property is populated.
+# Since interface libraries do not actually compile anything, this should be ignored.
+set_property(TARGET iface APPEND PROPERTY INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/Inc3 ${CMAKE_CURRENT_SOURCE_DIR}/Inc4)