correct plugin target type

This commit is contained in:
Green Sky 2024-05-28 10:09:58 +02:00
parent 2594286fdc
commit 568c532cdb
No known key found for this signature in database

View File

@ -1,12 +1,11 @@
cmake_minimum_required(VERSION 3.24 FATAL_ERROR) cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
add_library(plugin_crdtnotes SHARED add_library(plugin_crdtnotes MODULE
./plugin_crdtnotes.cpp ./plugin_crdtnotes.cpp
) )
target_compile_features(plugin_crdtnotes PUBLIC cxx_std_17) target_compile_features(plugin_crdtnotes PUBLIC cxx_std_17)
set_target_properties(plugin_crdtnotes PROPERTIES set_target_properties(plugin_crdtnotes PROPERTIES
C_VISIBILITY_PRESET hidden C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
) )
target_compile_definitions(plugin_crdtnotes PUBLIC ENTT_API_IMPORT) target_compile_definitions(plugin_crdtnotes PUBLIC ENTT_API_IMPORT)
target_link_libraries(plugin_crdtnotes PUBLIC target_link_libraries(plugin_crdtnotes PUBLIC
@ -16,13 +15,12 @@ target_link_libraries(plugin_crdtnotes PUBLIC
######################################## ########################################
add_library(plugin_crdtnotes_imgui SHARED add_library(plugin_crdtnotes_imgui MODULE
./plugin_crdtnotes_imgui.cpp ./plugin_crdtnotes_imgui.cpp
) )
target_compile_features(plugin_crdtnotes_imgui PUBLIC cxx_std_17) target_compile_features(plugin_crdtnotes_imgui PUBLIC cxx_std_17)
set_target_properties(plugin_crdtnotes_imgui PROPERTIES set_target_properties(plugin_crdtnotes_imgui PROPERTIES
C_VISIBILITY_PRESET hidden C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
) )
target_compile_definitions(plugin_crdtnotes_imgui PUBLIC ENTT_API_IMPORT) target_compile_definitions(plugin_crdtnotes_imgui PUBLIC ENTT_API_IMPORT)
target_link_libraries(plugin_crdtnotes_imgui PUBLIC target_link_libraries(plugin_crdtnotes_imgui PUBLIC
@ -33,13 +31,12 @@ target_link_libraries(plugin_crdtnotes_imgui PUBLIC
######################################## ########################################
if (TARGET solanaceae_crdtnotes_toxsync) if (TARGET solanaceae_crdtnotes_toxsync)
add_library(plugin_crdtnotes_toxsync SHARED add_library(plugin_crdtnotes_toxsync MODULE
./plugin_crdtnotes_toxsync.cpp ./plugin_crdtnotes_toxsync.cpp
) )
target_compile_features(plugin_crdtnotes_toxsync PUBLIC cxx_std_17) target_compile_features(plugin_crdtnotes_toxsync PUBLIC cxx_std_17)
set_target_properties(plugin_crdtnotes_toxsync PROPERTIES set_target_properties(plugin_crdtnotes_toxsync PROPERTIES
C_VISIBILITY_PRESET hidden C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
) )
target_compile_definitions(plugin_crdtnotes_toxsync PUBLIC ENTT_API_IMPORT) target_compile_definitions(plugin_crdtnotes_toxsync PUBLIC ENTT_API_IMPORT)
target_link_libraries(plugin_crdtnotes_toxsync PUBLIC target_link_libraries(plugin_crdtnotes_toxsync PUBLIC