fix build without Qt
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
if (QAD_FOUND)
|
||||
cd_library(qt "Gui;Widgets" "cd_core;QAD::PIQt;QAD::Graphic")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user