summaryrefslogtreecommitdiffstats
path: root/Tests/VSProjectInSubdir
diff options
context:
space:
mode:
authorPetr Kmoch <petr.kmoch@gmail.com>2013-01-03 12:43:42 (GMT)
committerBrad King <brad.king@kitware.com>2013-04-12 15:35:36 (GMT)
commit1ca93182ad37f6f90ceb0b2a5faaa21ef58ba7e2 (patch)
treeea119d9259a18571850ce9191f3d0b2057581436 /Tests/VSProjectInSubdir
parent3cd400060162a0069d5798ce8dc33f0507594938 (diff)
downloadCMake-1ca93182ad37f6f90ceb0b2a5faaa21ef58ba7e2.zip
CMake-1ca93182ad37f6f90ceb0b2a5faaa21ef58ba7e2.tar.gz
CMake-1ca93182ad37f6f90ceb0b2a5faaa21ef58ba7e2.tar.bz2
VS: Add test for building MSBuild project in subdir
Add test covering cmGlobalGenerator::GenerateBuildCommand for VS solutions with MSBuild and building a target defined in a subdirectory and not part of ALL.
Diffstat (limited to 'Tests/VSProjectInSubdir')
-rw-r--r--Tests/VSProjectInSubdir/CMakeLists.txt3
-rw-r--r--Tests/VSProjectInSubdir/subdir/CMakeLists.txt1
2 files changed, 4 insertions, 0 deletions
diff --git a/Tests/VSProjectInSubdir/CMakeLists.txt b/Tests/VSProjectInSubdir/CMakeLists.txt
new file mode 100644
index 0000000..c164a97
--- /dev/null
+++ b/Tests/VSProjectInSubdir/CMakeLists.txt
@@ -0,0 +1,3 @@
+cmake_minimum_required(VERSION 2.8.10)
+project(VSProjectInSubdir NONE)
+add_subdirectory(subdir)
diff --git a/Tests/VSProjectInSubdir/subdir/CMakeLists.txt b/Tests/VSProjectInSubdir/subdir/CMakeLists.txt
new file mode 100644
index 0000000..6c1b6a1
--- /dev/null
+++ b/Tests/VSProjectInSubdir/subdir/CMakeLists.txt
@@ -0,0 +1 @@
+add_custom_target(test COMMAND ${CMAKE_COMMAND} -E echo test VERBATIM)