Build/Compile Samples

Hello Guys,
I try to build the sample in OCCT-7_8_0/samples/qt/Tutorial, but there is error I can't solve.

CMake Error at CMakeLists.txt:3 (OCCT_INCLUDE_CMAKE_FILE):
Unknown CMake command "OCCT_INCLUDE_CMAKE_FILE".

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.22)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

What could be a problem? (Linux/Ubuntu22.04) (OCCT_7.8.0)

Thanks.
With respects, Dunja.

gkv311 n's picture

The CMakeLists.txt in this Qt sample is not an independent project, but rather a sub-project of OCCT CMake project.

You may enable building Qt samples via BUILD_SAMPLES_QT=ON variable while configuring OCCT building.