39 lines
1.0 KiB
CMake
39 lines
1.0 KiB
CMake
set(HEADERS
|
|
exportdialog.h
|
|
exportplugin.h
|
|
)
|
|
|
|
set(SOURCES
|
|
exportdialog.cpp
|
|
exportplugin.cpp
|
|
)
|
|
|
|
set(FORMS
|
|
exportdialog.ui
|
|
)
|
|
|
|
set(RESOURCES
|
|
exportplugin_resources.qrc
|
|
)
|
|
|
|
set(OTHER_FILES
|
|
exportplugin.json
|
|
)
|
|
|
|
set(TRANSLATIONS
|
|
translations/exportplugin_en.ts
|
|
translations/exportplugin_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-exportplugin SHARED ${HEADERS} ${SOURCES} ${FORMS} ${RESOURCES} ${OTHER_FILES} ${TRANSLATIONS_C})
|
|
|
|
set_target_properties(zeiterfassung-plugins-exportplugin PROPERTIES OUTPUT_NAME exportplugin PREFIX "")
|
|
|
|
target_link_libraries(zeiterfassung-plugins-exportplugin Qt5::Core Qt5::Gui Qt5::Widgets zeiterfassungguilib zeiterfassungnetworklib)
|
|
|
|
add_dependencies(zeiterfassung-plugins zeiterfassung-plugins-exportplugin)
|