Enabled option to build QtViewer

This commit is contained in:
Dushyant Basson
2022-04-23 16:03:56 +05:30
committed by Thomas Krijnen
parent 0cf3c97eb2
commit 9cd3d73a23
+5 -2
View File
@@ -66,8 +66,8 @@ IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "Release") SET(CMAKE_BUILD_TYPE "Release")
ENDIF() ENDIF()
# TODO QtViewer is deprecated ATM as it uses the 0.4 API # QtViewer requires Qt5
# OPTION(BUILD_QTVIEWER "Build IfcOpenShell Qt GUI Viewer (requires Qt 4 framework)." OFF) OPTION(BUILD_QTVIEWER "Build IfcOpenShell Qt GUI Viewer" ON)
include(GNUInstallDirs) include(GNUInstallDirs)
if((BUILD_CONVERT OR BUILD_GEOMSERVER OR BUILD_IFCPYTHON) AND (NOT BUILD_IFCGEOM)) if((BUILD_CONVERT OR BUILD_GEOMSERVER OR BUILD_IFCPYTHON) AND (NOT BUILD_IFCGEOM))
message(STATUS "'IfcGeom' is required with current outputs") message(STATUS "'IfcGeom' is required with current outputs")
@@ -885,6 +885,9 @@ INSTALL(FILES ${SERIALIZERS_S_FILES}
) )
endif() endif()
IF(BUILD_QTVIEWER)
ADD_SUBDIRECTORY(../src/qtviewer qtviewer)
endif()
list(APPEND CPACK_SOURCE_IGNORE_FILES list(APPEND CPACK_SOURCE_IGNORE_FILES
.git .git