build: Compile plugins as cmake module libraries instead of shared libraries
This commit is contained in:
parent
0b06b1e1e8
commit
71df45a347
@ -159,9 +159,7 @@ macro(createPackage)
|
|||||||
|
|
||||||
install(FILES "${PLUGIN_LOCATION}/../${plugin}.hexplug" DESTINATION "${PLUGINS_INSTALL_LOCATION}" PERMISSIONS ${LIBRARY_PERMISSIONS})
|
install(FILES "${PLUGIN_LOCATION}/../${plugin}.hexplug" DESTINATION "${PLUGINS_INSTALL_LOCATION}" PERMISSIONS ${LIBRARY_PERMISSIONS})
|
||||||
else ()
|
else ()
|
||||||
if (WIN32)
|
if (APPLE)
|
||||||
install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION})
|
|
||||||
elseif (APPLE)
|
|
||||||
if (IMHEX_GENERATE_PACKAGE)
|
if (IMHEX_GENERATE_PACKAGE)
|
||||||
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PLUGINS_INSTALL_LOCATION})
|
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PLUGINS_INSTALL_LOCATION})
|
||||||
else ()
|
else ()
|
||||||
|
@ -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)
|
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)
|
target_sources(main PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/plugin-bundle.cpp)
|
||||||
else()
|
else()
|
||||||
set(IMHEX_PLUGIN_LIBRARY_TYPE SHARED)
|
set(IMHEX_PLUGIN_LIBRARY_TYPE MODULE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Define new project for plugin
|
# Define new project for plugin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user