Skip to content

Samples - CMake configuration fix#643

Merged
dpasukhi merged 3 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:samples_fix
Jul 25, 2025
Merged

Samples - CMake configuration fix#643
dpasukhi merged 3 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:samples_fix

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

@dpasukhi dpasukhi commented Jul 24, 2025

  • Migrates legacy text-based FILES, PACKAGES, and EXTERNLIB configuration files to proper CMake format (.cmake extensions)
  • Updates CMakeLists.txt files to use modern CMake practices with explicit configurations and target-specific definitions
  • Modifies the qt_macro.cmake to work with the new CMake variable-based file management system

@dpasukhi dpasukhi added the 1. Samples OCCT open source samples (C#, QT, IOS, MFC and etc...) label Jul 24, 2025
@dpasukhi dpasukhi requested a review from Copilot July 24, 2025 18:27
@dpasukhi dpasukhi self-assigned this Jul 24, 2025
@dpasukhi dpasukhi added this to the Release 8.0 milestone Jul 24, 2025

This comment was marked as outdated.

- Created TriangulationSamples.h for triangulation sample implementation.
- Added Viewer2d.xml to define 2D viewer menu items and their corresponding sample functions.
- Implemented Viewer2dSamples.cxx and Viewer2dSamples.h to handle various 2D viewer samples including text, markers, fill areas, and grids.
- Created Viewer3d.xml to define 3D viewer menu items for lighting and selection modes.
- Implemented Viewer3dSamples.cxx and Viewer3dSamples.h to manage 3D viewer samples including light sources and shape presentations.
- Updated ApplicationCommon.cxx to point to the correct sample source directory for the new 2D and 3D viewer samples.
@dpasukhi dpasukhi marked this pull request as ready for review July 24, 2025 20:04
@dpasukhi dpasukhi requested a review from Copilot July 24, 2025 20:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the CMake configuration for Qt samples by migrating from legacy text-based configuration files to proper CMake format with .cmake extensions. The changes enable better integration with modern CMake practices and improve the build system's maintainability.

Key changes:

  • Converts text-based FILES, PACKAGES, and EXTERNLIB configuration files to CMake format
  • Updates CMakeLists.txt files to use target-specific definitions instead of global ADD_DEFINITIONS
  • Modifies qt_macro.cmake to work with the new variable-based file management system

Reviewed Changes

Copilot reviewed 50 out of 99 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
samples/qt/*/FILES.cmake New CMake files defining source files for each sample
samples/qt/*/PACKAGES.cmake New CMake files defining package lists for each sample
samples/qt/*/EXTERNLIB.cmake New CMake files defining external library dependencies
samples/qt/*/CMakeLists.txt Updated to use modern CMake practices with target-specific definitions
adm/cmake/qt_macro.cmake Modified to work with the new CMake variable-based file system
CMakeLists.txt Updated to load sample configuration files and correct file paths

Comment thread samples/qt/Tutorial/CMakeLists.txt
Comment thread samples/qt/OCCTOverview/CMakeLists.txt
Comment thread samples/qt/IESample/CMakeLists.txt
Comment thread samples/qt/AndroidQt/CMakeLists.txt
@dpasukhi dpasukhi requested a review from AtheneNoctuaPt July 25, 2025 09:12
@github-project-automation github-project-automation bot moved this from Todo to Integration in Maintenance Jul 25, 2025
@dpasukhi dpasukhi merged commit e42a043 into Open-Cascade-SAS:IR Jul 25, 2025
23 checks passed
@dpasukhi dpasukhi deleted the samples_fix branch July 25, 2025 09:38
@github-project-automation github-project-automation bot moved this from Integration to Done in Maintenance Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Samples OCCT open source samples (C#, QT, IOS, MFC and etc...)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

CMake Error at samples/qt/FuncDemo/CMakeLists.txt:8 (target_link_libraries):

3 participants