Skip to content

Commit

Permalink
Migrate to new plugin API.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneko committed Feb 16, 2024
1 parent c4547ba commit 5fe521e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
cmake_minimum_required(VERSION 3.21)
project (Plugin.Core.SamplePlugin)

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

file (GLOB_RECURSE SOURCE_FILES *.h *.cpp)
add_library(${PROJECT_NAME} ${SOURCE_FILES})
define_static_plugin (${PROJECT_NAME} "${PROJECT_NAME}")
target_link_libraries (${PROJECT_NAME} PRIVATE Urho3D)
add_plugin (${PROJECT_NAME} "${SOURCE_FILES}")

0 comments on commit 5fe521e

Please sign in to comment.