forked from fblumenthal/buildem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pil.cmake
44 lines (34 loc) · 1.09 KB
/
pil.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
# Install PIL (python imaging library) from source
#
# Note: tkinter, freetype2, and littlecms support has not been added.
# jpeg and zlib support is active.
if (NOT pil_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
include (python)
include (zlib)
include (libjpeg)
include (libpng)
external_source (pil
1.17
Imaging-1.1.7.tar.gz
fc14a54e1ce02a0225be8854bfba478e
http://effbot.org/downloads)
# Download and install pil
message ("Installing ${pil_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${pil_NAME}
DEPENDS ${python_NAME} ${zlib_NAME} ${libjpeg_NAME} ${libpng_NAME}
PREFIX ${BUILDEM_DIR}
URL ${pil_URL}
URL_MD5 ${pil_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ${BUILDEM_ENV_STRING} ${PYTHON_EXE} setup.py install
BUILD_IN_SOURCE 1
INSTALL_COMMAND ""
)
set_target_properties(${pil_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT pil_NAME)