2013-08-28 09:19:26 +08:00
|
|
|
if (WIN32)
|
2013-09-07 01:05:46 +08:00
|
|
|
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")
|
2013-09-20 00:50:40 +08:00
|
|
|
set(prop_file_v110_xp "Microsoft.Cpp.Win32.LLVM-vs2012_xp.props")
|
2013-08-30 06:09:43 +08:00
|
|
|
|
|
|
|
# CPack will install a registry key in this format that we wish to reference.
|
|
|
|
set(REG_KEY "${CMAKE_PROJECT_NAME} ${CPACK_PACKAGE_VERSION}")
|
2013-09-07 01:05:46 +08:00
|
|
|
|
|
|
|
set(VS_VERSION "v100")
|
2013-09-20 01:18:35 +08:00
|
|
|
set(MSC_VERSION "1600")
|
2013-09-07 01:05:46 +08:00
|
|
|
configure_file(${prop_file_in} ${prop_file_v100})
|
|
|
|
set(VS_VERSION "v110")
|
2013-09-20 01:18:35 +08:00
|
|
|
set(MSC_VERSION "1700")
|
2013-09-07 01:05:46 +08:00
|
|
|
configure_file(${prop_file_in} ${prop_file_v110})
|
2013-09-20 00:50:40 +08:00
|
|
|
set(VS_VERSION "v110_xp")
|
|
|
|
configure_file(${prop_file_in} ${prop_file_v110_xp})
|
2013-09-07 01:05:46 +08:00
|
|
|
|
|
|
|
set(REG_KEY)
|
|
|
|
set(VS_VERSION)
|
2013-09-20 01:18:35 +08:00
|
|
|
set(MSC_VERSION)
|
2013-09-07 01:05:46 +08:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v100}" DESTINATION tools/msbuild)
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v110}" DESTINATION tools/msbuild)
|
2013-09-20 00:50:40 +08:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v110_xp}" DESTINATION tools/msbuild)
|
2013-08-30 06:09:43 +08:00
|
|
|
|
2013-08-28 09:19:26 +08:00
|
|
|
install(DIRECTORY .
|
|
|
|
DESTINATION tools/msbuild
|
|
|
|
FILES_MATCHING
|
|
|
|
PATTERN "*.targets"
|
|
|
|
PATTERN "*.bat"
|
|
|
|
PATTERN ".svn" EXCLUDE
|
|
|
|
)
|
2013-09-07 01:05:46 +08:00
|
|
|
endif()
|