forked from fblumenthal/buildem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cppunit.cmake
36 lines (29 loc) · 996 Bytes
/
cppunit.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 cppunit from source
#
if (NOT cppunit_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
external_source (cppunit
1.12.1
cppunit-1.12.1.tar.gz
bd30e9cf5523cdfc019b94f5e1d7fd19
http://downloads.sourceforge.net/project/cppunit/cppunit/1.12.1)
message ("Installing ${cppunit_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${cppunit_NAME}
PREFIX ${BUILDEM_DIR}
URL ${cppunit_URL}
URL_MD5 ${cppunit_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ${BUILDEM_ENV_STRING} ./configure
--prefix ${BUILDEM_DIR}
BUILD_COMMAND ${BUILDEM_ENV_STRING} $(MAKE)
BUILD_IN_SOURCE 1
TEST_COMMAND $(MAKE) check
INSTALL_COMMAND ${BUILDEM_ENV_STRING} $(MAKE) install
)
set_target_properties(${cppunit_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT cppunit_NAME)