Files
IfcOpenShell/src/interface/CMakeLists.txt
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
3.4 KiB
CMake
Raw Normal View History

2026-05-05 07:29:32 +10:00
# This file was generated with the assistance of an AI coding tool.
################################################################################
# #
# This file is part of IfcOpenShell. #
# #
# IfcOpenShell is free software: you can redistribute it and/or modify #
# it under the terms of the Lesser GNU General Public License as published by #
# the Free Software Foundation, either version 3.0 of the License, or #
# (at your option) any later version. #
# #
# IfcOpenShell is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# Lesser GNU General Public License for more details. #
# #
# You should have received a copy of the Lesser GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
################################################################################
message("Running CMakeLists.txt in /src/interface")
set(QT_VERSION 6 CACHE STRING "Qt version")
find_package(Qt${QT_VERSION} COMPONENTS Core Gui Widgets Svg REQUIRED PATHS ${QT_DIR})
set(INTERFACE_FILES
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/MockMainWindow.cpp
${CMAKE_CURRENT_SOURCE_DIR}/MockMainWindow.h
2026-05-05 09:40:58 +10:00
${CMAKE_CURRENT_SOURCE_DIR}/panels/models/ModelsPanelTypes.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/models/ModelsPanelWidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/panels/models/ModelsPanelWidget.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/models/ModelsPanelView.cpp
${CMAKE_CURRENT_SOURCE_DIR}/panels/models/ModelsPanelView.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/properties/PropertiesPanelTypes.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/properties/PropertiesPanelWidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/panels/properties/PropertiesPanelWidget.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/properties/PropertiesPanelView.cpp
${CMAKE_CURRENT_SOURCE_DIR}/panels/properties/PropertiesPanelView.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/spatial_hierarchy/SpatialHierarchyPanelTypes.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/spatial_hierarchy/SpatialHierarchyPanelWidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/panels/spatial_hierarchy/SpatialHierarchyPanelWidget.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/spatial_hierarchy/SpatialHierarchyPanelView.cpp
${CMAKE_CURRENT_SOURCE_DIR}/panels/spatial_hierarchy/SpatialHierarchyPanelView.h
2026-05-05 07:29:32 +10:00
${CMAKE_CURRENT_SOURCE_DIR}/interface_resources.qrc
)
add_executable(IfcInterfaceMockup ${INTERFACE_FILES})
set_target_properties(IfcInterfaceMockup PROPERTIES
AUTOMOC ON
AUTORCC ON
WIN32_EXECUTABLE ON
MACOSX_BUNDLE ON
)
target_link_libraries(IfcInterfaceMockup PRIVATE
IfcViewer
Qt${QT_VERSION}::Core
Qt${QT_VERSION}::Gui
Qt${QT_VERSION}::Svg
Qt${QT_VERSION}::Widgets
)
install(TARGETS IfcInterfaceMockup EXPORT ${IFCOPENSHELL_EXPORT_TARGETS})