Files
DbZeiterfassung-exportplugin/CMakeLists.txt
T
2018-12-16 20:31:26 +01:00

44 lines
1.2 KiB
CMake

find_package(Qt5Core CONFIG REQUIRED)
find_package(Qt5Gui CONFIG REQUIRED)
find_package(Qt5Widgets CONFIG REQUIRED)
find_package(Qt5LinguistTools CONFIG REQUIRED)
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)