Update CMakeLists.txt to define project at the start

This commit is contained in:
Alex Spataru 2024-11-20 11:12:04 -05:00 committed by GitHub
parent 9c887579fd
commit 3c2ac73eda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
#-------------------------------------------------------------------------------