|
@@ -120,10 +120,16 @@ macro(ctkMacroBuildQtPlugin)
|
|
|
target_link_libraries(${lib_name} ${my_libs})
|
|
|
|
|
|
# Install the library
|
|
|
+ # CTK_INSTALL_QTPLUGIN_DIR:STRING can be passed when configuring CTK
|
|
|
+ # By default, it is the same path as CTK_INSTALL_LIB_DIR
|
|
|
+ # Plugins are installed in a subdirectory corresponding to their types (e.g. designer, iconengines, imageformats...)
|
|
|
+ if (NOT DEFINED CTK_INSTALL_QTPLUGIN_DIR)
|
|
|
+ set(CTK_INSTALL_QTPLUGIN_DIR "${CTK_INSTALL_LIB_DIR}")
|
|
|
+ endif()
|
|
|
install(TARGETS ${lib_name}
|
|
|
- RUNTIME DESTINATION ${CTK_INSTALL_LIB_DIR}/${MY_PLUGIN_DIR} COMPONENT RuntimePlugins
|
|
|
- LIBRARY DESTINATION ${CTK_INSTALL_LIB_DIR}/${MY_PLUGIN_DIR} COMPONENT RuntimePlugins
|
|
|
- ARCHIVE DESTINATION ${CTK_INSTALL_LIB_DIR}/${MY_PLUGIN_DIR} COMPONENT Development
|
|
|
+ RUNTIME DESTINATION ${CTK_INSTALL_QTPLUGIN_DIR}/${MY_PLUGIN_DIR} COMPONENT RuntimePlugins
|
|
|
+ LIBRARY DESTINATION ${CTK_INSTALL_QTPLUGIN_DIR}/${MY_PLUGIN_DIR} COMPONENT RuntimePlugins
|
|
|
+ ARCHIVE DESTINATION ${CTK_INSTALL_QTPLUGIN_DIR}/${MY_PLUGIN_DIR} COMPONENT Development
|
|
|
)
|
|
|
|
|
|
# Install headers - Are headers required ?
|