-
Notifications
You must be signed in to change notification settings - Fork 7
/
lemon.cmake
37 lines (30 loc) · 1.04 KB
/
lemon.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
#
# Install lemon from source
#
if (NOT lemon_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
external_source (lemon
1.2.3
lemon-1.2.3.tar.gz
750251a77be450ddddedab14e5163afb
http://lemon.cs.elte.hu/pub/sources
FORCE)
message ("Installing ${lemon_NAME} into ilastik build area: ${ILASTIK_DEPENDENCY_DIR} ...")
ExternalProject_Add(${lemon_NAME}
DEPENDS ${python_NAME}
PREFIX ${ILASTIK_DEPENDENCY_DIR}
URL ${lemon_URL}
URL_MD5 ${lemon_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ${CMAKE_COMMAND} ${lemon_SRC_DIR}
-G ${CMAKE_GENERATOR}
-DCMAKE_INSTALL_PREFIX=${ILASTIK_DEPENDENCY_DIR}
-DPYTHON_EXECUTABLE=${PYTHON_EXE}
BUILD_COMMAND devenv LEMON.sln /build Release /project ALL_BUILD
INSTALL_COMMAND devenv LEMON.sln /build Release /project INSTALL
)
set_target_properties(${lemon_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT lemon_NAME)