summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/IfacePaths/BinaryDirectoryInInterface.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-11-30 12:20:32 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-09 18:23:47 (GMT)
commitcc1520947608f5224a4fdfa94b5cb07e19e23600 (patch)
tree747fd80f92718d130a12ed8b1309ac4b3fc3f637 /Tests/RunCMake/IfacePaths/BinaryDirectoryInInterface.cmake
parentc0d8e715915f65196353c09d86d4d34fe100437f (diff)
downloadCMake-cc1520947608f5224a4fdfa94b5cb07e19e23600.zip
CMake-cc1520947608f5224a4fdfa94b5cb07e19e23600.tar.gz
CMake-cc1520947608f5224a4fdfa94b5cb07e19e23600.tar.bz2
Tests: Split part of include_directories test to a generic location.
The moved tests are related to paths in INTERFACE_INCLUDE_DIRECTORIES in general, and when exporting, and covering cases of the install location being within the build or source prefix etc. Other build properties containing paths should have similar tests, so this allows some parameterization while keeping the preparation of the various directory structures.
Diffstat (limited to 'Tests/RunCMake/IfacePaths/BinaryDirectoryInInterface.cmake')
-rw-r--r--Tests/RunCMake/IfacePaths/BinaryDirectoryInInterface.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/IfacePaths/BinaryDirectoryInInterface.cmake b/Tests/RunCMake/IfacePaths/BinaryDirectoryInInterface.cmake
new file mode 100644
index 0000000..67ee7de
--- /dev/null
+++ b/Tests/RunCMake/IfacePaths/BinaryDirectoryInInterface.cmake
@@ -0,0 +1,11 @@
+
+enable_language(CXX)
+
+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)