From 3c2ac73eda18496f15795adba99b262ffd071d47 Mon Sep 17 00:00:00 2001 From: Alex Spataru Date: Wed, 20 Nov 2024 11:12:04 -0500 Subject: [PATCH] Update CMakeLists.txt to define project at the start --- CMakeLists.txt | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 687756b1..a295385f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,9 +21,21 @@ # cmake_minimum_required(VERSION 3.19) - set(CMAKE_CXX_STANDARD 17) +#------------------------------------------------------------------------------- +# Define project name & find Qt packages for correct CPack calls +#------------------------------------------------------------------------------- + +project(Serial-Studio) + +find_package( + Qt6 REQUIRED + COMPONENTS + Core + Qml +) + #------------------------------------------------------------------------------- # Project information #------------------------------------------------------------------------------- @@ -179,19 +191,6 @@ if (UNIX AND NOT APPLE) set(PROJECT_EXECUTABLE "serial-studio") endif() -#------------------------------------------------------------------------------- -# Define project name & find Qt packages for correct CPack calls -#------------------------------------------------------------------------------- - -project(Serial-Studio) - -find_package( - Qt6 REQUIRED - COMPONENTS - Core - Qml -) - #------------------------------------------------------------------------------- # Add subdirectories #-------------------------------------------------------------------------------