2 # CPack will install a registry key in this format that we wish to reference.
3 set(REG_KEY "${CPACK_PACKAGE_INSTALL_REGISTRY_KEY}")
4 set(LIB_PATH_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
6 foreach (platform "Win32" "x64")
7 set(prop_file_in "Microsoft.Cpp.Win32.llvm.props.in")
8 set(prop_file_v100 "Microsoft.Cpp.${platform}.LLVM-vs2010.props")
9 set(prop_file_v110 "Microsoft.Cpp.${platform}.LLVM-vs2012.props")
10 set(prop_file_v110_xp "Microsoft.Cpp.${platform}.LLVM-vs2012_xp.props")
11 set(prop_file_v120 "toolset-vs2013.props")
12 set(prop_file_v120_xp "toolset-vs2013_xp.props")
14 if (platform STREQUAL "Win32")
19 set(VS_VERSION "v100")
20 set(MSC_VERSION "1600")
21 configure_file(${prop_file_in} ${platform}/${prop_file_v100})
22 set(VS_VERSION "v110")
23 set(MSC_VERSION "1700")
24 configure_file(${prop_file_in} ${platform}/${prop_file_v110})
25 set(VS_VERSION "v110_xp")
26 configure_file(${prop_file_in} ${platform}/${prop_file_v110_xp})
27 set(VS_VERSION "v120")
28 set(MSC_VERSION "1800")
29 configure_file(${prop_file_in} ${platform}/${prop_file_v120})
30 set(VS_VERSION "v120_xp")
31 configure_file(${prop_file_in} ${platform}/${prop_file_v120_xp})
36 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v100}" DESTINATION tools/msbuild/${platform})
37 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v110}" DESTINATION tools/msbuild/${platform})
38 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v110_xp}" DESTINATION tools/msbuild/${platform})
39 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v120}" DESTINATION tools/msbuild/${platform})
40 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v120_xp}" DESTINATION tools/msbuild/${platform})
42 install(FILES "Microsoft.Cpp.Win32.LLVM-vs2010.targets" DESTINATION "tools/msbuild/${platform}" RENAME "Microsoft.Cpp.${platform}.LLVM-vs2010.targets")
43 install(FILES "Microsoft.Cpp.Win32.LLVM-vs2012.targets" DESTINATION "tools/msbuild/${platform}" RENAME "Microsoft.Cpp.${platform}.LLVM-vs2012.targets")
44 install(FILES "Microsoft.Cpp.Win32.LLVM-vs2012_xp.targets" DESTINATION "tools/msbuild/${platform}" RENAME "Microsoft.Cpp.${platform}.LLVM-vs2012_xp.targets")
45 install(FILES "toolset-vs2013.targets" DESTINATION "tools/msbuild/${platform}")
46 install(FILES "toolset-vs2013_xp.targets" DESTINATION "tools/msbuild/${platform}")
53 DESTINATION tools/msbuild
56 PATTERN ".svn" EXCLUDE