1
0
mirror of synced 2024-11-12 02:00:52 +01:00

build: Compile plugins as cmake module libraries instead of shared libraries

This commit is contained in:
WerWolv 2023-11-23 23:01:11 +01:00
parent 0b06b1e1e8
commit 71df45a347
2 changed files with 2 additions and 4 deletions

View File

@ -159,9 +159,7 @@ macro(createPackage)
install(FILES "${PLUGIN_LOCATION}/../${plugin}.hexplug" DESTINATION "${PLUGINS_INSTALL_LOCATION}" PERMISSIONS ${LIBRARY_PERMISSIONS})
else ()
if (WIN32)
install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION})
elseif (APPLE)
if (APPLE)
if (IMHEX_GENERATE_PACKAGE)
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PLUGINS_INSTALL_LOCATION})
else ()

View File

@ -13,7 +13,7 @@ macro(add_imhex_plugin)
configure_file(${CMAKE_SOURCE_DIR}/dist/web/plugin-bundle.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/plugin-bundle.cpp @ONLY)
target_sources(main PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/plugin-bundle.cpp)
else()
set(IMHEX_PLUGIN_LIBRARY_TYPE SHARED)
set(IMHEX_PLUGIN_LIBRARY_TYPE MODULE)
endif()
# Define new project for plugin