mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Update CMakeLists.txt to define project at the start
This commit is contained in:
parent
9c887579fd
commit
3c2ac73eda
@ -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
|
||||
#-------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user