forked from fblumenthal/buildem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qimage2ndarray.cmake
42 lines (33 loc) · 1.3 KB
/
qimage2ndarray.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
42
#
# Install qimage2ndarray libraries from source
#
if (NOT qimage2ndarray_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
#include (PatchSupport)
include (numpy)
include (pyqt4)
# The 1.3 tarball from PyPi seems malformed:
# it doesn't have an /include directory!
# Instead, we pull directly from github.
external_git_repo (qimage2ndarray
release-1.3
https://github.com/hmeine/qimage2ndarray)
message ("Installing ${qimage2ndarray_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${qimage2ndarray_NAME}
DEPENDS ${numpy_NAME} ${pyqt4_NAME}
PREFIX ${BUILDEM_DIR}
GIT_REPOSITORY ${qimage2ndarray_URL}
GIT_TAG ${qimage2ndarray_TAG}
UPDATE_COMMAND ""
PATCH_COMMAND ""
LIST_SEPARATOR ^^
CONFIGURE_COMMAND ""
BUILD_COMMAND ${BUILDEM_ENV_STRING} PYTHONPATH=${BUILDEM_PYTHONPATH} ${PYTHON_EXE} ${qimage2ndarray_SRC_DIR}/setup.py build
INSTALL_COMMAND ${BUILDEM_ENV_STRING} PYTHONPATH=${BUILDEM_PYTHONPATH} ${PYTHON_EXE} ${qimage2ndarray_SRC_DIR}/setup.py install --prefix=${PYTHON_PREFIX}
BUILD_IN_SOURCE 1
)
set_target_properties(${qimage2ndarray_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT qimage2ndarray_NAME)