summaryrefslogtreecommitdiffstats
path: root/Tests/IncludeDirectories
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-10-12 15:17:30 (GMT)
committerBrad King <brad.king@kitware.com>2012-10-17 20:21:12 (GMT)
commit145a4af8d3812fbd6a28f27e6fd4bb4d60d715af (patch)
tree270027ee7d1da41684b72a1b7f9ac84b3db27d9d /Tests/IncludeDirectories
parente2d141d47410ad17ba2b63fd32a61cead8a50606 (diff)
downloadCMake-145a4af8d3812fbd6a28f27e6fd4bb4d60d715af.zip
CMake-145a4af8d3812fbd6a28f27e6fd4bb4d60d715af.tar.gz
CMake-145a4af8d3812fbd6a28f27e6fd4bb4d60d715af.tar.bz2
GenEx: Test the use of generator expressions to generate lists.
We can't test this in the GeneratorExpression unit test because the ';' chars are processed specically by the CMake function argument parser.
Diffstat (limited to 'Tests/IncludeDirectories')
-rw-r--r--Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt4
-rw-r--r--Tests/IncludeDirectories/TargetIncludeDirectories/main.cpp2
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt b/Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt
index 4b6f682..d71f92e 100644
--- a/Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt
+++ b/Tests/IncludeDirectories/TargetIncludeDirectories/CMakeLists.txt
@@ -15,6 +15,8 @@ create_header(baz)
create_header(bang)
create_header(bing)
create_header(bung)
+create_header(arguments)
+create_header(list)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -30,3 +32,5 @@ set_property(TARGET TargetIncludeDirectories APPEND PROPERTY
include_directories("${CMAKE_CURRENT_BINARY_DIR}/baz")
include_directories("$<1:${CMAKE_CURRENT_BINARY_DIR}/bung>")
include_directories("sing$<1:/ting>")
+
+include_directories("$<1:${CMAKE_CURRENT_BINARY_DIR}/arguments;${CMAKE_CURRENT_BINARY_DIR}/list>")
diff --git a/Tests/IncludeDirectories/TargetIncludeDirectories/main.cpp b/Tests/IncludeDirectories/TargetIncludeDirectories/main.cpp
index 63217f4..030bb1c 100644
--- a/Tests/IncludeDirectories/TargetIncludeDirectories/main.cpp
+++ b/Tests/IncludeDirectories/TargetIncludeDirectories/main.cpp
@@ -7,6 +7,8 @@
#include "bing.h"
#include "bung.h"
#include "ting.h"
+#include "arguments.h"
+#include "list.h"
int main(int, char**)
{