added depends of the QuickControls2

This commit is contained in:
Andrei Yankovich 2021-05-31 12:19:23 +03:00
parent cdeab90d82
commit 111d298695
6 changed files with 3 additions and 13 deletions

View File

@ -23,13 +23,13 @@ add_definitions(-DQMLNOTYFYSERICE_LIBRARY)
set(QML_IMPORT_PATH ${QML_IMPORT_PATH} "${CMAKE_CURRENT_SOURCE_DIR}" CACHE STRING "" FORCE) set(QML_IMPORT_PATH ${QML_IMPORT_PATH} "${CMAKE_CURRENT_SOURCE_DIR}" CACHE STRING "" FORCE)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick REQUIRED) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick QuickControls2 REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Quick REQUIRED) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Quick QuickControls2 REQUIRED)
file(GLOB SOURCE_CPP "*.cpp" "*.qrc") file(GLOB SOURCE_CPP "*.cpp" "*.qrc")
add_library(${PROJECT_NAME} ${SOURCE_CPP}) add_library(${PROJECT_NAME} ${SOURCE_CPP})
target_link_libraries(${PROJECT_NAME} PUBLIC Qt::Core Qt::Quick) target_link_libraries(${PROJECT_NAME} PUBLIC Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Quick Qt${QT_VERSION_MAJOR}::QuickControls2)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
set(LANGS ${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/en.ts set(LANGS ${CMAKE_CURRENT_SOURCE_DIR}/qmlNotify_languages/en.ts

View File

@ -4,8 +4,6 @@
<context> <context>
<name>NotificationForm</name> <name>NotificationForm</name>
<message> <message>
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
<source>Message</source> <source>Message</source>
<translation>Message</translation> <translation>Message</translation>
</message> </message>

View File

@ -4,8 +4,6 @@
<context> <context>
<name>NotificationForm</name> <name>NotificationForm</name>
<message> <message>
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
<source>Message</source> <source>Message</source>
<translation></translation> <translation></translation>
</message> </message>

View File

@ -4,8 +4,6 @@
<context> <context>
<name>NotificationForm</name> <name>NotificationForm</name>
<message> <message>
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
<source>Message</source> <source>Message</source>
<translation>Cообщение</translation> <translation>Cообщение</translation>
</message> </message>

View File

@ -4,8 +4,6 @@
<context> <context>
<name>NotificationForm</name> <name>NotificationForm</name>
<message> <message>
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
<source>Message</source> <source>Message</source>
<translation>İleti</translation> <translation>İleti</translation>
</message> </message>

View File

@ -4,8 +4,6 @@
<context> <context>
<name>NotificationForm</name> <name>NotificationForm</name>
<message> <message>
<location filename="../NotifyModule/NotificationForm.qml" line="16"/>
<location filename="../NotifyModule/NotificationForm.qml" line="18"/>
<source>Message</source> <source>Message</source>
<translation>Повідомлення</translation> <translation>Повідомлення</translation>
</message> </message>