Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
e4908e4
Update FindCPLEX and cplex-shared to deal with the two different osx …
chaubold Feb 20, 2014
9dfbdb1
Merge pull request #27 from chaubold/upstream_master
stuarteberg Mar 10, 2014
aa36f56
Add janelia logo
DocSavage Mar 10, 2014
32f819e
Removed obsolete patchfile: cylemon.patch
stuarteberg Mar 13, 2014
f93c6a4
ilastik.cmake: Changed remote url to ilastik/ilastik-meta, not janeli…
stuarteberg Mar 17, 2014
c4d2d69
adds drmaa python
Mar 25, 2014
a641b2e
opengm.cmake: Compile with hdf5, boost, and python
stuarteberg Mar 31, 2014
30ee2fb
readme: Updated environment settings info for building on the janelia…
stuarteberg Mar 31, 2014
b2bc57f
Update go to 1.2.1
DocSavage Apr 2, 2014
73c22be
Added jsonschema.cmake
stuarteberg Apr 4, 2014
e22286e
ilastik.cmake: Added a new dependency: jsonschema
stuarteberg Apr 4, 2014
d1d751d
ilastik.cmake: Require opengm
stuarteberg Apr 9, 2014
4dfb371
opengm: Build without CPLEX if it can't be found.
stuarteberg Apr 9, 2014
d68f805
adds support for libdvidcpp
Apr 17, 2014
aa4490c
vigra.cmake: Explicitly set several cmake variables that locate libti…
stuarteberg Apr 30, 2014
4727054
qt4.cmake: Don't skip qt-accessibility.
stuarteberg Apr 30, 2014
c976e36
updates default boost -- vigra and neuroproof tested
May 19, 2014
069e908
adds atomic boost library for cppnetlib
May 20, 2014
aa938f8
Update psutil to fix https://github.com/ilastik/ilastik/issues/891
chaubold May 22, 2014
4a31ff9
BUILDEM_ENV_STRING: Add CC and CXX environment variables, based on CM…
stuarteberg May 23, 2014
6bffe0c
Merge branch 'master' of ssh://github.com/stuarteberg/buildem
stuarteberg May 23, 2014
e482142
BUILDEM_ENV_STRING: Add CC and CXX environment variables, based on CM…
stuarteberg May 23, 2014
fc8e2b7
Added futures.cmake (python futures module backported from Python 3)
stuarteberg May 27, 2014
7df9ed9
Updated scikit-image to 0.9.3
stuarteberg May 27, 2014
b634ef1
Merge branch 'master' of https://github.com/janelia-flyem/buildem
stuarteberg May 27, 2014
4d9ddf1
vtk.cmake: Added explicit search path to linker flags.
stuarteberg May 28, 2014
6f444ef
opengm: Added a patch to let us skip the sphinx docs build with a cma…
stuarteberg May 28, 2014
3f7d4cb
qt4.cmake: Don't build accessibility module, since causes build issue…
May 29, 2014
a4037ef
Merge pull request #29 from chaubold/fix/psutil
stuarteberg May 29, 2014
1cfa61e
vigra.cmake: On Mac, use -DWITH_BOOST_THREAD. Also, updated default …
stuarteberg May 29, 2014
1bb1de5
libtiff: Explicitly disable support for lzma compression.
stuarteberg Jun 6, 2014
4ec6cee
ilastik: environment setup scripts don't automatically clear the LD_L…
stuarteberg Jun 10, 2014
4620443
ilastik.cmake: Updated default ilastik checkout sha
stuarteberg Jun 10, 2014
f8f0829
updates sha for ilastik.cmake
Jun 11, 2014
321983a
Fixing Qt compilation with GCC 4.8 on OSX
chaubold Jun 12, 2014
6736489
vigra.cmake: Added cache variable for vigra thread implementation set…
stuarteberg Jun 21, 2014
ab7c0bd
vigra.cmake: FIXME: Skip vigra test step because it hangs on the jane…
stuarteberg Jun 21, 2014
6ce3394
vigra.cmake: Fixed syntax error in warning message.
stuarteberg Jun 23, 2014
ddafdf8
vigra.cmake: Updated default vigra version to today's commit.
stuarteberg Jun 23, 2014
f49cb60
Upgrade to Go 1.3
DocSavage Jun 23, 2014
23a7069
Remove compiler specification due to weird Mavericks issues
DocSavage Jun 23, 2014
863708f
blas.cmake: Changed default to WITH_ATLAS=1, since openblas can be tr…
stuarteberg Jun 24, 2014
ff9fc37
fix python path and lzma dependencies as well as cplex library building
chaubold Jul 1, 2014
d07e638
Merge remote-tracking branch 'upstream/master' into gcc_plain
chaubold Jul 1, 2014
190ac3f
Revert "Remove compiler specification due to weird Mavericks issues"
chaubold Jul 1, 2014
a9e9c8e
boost: on OSX using GCC, add the gcc toolchain to the configuration
chaubold Jul 7, 2014
7f41c21
Fix building python 2.7.6 on OSX 10.9 with GCC by not building Python…
chaubold Jul 7, 2014
bc9699b
Add headerpad_max_install_names flag to h5py so it can be packaged on…
chaubold Jul 3, 2014
44aa2fa
When building VTK on OSX using GCC, do not use the flag -fpascal-strings
chaubold Jul 7, 2014
eab7c74
Add pythonpath to buildem_env_string as soon as python is installed t…
chaubold Jul 7, 2014
d6889cf
Use the OSX_DEPLOYMENT_TARGET that was set by the user, 10.5 only as …
chaubold Jul 8, 2014
e304817
Add hints to find cplex on ubuntu
chaubold Jul 7, 2014
9c22f14
Do not build openssl docs, perl script broken on ubuntu 14.04
chaubold Jul 7, 2014
373cb73
Add boost_random
chaubold Jul 8, 2014
2ed4e5d
Newer GCCs do not know the -R flag, so remove it from setup.py
chaubold Jul 8, 2014
0f84919
add armadillo cmake file
Jul 4, 2014
8956cac
add mlpack cmake file
Jul 4, 2014
554aa4a
add armadillo patch to configure dependencies
Jul 4, 2014
132db22
use pgmlink with conservation tracking
chaubold Jul 8, 2014
11656a8
Update PGMLink to latest revision. Fixes compile errors and warnings,…
chaubold Jul 8, 2014
87c1eab
Remove reference to pgmlink-cmake patch which is outdated
chaubold Jul 8, 2014
35470c4
Update vigra version as it fixes a cmake problem on OSX
chaubold Jul 9, 2014
b9b882d
Update pgmlink SHA
Jul 9, 2014
afbe5c8
update pgmlink SHA
Jul 10, 2014
802a976
Update pgmlink SHA
Jul 10, 2014
8b5f1e6
Update dlib version
chaubold Nov 10, 2014
5e03ef8
force to load openssl from their website
chaubold Nov 10, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions BuildSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# Important to use FALLBACK variable.
# https://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryUsageGuidelines.html
set (BUILDEM_LD_LIBRARY_VAR "DYLD_FALLBACK_LIBRARY_PATH")
set (BUILDEM_PLATFORM_SPECIFIC_ENV "MACOSX_DEPLOYMENT_TARGET=10.5")
if(${CMAKE_OSX_DEPLOYMENT_TARGET})
set (BUILDEM_PLATFORM_SPECIFIC_ENV "MACOSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}")
else()
set (BUILDEM_PLATFORM_SPECIFIC_ENV "MACOSX_DEPLOYMENT_TARGET=10.5")
endif()
set (BUILDEM_PLATFORM_DYLIB_EXTENSION "dylib")
else()
set (BUILDEM_LD_LIBRARY_VAR "LD_LIBRARY_PATH")
Expand All @@ -64,7 +68,7 @@ endif()
# Initialize environment variables string to use for commands.
set (BUILDEM_BIN_PATH ${BUILDEM_BIN_DIR}:$ENV{PATH})
set (BUILDEM_LIB_PATH ${BUILDEM_LIB_DIR}:$ENV{${BUILDEM_LD_LIBRARY_VAR}})
set (BUILDEM_ENV_STRING env PATH=${BUILDEM_BIN_PATH} ${BUILDEM_LD_LIBRARY_VAR}=${BUILDEM_LIB_PATH} ${BUILDEM_PLATFORM_SPECIFIC_ENV})
set (BUILDEM_ENV_STRING env PATH=${BUILDEM_BIN_PATH} ${BUILDEM_LD_LIBRARY_VAR}=${BUILDEM_LIB_PATH} ${BUILDEM_PLATFORM_SPECIFIC_ENV} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER})
set (BUILDEM_LDFLAGS "-Wl,-rpath,${BUILDEM_LIB_DIR} -L${BUILDEM_LIB_DIR}")

