Skip to content

Commit 5fe521e

Browse files
committed
Migrate to new plugin API.
1 parent c4547ba commit 5fe521e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
cmake_minimum_required(VERSION 3.21)
22
project (Plugin.Core.SamplePlugin)
33

4+
# Top-level plugin build is not supported yet.
5+
# If the plugin is only built as subdirectory, this snippet is not needed and may be discarded.
46
if (PROJECT_IS_TOP_LEVEL)
57
set (CMAKE_CXX_STANDARD 17)
68
set (REBELFORK_SDK "" CACHE STRING "Path to pre-built SDK")
79
set (CMAKE_PREFIX_PATH ${REBELFORK_SDK}/share)
8-
find_package(Urho3D REQUIRED)
10+
find_package (Urho3D REQUIRED)
911
include (${REBELFORK_SDK}/share/CMake/Modules/UrhoCommon.cmake)
1012
endif ()
1113

1214
file (GLOB_RECURSE SOURCE_FILES *.h *.cpp)
13-
add_library(${PROJECT_NAME} ${SOURCE_FILES})
14-
define_static_plugin (${PROJECT_NAME} "${PROJECT_NAME}")
15-
target_link_libraries (${PROJECT_NAME} PRIVATE Urho3D)
15+
add_plugin (${PROJECT_NAME} "${SOURCE_FILES}")

0 commit comments

Comments
 (0)