mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-23 07:37:23 +08:00
cmake: less verbose when no Qt present
This commit is contained in:
parent
65d9408879
commit
00248d9aa7
1 changed files with 4 additions and 5 deletions
|
@ -1,10 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(proxmark3)
|
project(proxmark3)
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
set(CMAKE_AUTORCC ON)
|
|
||||||
set(CMAKE_AUTOUIC ON)
|
|
||||||
|
|
||||||
if(CMAKE_VERSION VERSION_LESS "3.7.0")
|
if(CMAKE_VERSION VERSION_LESS "3.7.0")
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
endif()
|
endif()
|
||||||
|
@ -28,7 +24,7 @@ set(QT_PACKAGELIST
|
||||||
)
|
)
|
||||||
set(Qt5_FOUND ON)
|
set(Qt5_FOUND ON)
|
||||||
foreach(_qt_package IN LISTS QT_PACKAGELIST)
|
foreach(_qt_package IN LISTS QT_PACKAGELIST)
|
||||||
find_package(${_qt_package} ${QT_FIND_PACKAGE_OPTIONS})
|
find_package(${_qt_package} QUIET ${QT_FIND_PACKAGE_OPTIONS})
|
||||||
if(NOT ${_qt_package}_FOUND)
|
if(NOT ${_qt_package}_FOUND)
|
||||||
set(Qt5_FOUND OFF)
|
set(Qt5_FOUND OFF)
|
||||||
endif(NOT ${_qt_package}_FOUND)
|
endif(NOT ${_qt_package}_FOUND)
|
||||||
|
@ -217,6 +213,9 @@ endif (MINGW)
|
||||||
|
|
||||||
if (Qt5_FOUND)
|
if (Qt5_FOUND)
|
||||||
message("Qt5 library found, building gui :)")
|
message("Qt5 library found, building gui :)")
|
||||||
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
set(CMAKE_AUTORCC ON)
|
||||||
|
set(CMAKE_AUTOUIC ON)
|
||||||
set (TARGET_SOURCES
|
set (TARGET_SOURCES
|
||||||
src/proxgui.cpp
|
src/proxgui.cpp
|
||||||
src/proxguiqt.cpp
|
src/proxguiqt.cpp
|
||||||
|
|
Loading…
Reference in a new issue