-
Notifications
You must be signed in to change notification settings - Fork 7
/
snappy.cmake
33 lines (25 loc) · 913 Bytes
/
snappy.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
#
# Install snappy from source
#
if (NOT snappy_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
external_git_repo(snappy
HEAD
https://github.com/ukoethe/snappy.git)
message ("Installing ${snappy_NAME} into ilastik build area: ${ILASTIK_DEPENDENCY_DIR} ...")
ExternalProject_Add(${snappy_NAME}
PREFIX ${ILASTIK_DEPENDENCY_DIR}
GIT_REPOSITORY ${snappy_URL}
UPDATE_COMMAND "" # git pull
PATCH_COMMAND ""
CONFIGURE_COMMAND ${CMAKE_COMMAND} ${snappy_SRC_DIR}
-G ${CMAKE_GENERATOR}
-DCMAKE_INSTALL_PREFIX=${ILASTIK_DEPENDENCY_DIR}
BUILD_COMMAND ""
TEST_COMMAND ""
INSTALL_COMMAND devenv snappy.sln /build Release /project INSTALL
)
set_target_properties(${snappy_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT snappy_NAME)