1if (WIN32) 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}") 5 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") 13 set(prop_file_v140 "toolset-vs2014.props") 14 set(prop_file_v140_xp "toolset-vs2014_xp.props") 15 16 if (platform STREQUAL "Win32") 17 set(mflag "m32") 18 else() 19 set(mflag "m64") 20 endif() 21 set(VS_VERSION "v100") 22 set(MSC_VERSION "1600") 23 configure_file(${prop_file_in} ${platform}/${prop_file_v100}) 24 set(VS_VERSION "v110") 25 set(MSC_VERSION "1700") 26 configure_file(${prop_file_in} ${platform}/${prop_file_v110}) 27 set(VS_VERSION "v110_xp") 28 configure_file(${prop_file_in} ${platform}/${prop_file_v110_xp}) 29 set(VS_VERSION "v120") 30 set(MSC_VERSION "1800") 31 configure_file(${prop_file_in} ${platform}/${prop_file_v120}) 32 set(VS_VERSION "v120_xp") 33 configure_file(${prop_file_in} ${platform}/${prop_file_v120_xp}) 34 set(VS_VERSION "v140") 35 set(MSC_VERSION "1900") 36 configure_file(${prop_file_in} ${platform}/${prop_file_v140}) 37 set(VS_VERSION "v140_xp") 38 configure_file(${prop_file_in} ${platform}/${prop_file_v140_xp}) 39 set(VS_VERSION) 40 set(MSC_VERSION) 41 set(mflag) 42 43 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v100}" DESTINATION tools/msbuild/${platform}) 44 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v110}" DESTINATION tools/msbuild/${platform}) 45 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v110_xp}" DESTINATION tools/msbuild/${platform}) 46 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v120}" DESTINATION tools/msbuild/${platform}) 47 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v120_xp}" DESTINATION tools/msbuild/${platform}) 48 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v140}" DESTINATION tools/msbuild/${platform}) 49 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${platform}/${prop_file_v140_xp}" DESTINATION tools/msbuild/${platform}) 50 51 install(FILES "Microsoft.Cpp.Win32.LLVM-vs2010.targets" DESTINATION "tools/msbuild/${platform}" RENAME "Microsoft.Cpp.${platform}.LLVM-vs2010.targets") 52 install(FILES "Microsoft.Cpp.Win32.LLVM-vs2012.targets" DESTINATION "tools/msbuild/${platform}" RENAME "Microsoft.Cpp.${platform}.LLVM-vs2012.targets") 53 install(FILES "Microsoft.Cpp.Win32.LLVM-vs2012_xp.targets" DESTINATION "tools/msbuild/${platform}" RENAME "Microsoft.Cpp.${platform}.LLVM-vs2012_xp.targets") 54 install(FILES "toolset-vs2013.targets" DESTINATION "tools/msbuild/${platform}") 55 install(FILES "toolset-vs2013_xp.targets" DESTINATION "tools/msbuild/${platform}") 56 install(FILES "toolset-vs2014.targets" DESTINATION "tools/msbuild/${platform}") 57 install(FILES "toolset-vs2014_xp.targets" DESTINATION "tools/msbuild/${platform}") 58 endforeach() 59 60 set(LIB_PATH_VERSION) 61 set(REG_KEY) 62 63 install(DIRECTORY . 64 DESTINATION tools/msbuild 65 FILES_MATCHING 66 PATTERN "*.bat" 67 PATTERN ".svn" EXCLUDE 68 ) 69endif() 70