forked from janelia-flyem/buildem
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathh5py.cmake
41 lines (33 loc) · 1.09 KB
/
h5py.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Install h5py library from source
#
if (NOT h5py_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
include (python)
include (hdf5)
include (numpy)
external_source (h5py
2.1.0
h5py-2.1.0.tar.gz
a6f0d15cc5e51c322479822f5cc6c1d6
http://h5py.googlecode.com/files/h5py-2.1.0.tar.gz)
message ("Installing ${h5py_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${h5py_NAME}
DEPENDS ${python_NAME} ${hdf5_NAME} ${numpy_NAME}
PREFIX ${BUILDEM_DIR}
URL ${h5py_URL}
URL_MD5 ${h5py_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ${BUILDEM_ENV_STRING} ${PYTHON_EXE} setup.py build
--hdf5=${BUILDEM_DIR}
BUILD_IN_SOURCE 1
TEST_COMMAND ${BUILDEM_ENV_STRING} ${PYTHON_EXE} setup.py test
INSTALL_COMMAND ${BUILDEM_ENV_STRING} ${PYTHON_EXE} setup.py install
)
set_target_properties(${h5py_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT h5py_NAME)