forked from fblumenthal/buildem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
neulib_com.cmake
29 lines (25 loc) · 982 Bytes
/
neulib_com.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
#
# Install libneurolabi from source
#
macro(INSTALL_NEULIB libname config_args depends_args)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
external_git_repo(libneurolabi
HEAD
$ENV{HOME}/Work/neulib/.git
)
message ("Installing ${libneurolabi_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
message ("Configure args: ${config_args}")
ExternalProject_Add(${libneurolabi_NAME}
PREFIX ${BUILDEM_DIR}
DEPENDS ${depends_args}
GIT_REPOSITORY ${libneurolabi_URL}
GIT_TAG ${libneurolabi_TAG}
CONFIGURE_COMMAND git checkout master
BUILD_COMMAND ${BUILDEM_ENV_STRING} ${libneurolabi_SRC_DIR}/neurolabi/update_library --release ${config_args}
BUILD_IN_SOURCE 1
INSTALL_COMMAND ${BUILDEM_ENV_STRING} ${libneurolabi_SRC_DIR}/neurolabi/install_library ${BUILDEM_DIR} ${libname}
)
endmacro(INSTALL_NEULIB)