correct plugin target type

This commit is contained in:
Green Sky 2024-05-28 10:13:53 +02:00
parent 466efc5da3
commit 88cfc8638e
No known key found for this signature in database

View File

@ -1,11 +1,10 @@
cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
add_library(plugin_zox_ngc SHARED
add_library(plugin_zox_ngc MODULE
./plugin_zox_ngc.cpp
)
set_target_properties(plugin_zox_ngc PROPERTIES
C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
)
target_link_libraries(plugin_zox_ngc PUBLIC
@ -15,13 +14,12 @@ target_link_libraries(plugin_zox_ngc PUBLIC
########################################
add_library(plugin_zox_ngc_hs SHARED
add_library(plugin_zox_ngc_hs MODULE
./plugin_zox_ngc_hs.cpp
)
set_target_properties(plugin_zox_ngc_hs PROPERTIES
C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
)
target_compile_definitions(plugin_zox_ngc_hs PUBLIC ENTT_API_IMPORT)