fix build without Qt

This commit is contained in:
2020-09-14 16:48:32 +03:00
parent 9844c773cd
commit d50223f1cf
2 changed files with 32 additions and 28 deletions

View File

@@ -13,10 +13,11 @@ if ("x${CMAKE_MODULE_PATH}" STREQUAL "x")
endif()
find_package(PIP REQUIRED)
find_package(QAD)
include(SHSTKMacros)
include(QtWraps)
shstk_begin_project(cd CD)
if(QAD_FOUND)
include(QtWraps)
include(SHSTKQtMacros)
shstk_qt_founded(QtVersions)
@@ -48,9 +49,10 @@ install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
set(_qt_libs cd_core)
set(_qt_plugs)
set(_qt_apps )
endif()
add_subdirectory(libs)
if (UTILS)
if (UTILS AND QAD_FOUND)
add_subdirectory(utils)
endif()

View File

@@ -1 +1,3 @@
if (QAD_FOUND)
cd_library(qt "Gui;Widgets" "cd_core;QAD::PIQt;QAD::Graphic")
endif()