Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored Apr 5, 2024
1 parent 7bf4b81 commit 3ff492d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion cmake/qgis-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ if(TRUE) # Should possibly have a "static only" check
Qt::Positioning
Qt::Core5Compat
)
endif()
if(NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
find_package(Qt COMPONENTS SerialPort)
target_link_libraries(QGIS::Core INTERFACE
Expand Down
2 changes: 1 addition & 1 deletion src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function(create_executable)
qt_import_qml_plugins(${exe_TARGET} PATH_TO_SCAN
"${CMAKE_CURRENT_BINARY_DIR}/qmldrop/app")
endif()
target_link_libraries(${exe_TARGET} PUBLIC Qt6::Core5Compat)
target_link_libraries(${exe_TARGET} PUBLIC Qt::Core5Compat)
qt_import_plugins(${exe_TARGET} INCLUDE Qt::QSvgPlugin)
qt_import_plugins(${exe_TARGET} INCLUDE Qt::Core5Compat)

Expand Down
3 changes: 1 addition & 2 deletions src/qml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ if(QtQuickCompiler_FOUND
AND NOT CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
qtquick_compiler_add_resources(
QML_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/qml.qrc
${CMAKE_CURRENT_SOURCE_DIR}/qmlqt6.qrc)
)
else()
qt_add_resources(QML_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/qml.qrc)
qt_add_resources(QML_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/qmlqt6.qrc)
endif()

add_library(qfield_qml STATIC ${QML_SOURCES})
Expand Down

0 comments on commit 3ff492d

Please sign in to comment.