mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
cmake: Add install command for qtViewer
This commit is contained in:
committed by
Thomas Krijnen
parent
b4135194ca
commit
02233f86cf
@@ -17,8 +17,6 @@
|
|||||||
# #
|
# #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1.3)
|
|
||||||
|
|
||||||
message("Running CMakeLists.txt in /src/qtviewer")
|
message("Running CMakeLists.txt in /src/qtviewer")
|
||||||
|
|
||||||
# Specify the Qt version and components to use
|
# Specify the Qt version and components to use
|
||||||
@@ -100,3 +98,5 @@ target_include_directories(${targetName} PUBLIC
|
|||||||
|
|
||||||
get_target_property(targetIncludeDirs ${targetName} INCLUDE_DIRECTORIES)
|
get_target_property(targetIncludeDirs ${targetName} INCLUDE_DIRECTORIES)
|
||||||
message(STATUS "target_include_directories: ${targetIncludeDirs}")
|
message(STATUS "target_include_directories: ${targetIncludeDirs}")
|
||||||
|
|
||||||
|
install(TARGETS ${targetName})
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ bool ParseIfcFile::Parse(
|
|||||||
settings.set("weld-vertices", false);
|
settings.set("weld-vertices", false);
|
||||||
settings.set("apply-default-materials", true);
|
settings.set("apply-default-materials", true);
|
||||||
|
|
||||||
IfcGeom::Iterator* it = new IfcGeom::Iterator(settings, &file);
|
IfcGeom::Iterator* it = new IfcGeom::Iterator(ifcopenshell::geometry::kernels::construct(&file, "opencascade", settings), settings, &file);
|
||||||
if (!it->initialize()) {
|
if (!it->initialize()) {
|
||||||
MessageLogger::log("Error: Iterator failed to initialize! Aborting.");
|
MessageLogger::log("Error: Iterator failed to initialize! Aborting.");
|
||||||
delete it;
|
delete it;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#define PARSEIFCFILE_H
|
#define PARSEIFCFILE_H
|
||||||
|
|
||||||
#include "../ifcgeom/Iterator.h"
|
#include "../ifcgeom/Iterator.h"
|
||||||
|
#include "../ifcgeom/hybrid_kernel.h"
|
||||||
#include "osg/Geometry"
|
#include "osg/Geometry"
|
||||||
#include "osg/Material"
|
#include "osg/Material"
|
||||||
#include "osg/MatrixTransform"
|
#include "osg/MatrixTransform"
|
||||||
|
|||||||
Reference in New Issue
Block a user