Skip to content

Commit

Permalink
Remove unecessary module from CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
donarturo11 committed Jul 7, 2023
1 parent 9d80ca8 commit 6d45362
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ option(FORCE_QT6 "Force qt6 install" OFF)

if(FORCE_QT5)
set(QT_VERSION_MAJOR 5)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets Bluetooth SerialPort Network)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets SerialPort Network)
elseif(FORCE_QT6)
set(QT_VERSION_MAJOR 6)
find_package(Qt6 REQUIRED COMPONENTS Core Widgets Bluetooth SerialPort Network)
find_package(Qt6 REQUIRED COMPONENTS Core Widgets SerialPort Network)
else()
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Widgets Bluetooth SerialPort Charts Network)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Widgets Bluetooth SerialPort Charts Network)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Widgets SerialPort Charts Network)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Widgets SerialPort Charts Network)
endif()

if (${QT_VERSION_MAJOR} EQUAL 5)
Expand Down Expand Up @@ -104,7 +104,6 @@ ELSEIF(APPLE)
ENDIF()

target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Bluetooth)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::SerialPort)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Charts)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Network)
Expand Down

0 comments on commit 6d45362

Please sign in to comment.