Files get installed directly under CMAKE_INSTALL_PREFIX
Currently files get installed directly below it:
-- Installing: /home/mblatt/opt/./libecl.so
-- Installing: /home/mblatt/opt/./libecl.so.2
-- Installing: /home/mblatt/opt/./libecl.so.2.4
-- Installing: /home/mblatt/opt/./Python
-- Installing: /home/mblatt/opt/./Python/.gitignore
-- Installing: /home/mblatt/opt/./Python/LICENSE
-- Installing: /home/mblatt/opt/./Python/MANIFEST.in
That is a bit surprising and unfortunate. Usually one would expects them to be in appropriate subdirectories, e.g. the libraries below ${CMAKE_INSTALL_PREFIX}/lib etc.
Seeing the same issue building on x86_64 and aarch64:
$ cmake -B Build-x86_64/ -DCMAKE_INSTALL_PREFIX=/cm/shared/apps/ResInsight/2025.4
Suggestions?
For the installation process we use a tool by Qt to create the file structure in the installation folder https://github.com/OPM/ResInsight/blob/dev/ApplicationExeCode/CMakeLists.txt#L486
https://doc.qt.io/qt-6/qt-generate-deploy-app-script.html
For the build we have not put any efforts into organizing the folders, we make sure that it is possible to run the produced executable directly from the build folder.
If you have a suggestion for improvements, please provide a PR.
Here is the organization of the install folder. I see that there are library files in bin, they should have been moved to lib.