-
Notifications
You must be signed in to change notification settings - Fork 8
/
opengm.cmake
36 lines (28 loc) · 1021 Bytes
/
opengm.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
#
# Install opengm from source
#
if (NOT opengm_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
external_git_repo(opengm
HEAD
https://github.com/opengm/opengm.git)
message ("Installing ${opengm_NAME} into ilastik build area: ${ILASTIK_DEPENDENCY_DIR} ...")
ExternalProject_Add(${opengm_NAME}
PREFIX ${ILASTIK_DEPENDENCY_DIR}
GIT_REPOSITORY ${opengm_URL}
UPDATE_COMMAND "" # git pull
PATCH_COMMAND ""
CONFIGURE_COMMAND ${CMAKE_COMMAND} ${opengm_SRC_DIR}
-G ${CMAKE_GENERATOR}
-DCMAKE_INSTALL_PREFIX=${ILASTIK_DEPENDENCY_DIR}
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF
-DWITH_CPLEX=ON
BUILD_COMMAND ""
TEST_COMMAND ""
INSTALL_COMMAND devenv opengm2.sln /build Release /project INSTALL
)
set_target_properties(${opengm_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT opengm_NAME)