summaryrefslogtreecommitdiff
path: root/tools/msbuild/CMakeLists.txt
blob: 894645a4562cae64352ad6a90bfbc037eb80cfaa (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
27
28
29
30
31
32
33
if (WIN32)
  set(prop_file_in "Microsoft.Cpp.Win32.llvm.props.in")
  set(prop_file_v100 "Microsoft.Cpp.Win32.LLVM-vs2010.props")
  set(prop_file_v110 "Microsoft.Cpp.Win32.LLVM-vs2012.props")
  set(prop_file_v110_xp "Microsoft.Cpp.Win32.LLVM-vs2012_xp.props")

  # CPack will install a registry key in this format that we wish to reference.
  set(REG_KEY "${CMAKE_PROJECT_NAME} ${CPACK_PACKAGE_VERSION}")

  set(VS_VERSION "v100")
  set(MSC_VERSION "1600")
  configure_file(${prop_file_in} ${prop_file_v100})
  set(VS_VERSION "v110")
  set(MSC_VERSION "1700")
  configure_file(${prop_file_in} ${prop_file_v110})
  set(VS_VERSION "v110_xp")
  configure_file(${prop_file_in} ${prop_file_v110_xp})

  set(REG_KEY)
  set(VS_VERSION)
  set(MSC_VERSION)
  install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v100}" DESTINATION tools/msbuild)
  install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v110}" DESTINATION tools/msbuild)
  install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v110_xp}" DESTINATION tools/msbuild)

  install(DIRECTORY .
    DESTINATION tools/msbuild
    FILES_MATCHING
    PATTERN "*.targets"
    PATTERN "*.bat"
    PATTERN ".svn" EXCLUDE
    )
endif()