forked from fblumenthal/buildem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chatty.cmake
49 lines (39 loc) · 1.48 KB
/
chatty.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
43
44
45
46
47
48
#
# Install chatty libraries from source
#
if (NOT chatty_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
include (python)
include (boost)
include (numpy)
include (vigra)
set(CHATTY_UPDATE_COMMAND git checkout master && git pull)
external_git_repo (chatty
HEAD
https://github.com/thorbenk/chatty)
message ("Installing ${chatty_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${chatty_NAME}
DEPENDS ${python_NAME} ${boost_NAME} ${numpy_NAME} ${vigra_NAME}
PREFIX ${BUILDEM_DIR}
GIT_REPOSITORY ${chatty_URL}
GIT_TAG ${chatty_TAG}
UPDATE_COMMAND ${CHATTY_UPDATE_COMMAND}
PATCH_COMMAND ""
CONFIGURE_COMMAND ${BUILDEM_ENV_STRING} ${CMAKE_COMMAND}
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=${BUILDEM_DIR}
-DCMAKE_PREFIX_PATH=${BUILDEM_DIR}
-DCMAKE_CXX_FLAGS=${BUILDEM_ADDITIONAL_CXX_FLAGS}
-DPYTHON_EXECUTABLE=${PYTHON_EXE}
-DPYTHON_INCLUDE_DIR=${PYTHON_PREFIX}/include/python2.7
"-DPYTHON_LIBRARY=${PYTHON_PREFIX}/lib/libpython2.7.${BUILDEM_PLATFORM_DYLIB_EXTENSION}"
-DPYTHON_SITE_PACKAGES=${PYTHON_PREFIX}/lib/python2.7/site-packages
-DBoost_LIBRARY_DIRS=${BUILDEM_DIR}/lib
${chatty_SRC_DIR}
BUILD_COMMAND ${BUILDEM_ENV_STRING} $(MAKE)
INSTALL_COMMAND ${BUILDEM_ENV_STRING} $(MAKE) install
)
endif (NOT chatty_NAME)