if( Qt5UiTools_FOUND )
	############################################
	# the forms module

	set(krossmoduleforms_SRCS form.cpp)
    add_library(KrossModuleForms MODULE ${krossmoduleforms_SRCS})

    target_link_libraries(KrossModuleForms
       Qt5::UiTools
       KF5::Parts
       KF5::KIOFileWidgets
       KF5::KrossCore
       KF5::KrossUi
       KF5::I18n
    )
    install(TARGETS KrossModuleForms DESTINATION ${KDE_INSTALL_PLUGINDIR})
endif()

############################################
# the kdetranslation module

set(krossmodulekdetranslation_SRCS translation.cpp)
add_library(KrossModuleKdeTranslation MODULE ${krossmodulekdetranslation_SRCS})

target_link_libraries(KrossModuleKdeTranslation
   KF5::Parts
   KF5::KrossCore
   KF5::I18n
)
install(TARGETS KrossModuleKdeTranslation DESTINATION ${KDE_INSTALL_PLUGINDIR})

if( Qt5UiTools_FOUND )
	############################################
	# the forms module

	set(krossmoduleforms_SRCS form.cpp)
    add_library(krossmoduleforms MODULE ${krossmoduleforms_SRCS})

    target_link_libraries(krossmoduleforms
       Qt5::UiTools
       KF5::Parts
       KF5::KIOFileWidgets
       KF5::KrossCore
       KF5::KrossUi
       KF5::I18n
    )
    install(TARGETS krossmoduleforms DESTINATION ${KDE_INSTALL_PLUGINDIR})
endif()

############################################
# the kdetranslation module

set(krossmodulekdetranslation_SRCS translation.cpp)
add_library(krossmodulekdetranslation MODULE ${krossmodulekdetranslation_SRCS})

target_link_libraries(krossmodulekdetranslation
   KF5::Parts
   KF5::KrossCore
   KF5::I18n
)
install(TARGETS krossmodulekdetranslation DESTINATION ${KDE_INSTALL_PLUGINDIR})

Fix loading of Kross modules "forms" and "kdetranslation"
Fix loading of Kross modules "forms" and "kdetranslation"

Rename shared libraries KrossModuleForms and KrossModuleKdeTranslation
back to lowercase in order to fix their loading in Kross and preserve
backward compatibility with existing scripts using these modules.

Testing done by me:
1. Loading of module "forms" tested by running the script opensrc.py
(trunk/l10n-kde4/scripts/lokalize/opensrc.py in KDE SVN) in Lokalize.
This script uses the forms module to show its progress dialog.
Krosspython (part of kross-interpreters) is required to run Python
scripts in Kross.
2. No testing done for module "kdetranslation".

REVIEW: 123812
