find_package(Qt5Core CONFIG REQUIRED) find_package(Qt5Gui CONFIG REQUIRED) find_package(Qt5Widgets CONFIG REQUIRED) find_package(Qt5LinguistTools CONFIG REQUIRED) set(HEADERS profiledialog.h profileplugin.h ) set(SOURCES profiledialog.cpp profileplugin.cpp ) set(FORMS profiledialog.ui ) set(RESOURCES profileplugin_resources.qrc ) set(OTHER_FILES profileplugin.json ) set(TRANSLATIONS translations/profileplugin_en.ts translations/profileplugin_de.ts ) set_source_files_properties(${TRANSLATIONS} PROPERTIES OUTPUT_LOCATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/translations) QT5_CREATE_TRANSLATION(TRANSLATIONS_C ${TRANSLATIONS} ${HEADERS} ${SOURCES} ${FORMS} OPTIONS -no-obsolete) #QT5_ADD_TRANSLATION(TRANSLATIONS_C ${TRANSLATIONS}) add_library(zeiterfassung-plugins-profileplugin SHARED ${HEADERS} ${SOURCES} ${FORMS} ${RESOURCES} ${OTHER_FILES} ${TRANSLATIONS_C}) set_target_properties(zeiterfassung-plugins-profileplugin PROPERTIES OUTPUT_NAME profileplugin PREFIX "") target_link_libraries(zeiterfassung-plugins-profileplugin Qt5::Core Qt5::Gui Qt5::Widgets zeiterfassungguilib zeiterfassungnetworklib) add_dependencies(zeiterfassung-plugins zeiterfassung-plugins-profileplugin)