-
Notifications
You must be signed in to change notification settings - Fork 7
/
nasm.cmake
30 lines (23 loc) · 827 Bytes
/
nasm.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
#
# Install nasm from source
#
if (NOT nasm_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
set(nasm_NAME nasm-2.10)
set(nasm_PATH "${ILASTIK_DEPENDENCY_DIR}/src/${nasm_NAME}")
set(nasm_EXE "${nasm_PATH}/nasm.exe")
message ("Installing ${nasm_NAME} into ilastik build area: ${ILASTIK_DEPENDENCY_DIR} ...")
ExternalProject_Add(${nasm_NAME}
PREFIX ${ILASTIK_DEPENDENCY_DIR}
URL http://www.nasm.us/pub/nasm/releasebuilds/2.10.07/win32/nasm-2.10.07-win32.zip
URL_MD5 1dafe433d8c83854188934617eec3032
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_IN_SOURCE 1
INSTALL_COMMAND ""
)
set_target_properties(${nasm_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT nasm_NAME)