summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/IfacePaths/DirInInstallPrefix.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/DirInInstallPrefix.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/DirInInstallPrefix.cmake')
-rw-r--r--Tests/RunCMake/IfacePaths/DirInInstallPrefix.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/IfacePaths/DirInInstallPrefix.cmake b/Tests/RunCMake/IfacePaths/DirInInstallPrefix.cmake
new file mode 100644
index 0000000..fab7717
--- /dev/null
+++ b/Tests/RunCMake/IfacePaths/DirInInstallPrefix.cmake
@@ -0,0 +1,9 @@
+enable_language(CXX)
+add_library(testTarget empty.cpp)
+target_include_directories(testTarget INTERFACE "${CMAKE_INSTALL_PREFIX}/dir")
+
+install(TARGETS testTarget EXPORT testTargets
+ DESTINATION lib
+)
+
+install(EXPORT testTargets DESTINATION lib/cmake)