summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VS10Project/VsCSharpDeployFiles.cmake
diff options
context:
space:
mode:
authorWil Stark <wil_stark@keysight.com>2018-12-06 20:04:41 (GMT)
committerWil Stark <wil_stark@keysight.com>2018-12-07 17:01:32 (GMT)
commitb5b63da0883bdd3487e7a3b423acbdd5b582326a (patch)
treee2dddd42b07a90c31df267e28c991b6a0c11a48e /Tests/RunCMake/VS10Project/VsCSharpDeployFiles.cmake
parent81bea69bd1d52977c3782d26560f34563394f487 (diff)
downloadCMake-b5b63da0883bdd3487e7a3b423acbdd5b582326a.zip
CMake-b5b63da0883bdd3487e7a3b423acbdd5b582326a.tar.gz
CMake-b5b63da0883bdd3487e7a3b423acbdd5b582326a.tar.bz2
VS: Fix Deploy content in .csproj files
Diffstat (limited to 'Tests/RunCMake/VS10Project/VsCSharpDeployFiles.cmake')
-rw-r--r--Tests/RunCMake/VS10Project/VsCSharpDeployFiles.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/Tests/RunCMake/VS10Project/VsCSharpDeployFiles.cmake b/Tests/RunCMake/VS10Project/VsCSharpDeployFiles.cmake
new file mode 100644
index 0000000..cb77fa7
--- /dev/null
+++ b/Tests/RunCMake/VS10Project/VsCSharpDeployFiles.cmake
@@ -0,0 +1,27 @@
+enable_language(CSharp)
+
+set(fileNames
+ "${CMAKE_CURRENT_BINARY_DIR}/content1.txt"
+ "${CMAKE_CURRENT_BINARY_DIR}/content2.txt"
+ "${CMAKE_CURRENT_BINARY_DIR}/content3.txt")
+
+foreach(f ${fileNames})
+ message(STATUS "touch ${f}")
+ file(TOUCH ${f})
+endforeach()
+
+set_source_files_properties( "${CMAKE_CURRENT_BINARY_DIR}/content1.txt"
+ PROPERTIES
+ VS_COPY_TO_OUT_DIR PreserveNewest
+)
+
+set_source_files_properties( "${CMAKE_CURRENT_BINARY_DIR}/content2.txt"
+ PROPERTIES
+ VS_COPY_TO_OUT_DIR Always
+)
+
+
+add_library(foo SHARED
+ foo.cs
+ ${fileNames}
+)