Archived issue #0023955

Improve CMake build scripts to make tests operable after install

Open CASCADEOCCT:Codingclosed1 public note

Search issues

Description

It is necessary to improve CMake build scripts for OCCT to allow running tests on the built version without manual customization.

At least two problems should be addressed:

- env.bat generated by install does not define CASROOT, which is assumed to be defined (e.g. in XML tests)
- Test scripts and data files are not installed

The simplest way to solve both issues is to define CASROOT in env.bat pointing to directory containing OCCT sources. Further, an option can be provided to install tests along with binaries, in this case test scripts will be copied to install dir and CASROOT can be set there; note however that it will work only if folder 'res' is renamed to 'src'.

The layout of install folders should likely be revised; check Linux standards http://www.debian.org/doc/packaging-manuals/fhs/fhs-2.3.html and OCE practice.

Public activity

1 archived note

Participants are labeled by their role within this record.

01Commenter 1
Fix has been integrated into master of occt-wok repository