forked from janelia-flyem/buildem
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlibtiff.cmake
More file actions
40 lines (32 loc) · 1.03 KB
/
libtiff.cmake
File metadata and controls
40 lines (32 loc) · 1.03 KB
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
#
# Install libtiff from source
#
if (NOT libtiff_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
include (libjpeg)
external_source (libtiff
4.0.3
tiff-4.0.3.tar.gz
051c1068e6a0627f461948c365290410
ftp://ftp.remotesensing.org/pub/libtiff)
message ("Installing ${libtiff_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${libtiff_NAME}
DEPENDS ${libjpeg_NAME}
PREFIX ${BUILDEM_DIR}
URL ${libtiff_URL}
URL_MD5 ${libtiff_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ${BUILDEM_ENV_STRING} ./configure
--prefix=${BUILDEM_DIR}
LDFLAGS=${BUILDEM_LDFLAGS}
CPPFLAGS=-I${BUILDEM_DIR}/include
BUILD_COMMAND ${BUILDEM_ENV_STRING} make
BUILD_IN_SOURCE 1
INSTALL_COMMAND ${BUILDEM_ENV_STRING} make install
)
set_target_properties(${libtiff_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT libtiff_NAME)