Skip to content

Commit

Permalink
hobu's current cmake configu that works
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Nov 11, 2016
1 parent b67a448 commit 01151bd
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions cmake/examples/hobu-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,6 @@ set PDAL_DIR=.

:: Where is your OSGeo4W installed (recommended basic way to satisfy dependent libs)
set OSGEO4W_DIR=C:\OSGeo4W64
set PATH=%PATH%;%OSGEO4W_DIR%\bin;C:\projects\pdal\build\src\util

set BOOST=%OSGEO4W_DIR%

:: Where is boost installed?
rem set BOOST_DIR=c:\utils\boost_1_49_0
REM set BOOST_DIR=%PDAL_DIR%\boost

:: CARIS
REM set CARIS_ENABLED=ON
set CARIS_INCLUDE_DIR=%CARIS_DIR%\include
set CARIS_LIBRARY=%CARIS_DIR%\caris.lib

:: GDAL
set GDAL_ENABLED=ON
Expand Down Expand Up @@ -65,9 +53,9 @@ set LIBXML2_LIBRARIES=%OSGEO4W_DIR%\lib\libxml2.lib

:: Python
set PYTHON_ENABLED=ON
REM set PYTHON_EXECUTABLE=%OSGEO4W_DIR\bin\python27.exe
REM set PYTHON_INCLUDE_DIR=%OSGEO4W_DIR\apps\python27\include
REM set PYTHON_LIBRARY=%OSGEO4W_DIR\apps\python27\libs\python27.lib
set PYTHON_EXECUTABLE=%OSGEO4W_DIR\bin\python27.exe
set PYTHON_INCLUDE_DIR=%OSGEO4W_DIR\apps\python27\include
set PYTHON_LIBRARY=%OSGEO4W_DIR\apps\python27\libs\python27.lib



Expand All @@ -78,29 +66,20 @@ del /S /Q CMakeFiles
mkdir build
cd %PDAL_DIR%/build
cmake -G %GENERATOR% ^
-DBOOST_INCLUDEDIR=%BOOST%\include\boost-1_56 -DCMAKE_INSTALL_PREFIX=C:\dev\PDAL\built ^
-DBOOST_LIBRARYDIR=%BOOST%\lib -DCMAKE_BUILD_TYPE=Release -DBoost_DEBUG=ON -DBoost_COMPILER="-vc110" ^
-DWITH_GEOTIFF=%GEOTIFF_ENABLED% ^
-DBUILD_PLUGIN_OCI=%ORACLE_ENABLED% ^
-DBUILD_PLUGIN_PGPOINTCLOUD=ON ^
-DWITH_LASZIP=%LASZIP_ENABLED% ^
-DWITH_LIBXML2=%LIBXML2_ENABLED% ^
-DWITH_PYTHON=%PYTHON_ENABLED% ^
-DBUILD_PLUGIN_PYTHON=%PYTHON_ENABLED% ^
-DBUILD_PLUGIN_NITF=ON ^
-DBUILD_PLUGIN_HEXBIN=ON ^
-DPYTHON_EXECUTABLE=%OSGEO4W_DIR%\bin\python.exe ^
-DPYTHON_INCLUDE_DIR=%OSGEO4W_DIR%\apps\python27\include ^
-DPYTHON_LIBRARY=%OSGEO4W_DIR%\apps\python27\libs\python27.lib ^
-DNUMPY_INCLUDE_DIR=%OSGEO4W_DIR%\apps\python27\lib\site-packages\numpy\core\include ^
-DNUMPY_VERSION=1.8.1 ^
-DNUMPY_VERSION=1.11.0 ^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
-DCMAKE_VERBOSE_MAKEFILE=OFF ^
-DBUILD_PLUGIN_SQLITE=ON ^
-DBUILD_PLUGIN_PCL=OFF ^
..
cd ..

rem -DBOOST_INCLUDEDIR=%BOOST_DIR% ^
rem -DNUMPY_INCLUDE_DIR=%OSGEO4W_DIR%\apps\python27\lib\site-packages\numpy\core\include ^
rem -DPYTHONPATH=%OSGEO4W_DIR%\apps\python27\lib\site-packages ^
rem -DPYTHON_LIBRARY=%PYTHON_LIBRARY% ^

0 comments on commit 01151bd

Please sign in to comment.