msbuild: install & tweaks

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2023-03-04 16:21:49 +08:00
parent c4a29df155
commit b9cd887dbc
2 changed files with 10 additions and 6 deletions

View File

@ -138,6 +138,10 @@ if(FRAMELESSHELPER_BUILD_EXAMPLES)
add_subdirectory(examples) add_subdirectory(examples)
endif() endif()
if(NOT FRAMELESSHELPER_NO_INSTALL)
install(FILES "msbuild/FramelessHelper.props" DESTINATION "${CMAKE_INSTALL_PREFIX}")
endif()
if(NOT FRAMELESSHELPER_NO_SUMMARY) if(NOT FRAMELESSHELPER_NO_SUMMARY)
message("--------------------------- Toolchain ----------------------------") message("--------------------------- Toolchain ----------------------------")
message("CMake version: ${CMAKE_VERSION} (${CMAKE_COMMAND})") message("CMake version: ${CMAKE_VERSION} (${CMAKE_COMMAND})")

View File

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<LibraryPath>$(MSBuildThisFileDirectory)$(Platform)\lib;$(LibraryPath)</LibraryPath> <LibraryPath>$(MSBuildThisFileDirectory)lib;$(LibraryPath)</LibraryPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="QtSettings"> <PropertyGroup Label="QtSettings">
<QtHeaderSearchPath>$(MSBuildThisFileDirectory)$(Platform)\include;$(QtHeaderSearchPath)</QtHeaderSearchPath> <QtHeaderSearchPath>$(MSBuildThisFileDirectory)include;$(MSBuildThisFileDirectory)include\FramelessHelper;$(MSBuildThisFileDirectory)include\FramelessHelper\Core;$(MSBuildThisFileDirectory)include\FramelessHelper\Core\private;$(MSBuildThisFileDirectory)include\FramelessHelper\Widgets;$(MSBuildThisFileDirectory)include\FramelessHelper\Widgets\private;$(MSBuildThisFileDirectory)include\FramelessHelper\Quick;$(MSBuildThisFileDirectory)include\FramelessHelper\Quick\private;$(QtHeaderSearchPath)</QtHeaderSearchPath>
</PropertyGroup> </PropertyGroup>
<ItemDefinitionGroup> <ItemDefinitionGroup>
<ClCompile> <ClCompile>
<PreprocessorDefinitions>FRAMELESSHELPER_QUICK_STATIC;FRAMELESSHELPER_WIDGETS_STATIC;FRAMELESSHELPER_CORE_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>FRAMELESSHELPER_CORE_STATIC;FRAMELESSHELPER_WIDGETS_STATIC;FRAMELESSHELPER_QUICK_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile> </ClCompile>
<Link> <Link>
<AdditionalDependencies Condition="'$(Configuration)'=='Debug'">FramelessHelperQuickd.lib;FramelessHelperWidgetsd.lib;FramelessHelperCored.lib;%(AdditionalDependencies);</AdditionalDependencies> <AdditionalDependencies Condition="'$(Configuration)'=='Debug'">FramelessHelperCored.lib;FramelessHelperWidgetsd.lib;FramelessHelperQuickd.lib;%(AdditionalDependencies);</AdditionalDependencies>
<AdditionalDependencies Condition="'$(Configuration)'=='Release'">FramelessHelperQuick.lib;FramelessHelperWidgets.lib;FramelessHelperCore.lib;%(AdditionalDependencies);</AdditionalDependencies> <AdditionalDependencies Condition="'$(Configuration)'=='Release'">FramelessHelperCore.lib;FramelessHelperWidgets.lib;FramelessHelperQuick.lib;%(AdditionalDependencies);</AdditionalDependencies>
</Link> </Link>
</ItemDefinitionGroup> </ItemDefinitionGroup>
</Project> </Project>