FindQAD.cmake

This commit is contained in:
2020-09-14 17:37:36 +03:00
parent 4aab13cfaf
commit f341211311

View File

@@ -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" "")