-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
:: Create build directory | ||
mkdir build | ||
cd build | ||
set BUILD_CONFIG=Release | ||
|
||
:: CMake | ||
cmake .. ^ | ||
-G "Ninja" ^ | ||
-DCMAKE_BUILD_TYPE=%BUILD_CONFIG% ^ | ||
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ | ||
-DBOOST_ROOT:PATH="%PREFIX%" ^ | ||
-DENABLE_TESTING:BOOL=ON ^ | ||
-DBUILD_SHARED_LIBS:BOOL=OFF ^ | ||
-DCMAKE_C_COMPILER="cl.exe" ^ | ||
-DCMAKE_CXX_COMPILER="cl.exe" | ||
if errorlevel 1 exit 1 | ||
|
||
:: Compile and install | ||
ninja install | ||
if errorlevel 1 exit 1 | ||
|
||
:: Run tests | ||
ctest -V | ||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
# Create build directory | ||
mkdir build | ||
cd build | ||
BUILD_CONFIG=Release | ||
|
||
# Specify Python | ||
case $(uname | tr '[:upper:]' '[:lower:]') in | ||
linux*) | ||
export PYTHON_LIBRARY="${PREFIX}/lib/libpython${PY_VER}.so" | ||
export PYTHON_INCLUDE_DIR="${PREFIX}/include/python${PY_VER}" | ||
;; | ||
darwin*) | ||
export PYTHON_LIBRARY="${PREFIX}/lib/libpython${PY_VER}.dylib" | ||
export PYTHON_INCLUDE_DIR="${PREFIX}/include/python${PY_VER}" | ||
;; | ||
*) | ||
esac | ||
|
||
# CMake | ||
cmake .. \ | ||
-G "Ninja" \ | ||
-DCMAKE_BUILD_TYPE=$BUILD_CONFIG \ | ||
-DCMAKE_PREFIX_PATH:PATH="${PREFIX}" \ | ||
-DCMAKE_INSTALL_PREFIX:PATH="${PREFIX}" \ | ||
-DCMAKE_INSTALL_RPATH:PATH="${PREFIX}/lib" \ | ||
-DBOOST_ROOT:PATH="${PREFIX}" \ | ||
-DPYTHON_LIBRARY:FILEPATH="${PYTHON_LIBRARY}" \ | ||
-DPYTHON_INCLUDE_DIR:PATH="${PYTHON_INCLUDE_DIR}" \ | ||
-DENABLE_TESTING:BOOL=ON | ||
|
||
# Compile and install | ||
ninja install -v | ||
|
||
# Run tests | ||
ctest -V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
package: | ||
name: vtkbone | ||
version: {{ GIT_DESCRIBE_TAG | lower | replace("v","") }} | ||
|
||
source: | ||
path: ./../../ | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- cmake >=3.1.0 | ||
- ninja | ||
- gtest | ||
- boost >=1.59 | ||
- libnetcdf | ||
- pqctio | ||
- aimio | ||
- vtk =6.3 | ||
run: | ||
- boost >=1.59 | ||
- libnetcdf | ||
- pqctio | ||
- aimio | ||
- vtk =6.3 | ||
|
||
about: | ||
home: https://github.com/Numerics88/vtkbone | ||
license: MIT | ||
license_family: MIT | ||
license_file: LICENSE | ||
summary: 'VTK classes for bone FEA' | ||
description: | | ||
VTK classes for processing of finite element models derived from micro-CT. vtkbone was formerly vtkn88. | ||
dev_url: https://github.com/Numerics88/vtkbone |