mctools / mcpl

Monte Carlo Particle Lists
https://mctools.github.io/mcpl/
Other
29 stars 13 forks source link

Add basic ingredients for CONDA/cl.exe build for Windows. #78

Open willend opened 8 months ago

willend commented 8 months ago

This PR includes

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

cmake -DCMAKE_INSTALL_PREFIX=%PREFIX%  ^
-S %SRCDIR% -G "NMake Makefiles"  ^
-DBUILD_SHARED_LIBS=ON -DMCPL_DISABLE_CXX=ON ^
-DMCPL_NOTOUCH_CMAKE_BUILD_TYPE=ON  ^
-DMCPL_ENABLE_RPATHMOD=OFF  ^
-DCMAKE_INSTALL_LIBDIR=lib - ^
DCMAKE_BUILD_TYPE=Release ^
-DMCPL_ENABLE_EXAMPLES=OFF  ^
-DMCPL_ENABLE_PYTHON=OFF  ^
-DMCPL_ENABLE_ZLIB=USEPREINSTALLED  ^
-DMCPL_CONDA_WINDOWS=ON  ^
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON  ^
%CMAKE_ARGS%

cmake --build . --target install --config Release

(- Hinges on conda dependencies getopt-win32, zlib etc.)