correct plugin target type

This commit is contained in:
Green Sky 2024-05-28 10:10:24 +02:00
parent fe28aaeda0
commit 0379c8a5ab
No known key found for this signature in database

View File

@ -1,12 +1,11 @@
cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR) cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
add_library(plugin_ircclient SHARED add_library(plugin_ircclient MODULE
./plugin_ircclient.cpp ./plugin_ircclient.cpp
) )
set_target_properties(plugin_ircclient PROPERTIES set_target_properties(plugin_ircclient PROPERTIES
C_VISIBILITY_PRESET hidden C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
) )
# probably not enough # probably not enough
target_compile_definitions(plugin_ircclient PUBLIC ENTT_API_IMPORT) target_compile_definitions(plugin_ircclient PUBLIC ENTT_API_IMPORT)