File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,16 @@ endif ()
12
12
file (GLOB SOURCE_FILES *.h *.cpp)
13
13
add_library (${PROJECT_NAME} ${SOURCE_FILES} )
14
14
setup_plugin_target (${PROJECT_NAME} "${PROJECT_NAME} " )
15
- target_link_libraries (${PROJECT_NAME} PRIVATE Urho3D)
15
+ target_link_libraries (${PROJECT_NAME} PUBLIC Urho3D)
16
16
17
17
if (URHO3D_CSHARP)
18
18
set (DEST_BIN_DIR_CONFIG bin)
19
19
set (DEST_LIBRARY_DIR_CONFIG bin)
20
20
target_include_directories (${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
21
- include (${REBELFORK_SDK} /share/CMake/Modules/UrhoSWIG.cmake)
22
21
csharp_bind_target(
23
22
TARGET ${PROJECT_NAME}
24
- SWIG CSharp/Plugin.i
23
+ SWIG ${CMAKE_CURRENT_SOURCE_DIR} / CSharp/Plugin.i
25
24
CSPROJ ${CMAKE_CURRENT_SOURCE_DIR} /CSharp/Plugin.csproj
26
25
NAMESPACE Urho3DNet
27
- INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR} ;${REBELFORK_SDK} /include;${REBELFORK_SDK} /include/Urho3D/CSharp/Swig"
28
26
)
29
- target_sources (${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} CSharp/PluginCSHARP_wrap.cxx)
30
27
endif ()
Original file line number Diff line number Diff line change 5
5
<LangVersion >9.0</LangVersion >
6
6
</PropertyGroup >
7
7
<ItemGroup >
8
- <BindingsSourceCode Include =" $(Plugin_Core_SamplePlugin_BINARY_DIR)/Plugin.Core.SamplePluginCSharp /*.cs" />
8
+ <BindingsSourceCode Include =" $(Plugin_Core_SamplePlugin_BINARY_DIR)/Plugin.Core.SamplePluginCSharp_$(URHO3D_CSHARP_BIND_CONFIG) /*.cs" />
9
9
</ItemGroup >
10
10
<Target Name =" GatherBuildFiles" BeforeTargets =" BeforeCompile" >
11
- <CreateItem Include =" $([System.IO.Directory]::GetFiles(" $(Plugin_Core_SamplePlugin_BINARY_DIR)/Plugin.Core.SamplePluginCSharp " , " *.cs" ))" >
11
+ <CreateItem Include =" $([System.IO.Directory]::GetFiles(" $(Plugin_Core_SamplePlugin_BINARY_DIR)/Plugin.Core.SamplePluginCSharp_$(URHO3D_CSHARP_BIND_CONFIG) " , " *.cs" ))" >
12
12
<Output TaskParameter =" Include" ItemName =" Compile" />
13
13
</CreateItem >
14
14
</Target >
15
- <ItemGroup >
15
+ <ItemGroup Condition = " '$(URHO3D_IS_SDK)' == 'ON' " >
16
16
<Reference Include =" Urho3DNet" >
17
17
<HintPath >$(URHO3D_SDK_PATH)/bin/$(Configuration)/Urho3DNet.dll</HintPath >
18
18
</Reference >
19
19
</ItemGroup >
20
+ <ItemGroup Condition =" '$(URHO3D_IS_SDK)' != 'ON' " >
21
+ <ProjectReference Include =" $(Urho3D_SOURCE_DIR)/CSharp/Urho3DNet.csproj" />
22
+ </ItemGroup >
20
23
</Project >
Original file line number Diff line number Diff line change 7
7
<Import Project =" $(CMAKE_BINARY_DIR)/CMake.props" Condition =" '$(CMakePropsIncluded)' == '' And '$(CMAKE_BINARY_DIR)' != '' And Exists('$(CMAKE_BINARY_DIR)/CMake.props') " />
8
8
<!-- Azure pipelines for some reason have SolutionDir undefined however -->
9
9
<Import Project =" $(MSBuildStartupDirectory)/CMake.props" Condition =" '$(CMakePropsIncluded)' == '' And '$(SolutionDir)' == '' And Exists('$(MSBuildStartupDirectory)/CMake.props') " />
10
- <Import Project =" $(URHO3D_SDK_PATH)/share/CMake/Directory.Build.props " />
10
+ <Import Project =" $(URHO3D_CSHARP_PROPS_FILE) " />
11
11
</Project >
You can’t perform that action at this time.
0 commit comments