CMAKE infrastructure to ensure the CONDA include path is explicitly set for cl.exe to pick up
In util/ I have put a .bat snippet to enable python from the surrounding conda env being run on the bin/mcpl-config python script
zlib is successfully picked up from CONDA via the above include-workaround
Once this is in place, we should be ready to build a Windows package with enough features for a functional McStas release on Windows / conda via a build.bat with something like
This PR includes
src/mcpl/mcpl.c
for missing windows unistd/getoptunistd.h
insrc/mcpl
(was taken from https://stackoverflow.com/a/826027/1202830 - author gives no explicit license there)CMAKE
infrastructure to ensure theCONDA
include path is explicitly set forcl.exe
to pick uputil/
I have put a .bat snippet to enablepython
from the surroundingconda
env being run on thebin/mcpl-config
python scriptzlib
is successfully picked up fromCONDA
via the above include-workaroundOnce this is in place, we should be ready to build a Windows package with enough features for a functional McStas release on Windows / conda via a build.bat with something like
(- Hinges on conda dependencies
getopt-win32
,zlib
etc.)