-
Notifications
You must be signed in to change notification settings - Fork 460
/
External_python-smmap.cmake
45 lines (36 loc) · 1.18 KB
/
External_python-smmap.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
set(proj python-smmap)
# Set dependency list
set(${proj}_DEPENDENCIES python python-setuptools)
if(NOT DEFINED Slicer_USE_SYSTEM_${proj})
set(Slicer_USE_SYSTEM_${proj} ${Slicer_USE_SYSTEM_python})
endif()
# Include dependent projects if any
ExternalProject_Include_Dependencies(${proj} PROJECT_VAR proj DEPENDS_VAR ${proj}_DEPENDENCIES)
if(Slicer_USE_SYSTEM_${proj})
ExternalProject_FindPythonPackage(
MODULE_NAME "smmap"
REQUIRED
)
endif()
if(NOT Slicer_USE_SYSTEM_${proj})
set(_version "2.0.3")
ExternalProject_Add(${proj}
${${proj}_EP_ARGS}
URL "https://pypi.python.org/packages/48/d8/25d9b4b875ab3c2400ec7794ceda8093b51101a9d784da608bf65ab5f5f5/smmap2-${_version}.tar.gz"
URL_MD5 "2d07872c7439040678670860d579b4c4"
DOWNLOAD_DIR ${CMAKE_BINARY_DIR}
SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ${PYTHON_EXECUTABLE} setup.py install
LOG_INSTALL 1
DEPENDS
${${proj}_DEPENDENCIES}
)
ExternalProject_GenerateProjectDescription_Step(${proj}
VERSION ${_version}
)
else()
ExternalProject_Add_Empty(${proj} DEPENDS ${${proj}_DEPENDENCIES})
endif()