File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.21 )
22project (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.
46if (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 )
1012endif ()
1113
1214file (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} " )
You can’t perform that action at this time.
0 commit comments