Skip to content

Commit

Permalink
More cmake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfug committed Mar 3, 2024
1 parent 32540dd commit 05341f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ find_package( OpenSSL )
if( OPENSSL_FOUND )
message( "OpenSSL: ${OPENSSL_VERSION}" )

find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Core QUIET)

if (Qt6_FOUND)
install( FILES
Expand Down
12 changes: 6 additions & 6 deletions cmake/DeployApp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,32 @@ target_link_libraries( ${PROJECT_NAME} PUBLIC Qt::Core Qt::Concurrent Qt::Gui Qt

if( Qt5SerialPort_DIR )
message( "Qt::SerialPort: YES" )
target_link_libraries( ${PROJECT_NAME} Qt::SerialPort )
target_link_libraries( ${PROJECT_NAME} PUBLIC Qt::SerialPort )
endif()

if( Qt5Qml_DIR )
message( "Qt::Qml: YES" )
target_link_libraries( ${PROJECT_NAME} Qt::Qml )
target_link_libraries( ${PROJECT_NAME} PUBLIC Qt::Qml )
endif()

if( Qt5Quick_DIR )
message( "Qt::Quick: YES" )
target_link_libraries( ${PROJECT_NAME} Qt::Quick )
target_link_libraries( ${PROJECT_NAME} PUBLIC Qt::Quick )
endif()

if( Qt5QuickControls2_DIR )
message( "Qt::QuickControls2: YES" )
target_link_libraries( ${PROJECT_NAME} Qt::QuickControls2 )
target_link_libraries( ${PROJECT_NAME} PUBLIC Qt::QuickControls2 )
endif()

if( Qt5QuickWidgets_DIR )
message( "Qt::QuickWidgets: YES" )
target_link_libraries( ${PROJECT_NAME} Qt::QuickWidgets )
target_link_libraries( ${PROJECT_NAME} PUBLIC Qt::QuickWidgets )
endif()

if( Qt5WebSockets_DIR )
message( "Qt::WebSockets: YES" )
target_link_libraries( ${PROJECT_NAME} Qt::WebSockets )
target_link_libraries( ${PROJECT_NAME} PUBLIC Qt::WebSockets )
endif()

# Retrieve the absolute path to qmake and then use that path to find
Expand Down

0 comments on commit 05341f9

Please sign in to comment.