File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ endif ()
11
11
12
12
file (GLOB SOURCE_FILES *.h *.cpp)
13
13
add_library (${PROJECT_NAME} ${SOURCE_FILES} )
14
- define_static_plugin (${PROJECT_NAME} "${PROJECT_NAME} " )
14
+ setup_plugin_target (${PROJECT_NAME} "${PROJECT_NAME} " )
15
15
target_link_libraries (${PROJECT_NAME} PRIVATE Urho3D)
16
16
17
- if (PROJECT_IS_TOP_LEVEL AND URHO3D_CSHARP)
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} )
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<AssemblyName >Plugin.Core.SamplePlugin.Net</AssemblyName >
4
4
<OutputType >Library</OutputType >
5
5
<LangVersion >9.0</LangVersion >
6
6
</PropertyGroup >
7
7
<ItemGroup >
8
- <BindingsSourceCode Include =" $(CMAKE_BINARY_DIR) Plugin.Core.SamplePluginCSharp/*.cs" />
8
+ <BindingsSourceCode Include =" $(Plugin_Core_SamplePlugin_BINARY_DIR)/ Plugin.Core.SamplePluginCSharp/*.cs" />
9
9
</ItemGroup >
10
10
<Target Name =" GatherBuildFiles" BeforeTargets =" BeforeCompile" >
11
- <CreateItem Include =" $([System.IO.Directory]::GetFiles(" $(CMAKE_BINARY_DIR) Plugin.Core.SamplePluginCSharp" , " *.cs" ))" >
11
+ <CreateItem Include =" $([System.IO.Directory]::GetFiles(" $(Plugin_Core_SamplePlugin_BINARY_DIR)/ Plugin.Core.SamplePluginCSharp" , " *.cs" ))" >
12
12
<Output TaskParameter =" Include" ItemName =" Compile" />
13
13
</CreateItem >
14
14
</Target >
15
15
<ItemGroup >
16
16
<Reference Include =" Urho3DNet" >
17
- <HintPath >$(URHO3D_SDK_PATH)/bin/Debug /Urho3DNet.dll</HintPath >
17
+ <HintPath >$(URHO3D_SDK_PATH)/bin/$(Configuration) /Urho3DNet.dll</HintPath >
18
18
</Reference >
19
19
</ItemGroup >
20
20
</Project >
You can’t perform that action at this time.
0 commit comments