Skip to content

Commit

Permalink
Added improved cmake_all.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
mwydmuch committed Dec 29, 2018
1 parent cc79517 commit fcb06b7
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions cmake_all.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@echo off
setlocal enabledelayedexpansion

:: %%% Configuration, set this variables to match your environment.
:: Configuration
:: %%% Set this variables to match your environment.
:: %%% CMake for Windws can be downloaded from https://cmake.org/download/

:: %%% Set build config
set PYTHON=ON
Expand All @@ -14,20 +16,27 @@ set LIB_DIR=C:\libs

:: API dependencies
:: %%% Set path to Boost library
:: %%% Prebuild Boost for MSVC can be downloaded from https://sourceforge.net/projects/boost/files/boost-binaries/
set BOOST_ROOT=%LIB_DIR%\boost
set BOOST_INCLUDEDIR=%BOOST_ROOT%
set BOOST_LIBRARYDIR=%BOOST_ROOT%\libs

:: Python
:: %%% Set Python version (27, 34, 35, 36) or change paths for other distributions
set PYTHON_VERSION=36
:: %%% Set Python version (27, 34, 35, 36, 37) or change paths for other distributions
:: %%% Python for Windows can be downloaded from https://www.python.org/downloads/windows/
set PYTHON_LOCATION=C:
set PYTHON_VERSION=37
set PYTHON_BIG_VERSION=%PYTHON_VERSION:~0,1%
set PYTHON_EXECUTABLE=C:\Python%PYTHON_VERSION%\python.exe
set PYTHON_INCLUDE_DIR=C:\Python%PYTHON_VERSION%\include
set PYTHON_LIBRARY=C:\Python%PYTHON_VERSION%\libs\python%PYTHON_VERSION%.lib
set NUMPY_INCLUDES=C:\Python%PYTHON_VERSION%\Lib\site-packages\numpy\core\include
set PYTHON_EXECUTABLE=%PYTHON_LOCATION%\Python%PYTHON_VERSION%\python.exe
set PYTHON_INCLUDE_DIR=%PYTHON_LOCATION%\Python%PYTHON_VERSION%\include
set PYTHON_LIBRARY=%PYTHON_LOCATION%\Python%PYTHON_VERSION%\libs\python%PYTHON_VERSION%.lib
set NUMPY_INCLUDES=%PYTHON_LOCATION%\Python%PYTHON_VERSION%\Lib\site-packages\numpy\core\include

:: %%% Install/upgrade numpy
%PYTHON_LOCATION%\Python%PYTHON_VERSION%\python.exe -m pip install numpy --upgrade

:: TODO: Add default Anaconda paths
:: TODO: Add Julia support

:: Rest of the script
::--------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit fcb06b7

Please sign in to comment.