Commit 7a9a42e7 authored by Ben Boeckel's avatar Ben Boeckel

cgm: add project

parent f69299f7
......@@ -19,14 +19,17 @@ function (superbuild_find_projects var)
set(projects
boost
bzip2
cgm
cmb
cmbworkflows
freetype
ftgl
gdal
hdf5
kml
moab
netcdf
oce
paraview
png
python
......
superbuild_add_project(cgm
DEPENDS oce
CMAKE_ARGS
-DCGM_USE_CUBIT:BOOL=OFF
-DCGM_OCC:BOOL=oN
-DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
-DUSE_MPI:BOOL=OFF)
superbuild_add_extra_cmake_args(
"-DCGM_DIR=<INSTALL_DIR>/lib/cmake/CGM")
superbuild_add_project(ftgl
DEPENDS freetype
CMAKE_ARGS
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS})
superbuild_add_project(oce
DEPENDS ftgl freetype
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
-OCE_DISABLE_X11:BOOL=FALSE
-OCE_VISU_DEP:BOOL=TRUE
-OCE_VISUALISATION:BOOL=TRUE
-OCE_OCAF:BOOL=TRUE
-OCE_DRAW:BOOL=FALSE
-DOCE_INSTALL_PREFIX:FILEPATH=<INSTALL_DIR>
# Force the include dir path, so it doesn't install the include files into
# install/include/oce/, because CGM can't find it there.
-DOCE_INSTALL_INCLUDE_DIR:FILEPATH=include
-DOCE_RPATH_FILTER_SYSTEM_PATHS:BOOL=OFF)
# Remove the installed oce-config.h from the install tree so that the build
# doesn't use that over the configured header in the build directory. If we
# used the installed oce-config the incremental builds may fail as it may not
# have all the defines as the build version.
superbuild_project_add_step(oce-incremental-build
COMMAND "${CMAKE_COMMAND}"
-E remove
-f
"<INSTALL_DIR>/include/oce-config.h"
COMMENT ""
DEPENDEES configure
DEPENDERS build
ALWAYS 1)
......@@ -25,7 +25,7 @@ superbuild_add_project(smtk
DEVELOPER_MODE
DEBUGGABLE
DEPENDS boost qt4 shiboken paraview python remus hdf5 zeromq
DEPENDS_OPTIONAL moab netcdf
DEPENDS_OPTIONAL moab netcdf cgm
CMAKE_ARGS
${smtk_extra_cmake_args}
-DBUILD_SHARED_LIBS:BOOL=ON
......@@ -33,6 +33,7 @@ superbuild_add_project(smtk
-DSMTK_ENABLE_QT_SUPPORT:BOOL=ON
-DSMTK_ENABLE_VTK_SUPPORT:BOOL=ON
-DSMTK_ENABLE_PARAVIEW_SUPPORT:BOOL=ON
-DSMTK_ENABLE_CGM_SESSION:BOOL=${cgm_enabled}
-DSMTK_ENABLE_DISCRETE_SESSION:BOOL=ON
-DSMTK_ENABLE_EXODUS_SESSION:BOOL=ON
-DSMTK_ENABLE_REMOTE_SESSION:BOOL=ON
......
......@@ -84,3 +84,15 @@ superbuild_set_revision(pythonsetuptools
superbuild_set_revision(pythongirderclient
URL "https://pypi.python.org/packages/source/g/girder-client/girder-client-1.1.2.tar.gz"
URL_MD5 4cd5e0cab41337a41f45453d25193dcf)
superbuild_set_revision(ftgl
GIT_REPOSITORY "https://github.com/mathstuf/ftgl.git"
GIT_TAG origin/create-cmake-config-file)
superbuild_set_revision(oce
GIT_REPOSITORY "https://github.com/mathstuf/oce.git"
GIT_TAG origin/next)
superbuild_set_revision(cgm
GIT_REPOSITORY "https://bitbucket.org/mathstuf/cgm.git"
GIT_TAG origin/update-cmakelists)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment