blob: 96be54b06b58c1715e5c3a16ddad6dbb0c7e8372 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
enable_language(CSharp)
# test VS_CSHARP_* for the following extensions
set(fileExtensions
"cs"
"png"
"jpg"
"xml"
"settings")
#
set(tagName "MyCustomTag")
set(tagValue "MyCustomValue")
set(fileNames)
foreach(e ${fileExtensions})
set(currentFile "${CMAKE_CURRENT_BINARY_DIR}/foo.${e}")
list(APPEND fileNames ${currentFile})
file(TOUCH "${currentFile}")
string(TOUPPER ${e} eUC)
set_source_files_properties("${currentFile}"
PROPERTIES
VS_CSHARP_${tagName}${eUC} "${tagValue}${eUC}")
endforeach()
add_library(foo ${fileNames})
|