FindQAD.cmake
This commit is contained in:
@@ -18,11 +18,7 @@ These targets include directories and dependencies
|
||||
|
||||
cmake_policy(SET CMP0011 NEW) # don`t affect includer policies
|
||||
cmake_policy(SET CMP0020 NEW) # Automatically link Qt executables to qtmain target on Windows
|
||||
if(NOT SOME_QT_FOUND)
|
||||
message(WARNING "No qt found, please install qt")
|
||||
set(QAD_FOUND OFF CACHE BOOL "")
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT BUILDING_qad)
|
||||
find_package(PIP QUIET)
|
||||
include(QtWraps)
|
||||
@@ -34,6 +30,13 @@ shstk_is_parent_exists(hasParent PARENT_DIRECTORY)
|
||||
shstk_set_find_dirs(qad)
|
||||
set(_SEARCH_DIR ${qad_LIBDIR})
|
||||
|
||||
find_qt(Core QUIET)
|
||||
if(NOT SOME_QT_FOUND)
|
||||
message(WARNING "No qt found, please install qt")
|
||||
set(QAD_FOUND OFF CACHE BOOL "")
|
||||
return()
|
||||
endif()
|
||||
|
||||
if (NOT BUILDING_qad)
|
||||
list(APPEND _SEARCH_DIR $ENV{SMSDK_DIR}/lib)
|
||||
shstk_find_header(qad QAD "qad_version.h" "")
|
||||
|
||||
Reference in New Issue
Block a user