-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
11 lines (11 loc) · 1.02 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
<Project>
<!-- Works when building on windows using cmake-generated VS solution -->
<Import Project="$(SolutionDir)/CMake.props" Condition=" '$(CMakePropsIncluded)' == '' And '$(SolutionDir)' != '' And Exists('$(SolutionDir)/CMake.props')" />
<!-- Works when building with VSCode, however cmake cache directory should be ./cmake-build -->
<Import Project="./cmake-build/CMake.props" Condition=" '$(CMakePropsIncluded)' == '' And Exists('./cmake-build/CMake.props')" />
<!-- When separate .csproj projects are built by make/ninja -->
<Import Project="$(CMAKE_BINARY_DIR)/CMake.props" Condition=" '$(CMakePropsIncluded)' == '' And '$(CMAKE_BINARY_DIR)' != '' And Exists('$(CMAKE_BINARY_DIR)/CMake.props') " />
<!-- Azure pipelines for some reason have SolutionDir undefined however -->
<Import Project="$(MSBuildStartupDirectory)/CMake.props" Condition=" '$(CMakePropsIncluded)' == '' And '$(SolutionDir)' == '' And Exists('$(MSBuildStartupDirectory)/CMake.props') " />
<Import Project="$(URHO3D_CSHARP_PROPS_FILE)" />
</Project>