forked from fblumenthal/buildem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dos2unix.cmake
34 lines (27 loc) · 947 Bytes
/
dos2unix.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
#
# Install dos2unix from source
#
if (NOT dos2unix_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
external_source (dos2unix
6.0.2
dos2unix-6.0.2.tar.gz
11ee6ae80c8acd6d750399cbf4ab6bd9
http://downloads.sourceforge.net/project/dos2unix/dos2unix/6.0.2)
message ("Installing ${dos2unix_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${dos2unix_NAME}
PREFIX ${BUILDEM_DIR}
URL ${dos2unix_URL}
URL_MD5 ${dos2unix_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ${BUILDEM_ENV_STRING} $(MAKE) prefix=${BUILDEM_DIR}
BUILD_IN_SOURCE 1
INSTALL_COMMAND ${BUILDEM_ENV_STRING} $(MAKE) prefix=${BUILDEM_DIR} install
)
set_target_properties(${dos2unix_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT dos2unix_NAME)