diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2018-01-19 18:34:40 +0000 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2018-01-23 22:45:21 +0000 |
commit | 514a10a8adf935f9254b9c25da200b4317277171 (patch) | |
tree | e888c3c58e0032cb589935eef1aab3ab72bfca2c /recipes/regularizers/bld.bat | |
parent | 113762f1086a5e202f81b35e624da3d28402d70e (diff) | |
download | regularization-514a10a8adf935f9254b9c25da200b4317277171.tar.gz regularization-514a10a8adf935f9254b9c25da200b4317277171.tar.bz2 regularization-514a10a8adf935f9254b9c25da200b4317277171.tar.xz regularization-514a10a8adf935f9254b9c25da200b4317277171.zip |
Working conda recipe for Windows
Diffstat (limited to 'recipes/regularizers/bld.bat')
-rw-r--r-- | recipes/regularizers/bld.bat | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes/regularizers/bld.bat b/recipes/regularizers/bld.bat new file mode 100644 index 0000000..6f2f7e7 --- /dev/null +++ b/recipes/regularizers/bld.bat @@ -0,0 +1,21 @@ +IF NOT DEFINED CIL_VERSION ( +ECHO CIL_VERSION Not Defined. +exit 1 +) + +mkdir "%SRC_DIR%\build" +ROBOCOPY /E "%RECIPE_DIR%\..\..\Core" "%SRC_DIR%\build" +::ROBOCOPY /E "%RECIPE_DIR%\..\..\Wrappers\python\src" "%SRC_DIR%\build\module" +cd "%SRC_DIR%\build" + +echo "we should be in %SRC_DIR%\build" + +cmake -G "NMake Makefiles" -DLIBRARY_LIB="%CONDA_PREFIX%\lib" -DLIBRARY_INC="%CONDA_PREFIX%" -DCMAKE_INSTALL_PREFIX="%PREFIX%\Library" "%SRC_DIR%\build" + +::-DBOOST_LIBRARYDIR="%CONDA_PREFIX%\Library\lib" -DBOOST_INCLUDEDIR="%CONDA_PREFIX%\Library\include" -DBOOST_ROOT="%CONDA_PREFIX%\Library\lib" + +:: Build C library +nmake install +if errorlevel 1 exit 1 + +:: Install step |