From 46661746a7fdc3951d4e8cf932f8f87d04f35cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Thu, 5 Mar 2020 08:02:25 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@724 a8b55f48-bf90-11e4-a774-851b48703e85 --- CMakeLists.txt | 8 +++----- qad/CMakeLists.txt | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f223fc..2b0c671 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,12 +125,10 @@ if (SomeQtFound) message(STATUS "Building Qt-derived targets for ${QtVersions}") add_subdirectory(qad) set(_DIRS piqt piqt_utils qcd_utils) - if (QGLVIEW) - if (Qt5) - #list(APPEND _DIRS qglview) - list(APPEND _DIRS qglengine) + if (Qt5) + if (QGLVIEW) + list(APPEND _DIRS qglview) endif() - else() if (QGLENGINE) list(APPEND _DIRS qglengine) endif() diff --git a/qad/CMakeLists.txt b/qad/CMakeLists.txt index 60866ab..9f1fcae 100644 --- a/qad/CMakeLists.txt +++ b/qad/CMakeLists.txt @@ -78,7 +78,7 @@ macro(qad_install _TARGET _H_FILES _QM_FILES) qt_install(TARGETS ${_TARGET} DESTINATION QtBin) qt_install(FILES "${_QM_FILES}" DESTINATION QtLang) else() - if(NOT _H_FILES STREQUAL "") + if(NOT "x${_H_FILES}" STREQUAL "x") install(FILES ${_H_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/qad) endif() qt_install(TARGETS ${_TARGET} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) @@ -86,7 +86,7 @@ macro(qad_install _TARGET _H_FILES _QM_FILES) else() qt_install(TARGETS ${_TARGET} DESTINATION bin) qt_install(TARGETS ${_TARGET} DESTINATION lib) - if(NOT _H_FILES STREQUAL "") + if(NOT "x${_H_FILES}" STREQUAL "x") install(FILES ${_H_FILES} DESTINATION include/qad) endif() endif()