# All library builds should go to BPD/lib
Expand Down
8 changes: 8 additions & 0 deletions FindCplex.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ FIND_LIBRARY(CPLEX_LIBRARY
HINTS ${CPLEX_ROOT_DIR}/cplex/lib/${CPLEX_WIN_PLATFORM} #windows
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_debian4.0_4.1/static_pic #unix
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_sles10_4.1/static_pic #unix
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_linux/static_pic #unix
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_osx/static_pic #osx
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_darwin/static_pic #osx
PATHS ENV LIBRARY_PATH #unix
ENV LD_LIBRARY_PATH #unix
)
Expand All @@ -99,7 +101,9 @@ FIND_LIBRARY(CPLEX_ILOCPLEX_LIBRARY
HINTS ${CPLEX_ROOT_DIR}/cplex/lib/${CPLEX_WIN_PLATFORM} #windows
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_debian4.0_4.1/static_pic #unix
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_sles10_4.1/static_pic #unix
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_linux/static_pic #unix
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_osx/static_pic #osx
${CPLEX_ROOT_DIR}/cplex/lib/x86-64_darwin/static_pic #osx
PATHS ENV LIBRARY_PATH
ENV LD_LIBRARY_PATH
)
Expand All @@ -110,7 +114,9 @@ FIND_LIBRARY(CPLEX_CONCERT_LIBRARY
HINTS ${CPLEX_ROOT_DIR}/concert/lib/${CPLEX_WIN_PLATFORM} #windows
${CPLEX_ROOT_DIR}/concert/lib/x86-64_debian4.0_4.1/static_pic #unix
${CPLEX_ROOT_DIR}/concert/lib/x86-64_sles10_4.1/static_pic #unix
${CPLEX_ROOT_DIR}/concert/lib/x86-64_linux/static_pic #unix
${CPLEX_ROOT_DIR}/concert/lib/x86-64_osx/static_pic #osx
${CPLEX_ROOT_DIR}/concert/lib/x86-64_darwin/static_pic #osx
PATHS ENV LIBRARY_PATH
ENV LD_LIBRARY_PATH
)
Expand All @@ -126,7 +132,9 @@ else()
cplex
HINTS ${CPLEX_ROOT_DIR}/cplex/bin/x86-64_sles10_4.1 #unix
${CPLEX_ROOT_DIR}/cplex/bin/x86-64_debian4.0_4.1 #unix
${CPLEX_ROOT_DIR}/cplex/bin/x86-64_linux #unix
${CPLEX_ROOT_DIR}/cplex/bin/x86-64_osx #osx
${CPLEX_ROOT_DIR}/cplex/bin/x86-64_darwin #osx
ENV LIBRARY_PATH
ENV LD_LIBRARY_PATH
)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The BuildEM System
The BuildEM System [![Picture](https://raw.github.com/janelia-flyem/janelia-flyem.github.com/master/images/jfrc_grey_180x40.png)](http://www.janelia.org)
==================

The [buildem](https://github.com/janelia-flyem/buildem) repo is a modular CMake-based system that leverages [CMake's ExternalProject](http://www.kitware.com/media/html/BuildingExternalProjectsWithCMake2.8.html) to simplify and automate a complex build process. Its goal is to allow *simple*, *modular* specification of software dependencies and automate the download, patch, configure, build, and install process. Initially, we are focused on Linux (and occasionally MacOS X) support for the modules, but we hope to integrate patches from Windows users as needed.
Expand Down Expand Up @@ -311,8 +311,8 @@ To build on the cluster, login to a compute node and set the environment variabl

```bash
export FLYEMCLUSTER=/groups/flyem/proj/builds/cluster
export PATH=/usr/local/cmake-2.8.8/bin:/usr/local/git-1.8.1/bin:$FLYEMCLUSTER/bin:$PATH
export LD_LIBRARY_PATH=$FLYEMCLUSTER/lib:$LD_LIBRARY_PATH
export PATH=/usr/local/gcc/bin:/usr/local/cmake-2.8.8/bin:/usr/local/git-1.8.1/bin:$FLYEMCLUSTER/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/gcc/lib64:$FLYEMCLUSTER/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$FLYEMCLUSTER/lib/python2.7:$FLYEMCLUSTER/lib/python2.7/site-packages:$FLYEMCLUSTER/lib
```

Expand Down
48 changes: 48 additions & 0 deletions armadillo.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#
# Install armadillo from source
#

if (NOT armadillo_NAME)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
include (PatchSupport)

include (blas)


external_source (armadillo
4.000.2
armadillo-4.000.2.tar.gz
b2891c7b59b96337c154c5d961fd40fb
http://downloads.sourceforge.net/project/arma
"FORCE"
)

message ("Installing ${armadillo_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${armadillo_NAME}
DEPENDS ${lapack_NAME} ${blas_NAME}
PREFIX ${BUILDEM_DIR}
URL ${armadillo_URL}
URL_MD5 ${armadillo_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ${BUILDEM_ENV_STRING} ${PATCH_EXE}
${armadillo_SRC_DIR}/include/armadillo_bits/config.hpp
${PATCH_DIR}/armadillo.patch


CONFIGURE_COMMAND ${BUILDEM_ENV_STRING} ${CMAKE_COMMAND} ${armadillo_SRC_DIR}
-DBUILD_SHARED_LIBS=ON
-DCMAKE_INSTALL_PREFIX=${BUILDEM_DIR}
-DCMAKE_PREFIX_PATH=${BUILDEM_DIR}

BUILD_COMMAND ${BUILDEM_ENV_STRING} make
INSTALL_COMMAND ${BUILDEM_ENV_STRING} make install
)

set_target_properties(${armadillo_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)

endif (NOT armadillo_NAME)
2 changes: 1 addition & 1 deletion blas.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# select the desired blas implementation
IF(NOT DEFINED WITH_ATLAS)
SET(WITH_ATLAS "OFF")
SET(WITH_ATLAS 1)
ENDIF()
SET(WITH_ATLAS ${WITH_ATLAS}
CACHE BOOL "Use ATLAS (WITH_ATLAS=1) or openBLAS (WITH_ATLAS=0) ?"
Expand Down
22 changes: 16 additions & 6 deletions boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@ set (boost_INCLUDE_DIR ${BUILDEM_INCLUDE_DIR}/boost)
include_directories (${boost_INCLUDE_DIR})

external_source (boost
1_51_0
boost_1_51_0.tar.gz
6a1f32d902203ac70fbec78af95b3cf8
http://downloads.sourceforge.net/project/boost/boost/1.51.0)
1_55_0
boost_1_55_0.tar.gz
93780777cfbf999a600f62883bd54b17
http://sourceforge.net/projects/boost/files/boost/1.55.0/)

set (boost_LIBS ${BUILDEM_LIB_DIR}/libboost_thread.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_system.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_program_options.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_python.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_unit_test_framework.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_filesystem.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_chrono.${BUILDEM_PLATFORM_DYLIB_EXTENSION} )
${BUILDEM_LIB_DIR}/libboost_chrono.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_random.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_atomic.${BUILDEM_PLATFORM_DYLIB_EXTENSION} )

# Add layout=tagged param to first boost install to explicitly create -mt libraries
# some libraries require. TODO: Possibly shore up all library find paths to only
Expand All @@ -42,7 +44,7 @@ ExternalProject_Add(${boost_NAME}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ${BUILDEM_ENV_STRING} ./bootstrap.sh
--with-libraries=date_time,filesystem,python,regex,serialization,system,test,thread,program_options,chrono
--with-libraries=date_time,filesystem,python,regex,serialization,system,test,thread,program_options,chrono,atomic,random
--with-python=${PYTHON_EXE}
--prefix=${BUILDEM_DIR}
LDFLAGS=${BUILDEM_LDFLAGS}
Expand All @@ -59,6 +61,14 @@ ExternalProject_Add(${boost_NAME}
-sZLIB_SOURCE=${zlib_SRC_DIR} install
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
ExternalProject_Add_Step(${boost_NAME} osx-gcc-fix-config
COMMAND bash ${PATCH_DIR}/boost-osx-gcc-fix-config.sh ${boost_SRC_DIR} ${CMAKE_CXX_COMPILER}
DEPENDERS configure
DEPENDEES patch
)
endif()

set_target_properties(${boost_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)

endif (NOT boost_NAME)
64 changes: 64 additions & 0 deletions boost1550.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#
# Install boost1550 libraries from source
#

if (NOT boost1550_NAME)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include (ExternalProject)
include (BuildSupport)
include (ExternalSource)

include (python)
include (zlib)

set (boost_INCLUDE_DIR ${BUILDEM_INCLUDE_DIR}/boost)
include_directories (${boost_INCLUDE_DIR})

external_source (boost1550
1_55_0
boost_1_55_0.tar.gz
93780777cfbf999a600f62883bd54b17
http://sourceforge.net/projects/boost/files/boost/1.55.0/)

set (boost_LIBS ${BUILDEM_LIB_DIR}/libboost_thread.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_system.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_program_options.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_python.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_unit_test_framework.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_filesystem.${BUILDEM_PLATFORM_DYLIB_EXTENSION}
${BUILDEM_LIB_DIR}/libboost_chrono.${BUILDEM_PLATFORM_DYLIB_EXTENSION} )

# Add layout=tagged param to first boost1550 install to explicitly create -mt libraries
# some libraries require. TODO: Possibly shore up all library find paths to only
# allow use of built libs.
message ("Installing ${boost1550_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${boost1550_NAME}
DEPENDS ${python_NAME} ${zlib_NAME}
PREFIX ${BUILDEM_DIR}
URL ${boost1550_URL}
URL_MD5 ${boost1550_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ${BUILDEM_ENV_STRING} ./bootstrap.sh
--with-libraries=date_time,filesystem,python,regex,serialization,system,test,thread,program_options,chrono
--with-python=${PYTHON_EXE}
--prefix=${BUILDEM_DIR}
LDFLAGS=${BUILDEM_LDFLAGS}
CPPFLAGS=-I${BUILDEM_DIR}/include
BUILD_COMMAND ${BUILDEM_ENV_STRING} ./b2
--layout=tagged
-sNO_BZIP2=1
-sZLIB_INCLUDE=${BUILDEM_DIR}/include
-sZLIB_SOURCE=${zlib_SRC_DIR} install
BUILD_IN_SOURCE 1
INSTALL_COMMAND ${BUILDEM_ENV_STRING} ./b2
-sNO_BZIP2=1
-sZLIB_INCLUDE=${BUILDEM_DIR}/include
-sZLIB_SOURCE=${zlib_SRC_DIR} install
)

set_target_properties(${boost1550_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)

endif (NOT boost1550_NAME)
12 changes: 9 additions & 3 deletions cplex-shared.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ set(CPLEX_ILOCPLEX_LIBRARY CPLEX_ILOCPLEX_LIBRARY-NOTFOUND)
find_package( Cplex REQUIRED )

if (APPLE)
set(SHARED_CPLEX_COMPILE_FLAGS "-fpic -stdlib=libstdc++")
set(SHARED_CPLEX_LINK_FLAGS_1 "-Wl,-all_load")
set(SHARED_CPLEX_LINK_FLAGS_2 "")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(SHARED_CPLEX_COMPILE_FLAGS "-fpic -stdlib=libstdc++")
set(SHARED_CPLEX_LINK_FLAGS_1 "-Wl,-all_load")
set(SHARED_CPLEX_LINK_FLAGS_2 "-stdlib=libstdc++")
else()
set(SHARED_CPLEX_COMPILE_FLAGS "-fpic")
set(SHARED_CPLEX_LINK_FLAGS_1 "-Wl,-all_load")
set(SHARED_CPLEX_LINK_FLAGS_2 "")
endif()
else()
set(SHARED_CPLEX_COMPILE_FLAGS "-shared -fpic")
set(SHARED_CPLEX_LINK_FLAGS_1 "-Wl,-whole-archive")
Expand Down
43 changes: 43 additions & 0 deletions cppnetlib.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#
# Install cppnetlib library from source
#

if (NOT cppnetlib_NAME)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8.6)

include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
include (PatchSupport)

include (boost)

external_source (cppnetlib
0.11.0
cpp-netlib-0.11.0.tar.gz
6fba4f2f64f19af9f172fd60ad8e76ab
http://commondatastorage.googleapis.com/cpp-netlib-downloads/0.11.0/
)

# set libs properly
set (CPPNETLIB_LIBRARIES ${BUILDEM_DIR}/lib64/libcppnetlib-client-connections.a ${BUILDEM_DIR}/lib64/libcppnetlib-server-parsers.a ${BUILDEM_DIR}/lib64/libcppnetlib-uri.a)

message ("Installing ${cppnetlib_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${cppnetlib_NAME}
DEPENDS ${boost_NAME}
PREFIX ${BUILDEM_DIR}
URL ${cppnetlib_URL}
URL_MD5 ${cppnetlib_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ${BUILDEM_ENV_STRING} ${CMAKE_COMMAND} ${cppnetlib_SRC_DIR}
-DCMAKE_INSTALL_PREFIX=${BUILDEM_DIR}
-DCMAKE_PREFIX_PATH=${BUILDEM_DIR}
BUILD_COMMAND ${BUILDEM_ENV_STRING} $(MAKE)
INSTALL_COMMAND ${BUILDEM_ENV_STRING} $(MAKE) install
)

set_target_properties(${cppnetlib_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)

endif (NOT cppnetlib_NAME)
8 changes: 4 additions & 4 deletions dlib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ include (BuildSupport)
include (PatchSupport)

external_source (dlib
18.3
dlib-18.3.tar.bz2
1ad26ec7bddccf8a605e1edfd0620c65
http://downloads.sourceforge.net/project/dclib/dlib/v18.3
18.10
dlib-18.10.tar.bz2
ede77c5a1fb8c249b13987728424be74
http://downloads.sourceforge.net/project/dclib/dlib/v18.10
FORCE)

message ("Installing ${dlib_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
Expand Down
40 changes: 40 additions & 0 deletions drmaa-python.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# Install drmaa-python library from source
#

if (NOT drmaa-python_NAME)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include (ExternalProject)
include (ExternalSource)
include (BuildSupport)

include (python)
include (setuptools)

external_source (drmaa-python
0.5
drmaa-0.5.tar.gz
04c7fa199a86ccf20d3b91c8705cb8be
http://drmaa-python.googlecode.com/files/
)

message ("Installing ${drmaa-python_NAME} into FlyEM build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${drmaa-python_NAME}
DEPENDS ${python_NAME} ${setuptools_NAME}
PREFIX ${BUILDEM_DIR}
URL ${drmaa-python_URL}
URL_MD5 ${drmaa-python_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ${BUILDEM_ENV_STRING} ${PYTHON_EXE} setup.py install
BUILD_IN_SOURCE 1
TEST_COMMAND ""
INSTALL_COMMAND ""
)

set_target_properties(${drmaa-python_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)

endif (NOT drmaa-python_NAME)
Loading