Permalink
Browse files

add a local eigen build too

  • Loading branch information...
1 parent ea5e768 commit 13b8c9f4487384195fc391fbbf94e4e7d2ac01cb rdkit committed Nov 25, 2016
Showing with 96 additions and 0 deletions.
  1. +32 −0 eigen/bld.bat
  2. +9 −0 eigen/build.sh
  3. +36 −0 eigen/meta.yaml
  4. +5 −0 eigen/run_test.sh
  5. +13 −0 eigen/test.cc
  6. +1 −0 rdkit/meta.yaml
View
@@ -0,0 +1,32 @@
+mkdir build
+cd build
+
+set CMAKE_CONFIG="Release"
+
+cmake .. -LAH -G"NMake Makefiles" ^
+ -DCMAKE_BUILD_TYPE=%CMAKE_CONFIG% ^
+ -DINCLUDE_INSTALL_DIR=%LIBRARY_INC% ^
+ -DLIB_INSTALL_DIR=%LIBRARY_LIB% ^
+ -DBIN_INSTALL_DIR=%LIBRARY_BIN%
+
+cmake --build . --config %CMAKE_CONFIG% --target ALL_BUILD
+cmake --build . --config %CMAKE_CONFIG% --target INSTALL
+if errorlevel 1 exit 1
+
+rem Just make the basic tests as all the tests take too long to run.
+FOR /L %%A IN (1,1,7) DO (
+ cmake --build . --config %CMAKE_CONFIG% --target basicstuff_%%A
+)
+ctest -R basicstuff*
+if errorlevel 1 exit 1
+goto :eof
+
+:TRIM
+ SetLocal EnableDelayedExpansion
+ Call :TRIMSUB %%%1%%
+ EndLocal & set %1=%tempvar%
+ GOTO :eof
+
+ :TRIMSUB
+ set tempvar=%*
+ GOTO :eof
View
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+mkdir build
+cd build
+
+cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_BUILD_TYPE=Release ..
+make install
+make basicstuff
+ctest -R basicstuff*
View
@@ -0,0 +1,36 @@
+{% set version = "3.2.8" %}
+
+package:
+ name: eigen
+ version: {{ version }}
+
+source:
+ fn: eigen-{{ version }}.tar.gz
+ url: http://bitbucket.org/eigen/eigen/get/{{ version }}.tar.gz
+ sha1: 574b0732f7e04ecfa91597afb2f69bc44f3387e6
+
+build:
+ number: 2
+
+requirements:
+ build:
+ - cmake
+ - python # [win]
+
+test:
+ files:
+ - test.cc
+
+ commands:
+ - test -d $PREFIX/include/eigen3 # [unix]
+ - if not exist %PREFIX%\\Library\\include\\Eigen exit 1 # [win]
+
+about:
+ home: http://eigen.tuxfamily.org/
+ license: MPL2
+ summary: C++ template library for linear algebra
+
+extra:
+ recipe-maintainers:
+ - jakirkham
+ - patricksnape
View
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+g++ -I${PREFIX}/include -o test test.cc
+
+./test
View
@@ -0,0 +1,13 @@
+#include <eigen3/Eigen/Dense>
+#include <cassert>
+
+using Eigen::MatrixXf;
+
+int
+main(void)
+{
+ MatrixXf m(1, 1);
+ m(0, 0) = 1.0;
+ assert(m(0, 0) == 1.0);
+ return 0;
+}
View
@@ -26,6 +26,7 @@ requirements:
- freetype
- nox [unix]
- cairo [unix]
+ - eigen
- pandas
run:
- boost ==1.56.0 [unix]

0 comments on commit 13b8c9f

Please sign in to comment.