Commit 79e80f65 authored by Ben Boeckel's avatar Ben Boeckel

projects: remove unused cmake files

parent 2f3c9b31
add_external_project(acusolve
DEPENDS paraview
CMAKE_ARGS
-DParaView_DIR:PATH=${SuperBuild_BINARY_DIR}/paraview/src/paraview-build
INSTALL_COMMAND
${CMAKE_COMMAND} -DBINARY_DIR:PATH=<BINARY_DIR>
-DINSTALL_DIR:PATH=<INSTALL_DIR>
-DPARAVIEW_BINARY_DIR:PATH=${ParaViewSuperBuild_BINARY_DIR}/paraview/src/paraview-build
-DTMP_DIR:PATH=<TMP_DIR>
"-DPLUGIN_SCRIPT:FILEPATH=${CMAKE_CURRENT_LIST_DIR}/plugin-macros.cmake"
"-D7Z_EXE:FILEPATH=${7Z_EXE}"
-Dbundle_name:STRING=${CMAKE_CURRENT_BINARY_DIR}/AcuSolveReaderPlugin
-Dbundle_suffix:STRING=${pv_version_long}-${PACKAGE_SUFFIX}
-P ${CMAKE_CURRENT_LIST_DIR}/install_acusolve.cmake
)
add_external_project(cosmologytools
DEPENDS diy qhull paraview
CMAKE_ARGS
-DBUILD_PV_PLUGINS:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=OFF
-DParaView_DIR:PATH=${ParaViewSuperBuild_BINARY_DIR}/paraview/src/paraview-build
-DDIY_INCLUDE_DIRS:PATH=${ParaViewSuperBuild_BINARY_DIR}/diy/src/diy/include
-DDIY_LIBRARIES:PATH=${ParaViewSuperBuild_BINARY_DIR}/diy/src/diy/lib/libdiy.a
-DQHULL_INCLUDE_DIRS:PATH=${ParaViewSuperBuild_BINARY_DIR}/qhull/src/qhull/src/libqhull
-DQHULL_LIBRARIES:PATH=${ParaViewSuperBuild_BINARY_DIR}/qhull/src/qhull-build/libqhullstatic.a
INSTALL_COMMAND
${CMAKE_COMMAND} -DBINARY_DIR:PATH=<BINARY_DIR>
-DINSTALL_DIR:PATH=<INSTALL_DIR>
-DPARAVIEW_BINARY_DIR:PATH=${ParaViewSuperBuild_BINARY_DIR}/paraview/src/paraview-build
-DTMP_DIR:PATH=<TMP_DIR>
-Dbundle_name:STRING=${CMAKE_CURRENT_BINARY_DIR}/CosmologyToolsPlugin
-Dbundle_suffix:STRING=${pv_version_long}-${PACKAGE_SUFFIX}
-P ${CMAKE_CURRENT_LIST_DIR}/install_cosmologytools.cmake
)
if(WIN32)
message(FATAL_ERROR "CosmoTools is not supported on Windows!")
return()
endif()
if(BUILD_SHARED_LIBS)
set(lib_suffix ${CMAKE_SHARED_LIBRARY_SUFFIX})
else()
set(lib_suffix ${CMAKE_STATIC_LIBRARY_SUFFIX})
endif()
add_external_project(cosmotools
DEPENDS genericio diy qhull
CMAKE_ARGS
-DENABLE_DIY:BOOL=ON
-DENABLE_QHULL:BOOL=ON
-DBUILD_COSMOTOOLS_PROGRAMS:BOOL=OFF
-DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
-DBUILD_SIMULATION_INTERFACE:BOOL=OFF
-DBUILD_SINGLE_LIBRARY:BOOL=ON
-DTYPE_IDS_64BITS:BOOL=ON
-DDIY_INCLUDE_DIRS:PATH=${SuperBuild_BINARY_DIR}/diy/src/diy/include
-DDIY_LIBRARIES:PATH=${SuperBuild_BINARY_DIR}/diy/src/diy/lib/libdiy.a
-DQHULL_INCLUDE_DIRS:PATH=${SuperBuild_BINARY_DIR}/qhull/src/qhull/src/libqhull
-DQHULL_LIBRARIES:PATH=${SuperBuild_BINARY_DIR}/qhull/src/qhull-build/libqhullstatic.a
INSTALL_COMMAND
${CMAKE_COMMAND} -E copy <BINARY_DIR>/libs/libcosmotools${lib_suffix} <INSTALL_DIR>/lib
)
# Any project that depends on cosmotools inherits the following cmake args
add_extra_cmake_args(
-DCOSMOTOOLS_INCLUDE_DIR:PATH=${SuperBuild_BINARY_DIR}/cosmotools/src/cosmotools-build/include
-DCOSMOTOOLS_LIBRARIES:PATH=${SuperBuild_BINARY_DIR}/cosmotools/src/cosmotools-build/libs/libcosmotools${lib_suffix}
)
## Builds DIY library
## https://svn.mcs.anl.gov/repos/diy/trunk
if(USE_SYSTEM_mpi)
add_external_project(diy
DEPENDS mpi hdf5
BUILD_IN_SOURCE 1
PROCESS_ENVIRONMENT
MPICC "${MPI_C_COMPILER}"
MPICXX "${MPI_CXX_COMPILER}"
CONFIGURE_COMMAND
<SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --enable-fpic --disable-openmp
BUILD_COMMAND make
INSTALL_COMMAND make install
)
else()
add_external_project(diy
DEPENDS mpi hdf5
BUILD_IN_SOURCE 1
PROCESS_ENVIRONMENT
MPICC "<INSTALL_DIR>/bin/mpicc"
MPICXX "<INSTALL_DIR>/bin/mpicxx"
CONFIGURE_COMMAND
<SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --enable-fpic --disable-openmp
BUILD_COMMAND make
INSTALL_COMMAND make install
)
endif()
# Required because OS X's standard library now has a globally-accessible 'rank'
# symbol (std::__1::rank) which conflicts with the static-global 'rank' in
# diy.cpp.
add_external_project_step(patch_diy_src
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${SuperBuild_PROJECTS_DIR}/patches/diy.src.diy.cpp"
"<SOURCE_DIR>/src/diy.cpp"
DEPENDEES update # do after update
DEPENDERS patch # do before patch
)
if(WIN32)
message(FATAL_ERROR "GenericIO is not supported on Windows!")
return()
endif()
if(BUILD_SHARED_LIBS)
set(lib_suffix ${CMAKE_SHARED_LIBRARY_SUFFIX})
else()
set(lib_suffix ${CMAKE_STATIC_LIBRARY_SUFFIX})
endif()
add_external_project(genericio
DEPENDS mpi
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
-DBUILD_TESTING:BOOL=OFF
-DBUILD_PROGRAMS:BOOL=OFF
INSTALL_COMMAND
${CMAKE_COMMAND} -E copy <BINARY_DIR>/libGenericIO${lib_suffix} <INSTALL_DIR>/lib
)
# Any project that depends on cosmotools inherits the following cmake args
add_extra_cmake_args(
-DGENERIC_IO_INCLUDE_DIR:PATH=${SuperBuild_BINARY_DIR}/genericio/src/genericio
-DGENERIC_IO_LIBRARIES:PATH=${SuperBuild_BINARY_DIR}/genericio/src/genericio-build/libGenericIO${lib_suffix}
)
if (APPLE)
set (SHARED_LIBRARY_PREFIX "lib")
set (SHARED_LIBRARY_SUFFIX ".dylib")
elseif (UNIX)
set (SHARED_LIBRARY_PREFIX "lib")
set (SHARED_LIBRARY_SUFFIX ".so")
elseif (WIN32)
set (SHARED_LIBRARY_PREFIX "")
set (SHARED_LIBRARY_SUFFIX ".dll")
endif()
# Remove any old directory
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory ${TMP_DIR}/AcuSolveReaderPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
# Create a directory to put the plugin under.
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TMP_DIR}/AcuSolveReaderPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
# Copy th plugin lib.
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${BINARY_DIR}/${SHARED_LIBRARY_PREFIX}AcuSolveReader${SHARED_LIBRARY_SUFFIX} ${TMP_DIR}/AcuSolveReaderPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
if (APPLE)
execute_process(
COMMAND ${CMAKE_CURRENT_LIST_DIR}/apple/fixup_plugin.py
# The directory containing the plugin dylibs.
${TMP_DIR}/AcuSolveReaderPlugin-${bundle_suffix}
# names to replace (in order)
"${PARAVIEW_BINARY_DIR}/lib/=@executable_path/../Libraries/"
"${INSTALL_DIR}/lib/Qt=@executable_path/../Frameworks/Qt"
"${INSTALL_DIR}/lib/=@executable_path/../Libraries/"
"libhdf5.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib"
"libhdf5_hl.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib"
"libcgns.3.1.dylib=@executable_path/../Libraries/libcgns.3.1.dylib"
)
endif()
# make tarball
execute_process(
COMMAND ${CMAKE_COMMAND}
-E tar cvfz ${bundle_name}-${bundle_suffix}.tgz AcuSolveReaderPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR})
if (APPLE)
set (SHARED_LIBRARY_PREFIX "lib")
set (SHARED_LIBRARY_SUFFIX ".dylib")
elseif (UNIX)
set (SHARED_LIBRARY_PREFIX "lib")
set (SHARED_LIBRARY_SUFFIX ".so")
elseif(WIN32)
message(FATAL_ERROR "Not supported on Windows")
endif()
# Remove any old directory.
execute_process(
COMMAND ${CMAKE_COMMAND} -E remove_directory ${TMP_DIR}/CosmologyToolsPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
# Create a directory to put the plugin under.
execute_process(
COMMAND ${CMAKE_COMMAND} -E make_directory ${TMP_DIR}/CosmologyToolsPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
# Copy the plugin lib.
execute_process(
COMMAND ${CMAKE_COMMAND} -E copy ${BINARY_DIR}/libs/${SHARED_LIBRARY_PREFIX}PVCosmologyToolsPlugins${SHARED_LIBRARY_SUFFIX} ${TMP_DIR}/CosmologyToolsPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
if (APPLE)
execute_process(
COMMAND ${CMAKE_CURRENT_LIST_DIR}/apple/fixup_plugin.py
# The directory containing the plugin dylibs or the plugin itself.
${TMP_DIR}/CosmologyToolsPlugin-${bundle_suffix}/${SHARED_LIBRARY_PREFIX}PVCosmologyToolsPlugins${SHARED_LIBRARY_SUFFIX}
# names to replace (in order)
"${PARAVIEW_BINARY_DIR}/lib/=@executable_path/../Libraries/"
"${INSTALL_DIR}/lib/Qt=@executable_path/../Frameworks/Qt"
"${INSTALL_DIR}/lib/=@executable_path/../Libraries/"
"libhdf5.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib"
"libhdf5_hl.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib"
"libcgns.3.1.dylib=@executable_path/../Libraries/libcgns.3.1.dylib"
)
endif()
execute_process(
COMMAND ${CMAKE_COMMAND}
-E tar cvfz ${bundle_name}-${bundle_suffix}.tgz CosmologyToolsPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
if (APPLE)
set (SHARED_LIBRARY_PREFIX "lib")
set (SHARED_LIBRARY_SUFFIX ".dylib")
elseif (UNIX)
set (SHARED_LIBRARY_PREFIX "lib")
set (SHARED_LIBRARY_SUFFIX ".so")
elseif (WIN32)
set (SHARED_LIBRARY_PREFIX "")
set (SHARED_LIBRARY_SUFFIX ".dll")
endif()
# Remove any old directory
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory ${TMP_DIR}/NektarReaderPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
# Create a directory to put the plugin under.
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TMP_DIR}/NektarReaderPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
# Copy th plugin lib.
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${BINARY_DIR}/${SHARED_LIBRARY_PREFIX}pvNektarReader${SHARED_LIBRARY_SUFFIX} ${TMP_DIR}/NektarReaderPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR}
)
if (APPLE)
execute_process(
COMMAND ${CMAKE_CURRENT_LIST_DIR}/apple/fixup_plugin.py
# The directory containing the plugin dylibs.
${TMP_DIR}/NektarReaderPlugin-${bundle_suffix}
# names to replace (in order)
"${PARAVIEW_BINARY_DIR}/lib/=@executable_path/../Libraries/"
"${INSTALL_DIR}/lib/Qt=@executable_path/../Frameworks/Qt"
"${INSTALL_DIR}/lib/=@executable_path/../Libraries/"
"libhdf5.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib"
"libhdf5_hl.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib"
"libcgns.3.1.dylib=@executable_path/../Libraries/libcgns.3.1.dylib"
)
endif()
# make tarball
execute_process(
COMMAND ${CMAKE_COMMAND}
-E tar cvfz ${bundle_name}-${bundle_suffix}.tgz NektarReaderPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR})
if (APPLE)
set (SHARED_LIBRARY_PREFIX "lib")
set (SHARED_LIBRARY_SUFFIX ".dylib")
set (PLUGIN_DIR "lib")
elseif (UNIX)
set (SHARED_LIBRARY_PREFIX "lib")
set (SHARED_LIBRARY_SUFFIX ".so")
set (PLUGIN_DIR "lib")
elseif (WIN32)
set (SHARED_LIBRARY_PREFIX "")
set (SHARED_LIBRARY_SUFFIX ".dll")
set (PLUGIN_DIR "bin")
endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory ${TMP_DIR}/VisTrailsPlugin-${bundle_suffix})
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TMP_DIR}/VisTrailsPlugin-${bundle_suffix})
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${SOURCE_DIR}/README ${TMP_DIR}/VisTrailsPlugin-${bundle_suffix})
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${BINARY_DIR}/${PLUGIN_DIR}/${SHARED_LIBRARY_PREFIX}VisTrailsPlugin${SHARED_LIBRARY_SUFFIX} ${TMP_DIR}/VisTrailsPlugin-${bundle_suffix})
if (APPLE)
execute_process(
COMMAND ${CMAKE_CURRENT_LIST_DIR}/apple/fixup_plugin.py
# The directory containing the plugin dylibs.
${TMP_DIR}/VisTrailsPlugin-${bundle_suffix}
# names to replace (in order)
"${PARAVIEW_BINARY_DIR}/lib/=@executable_path/../Libraries/"
"${INSTALL_DIR}/lib/Qt=@executable_path/../Frameworks/Qt"
"${INSTALL_DIR}/lib/=@executable_path/../Libraries/"
"libhdf5.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib"
"libhdf5_hl.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib"
"libcgns.3.1.dylib=@executable_path/../Libraries/libcgns.3.1.dylib"
)
endif()
execute_process(
COMMAND ${CMAKE_COMMAND} -E tar cvfz ${bundle_name}-${bundle_suffix}.tgz VisTrailsPlugin-${bundle_suffix}
WORKING_DIRECTORY ${TMP_DIR})
add_external_project(mili_plugin
DEPENDS paraview
CMAKE_ARGS
-DParaView_DIR:PATH=${SuperBuild_BINARY_DIR}/paraview/src/paraview-build
)
add_external_project(nektar_plugin
DEPENDS paraview
CMAKE_ARGS
-DParaView_DIR:PATH=${SuperBuild_BINARY_DIR}/paraview/src/paraview-build
-DBLAS_atlas_LIBRARY:FILEPATH=/soft/apps/atlas-3.8.2-gcc-shared/lib/libatlas.a
-DBLAS_f77blas_LIBRARY:FILEPATH=/soft/apps/atlas-3.8.2-gcc-shared/lib/libf77blas.a
-DLAPACK_lapack_LIBRARY:FILEPATH=/soft/apps/atlas-3.8.2-gcc-shared/lib/liblapack.a
INSTALL_COMMAND
${CMAKE_COMMAND} -DBINARY_DIR:PATH=<BINARY_DIR>
-DINSTALL_DIR:PATH=<INSTALL_DIR>
-DPARAVIEW_BINARY_DIR:PATH=${ParaViewSuperBuild_BINARY_DIR}/paraview/src/paraview-build
-DTMP_DIR:PATH=<TMP_DIR>
-Dbundle_name:STRING=${CMAKE_CURRENT_BINARY_DIR}/NektarReaderPlugin
-Dbundle_suffix:STRING=${pv_version_long}-${PACKAGE_SUFFIX}
-P ${CMAKE_CURRENT_LIST_DIR}/install_nektar_plugin.cmake
)
## Builds qhull from git://gitorious.org/qhull/qhull.git
add_external_project(
qhull
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>/qhull
INSTALL_COMMAND make install
)
add_external_project(vistrails
DEPENDS paraview
CMAKE_ARGS
-DParaView_DIR:PATH=${SuperBuild_BINARY_DIR}/paraview/src/paraview-build
INSTALL_COMMAND
${CMAKE_COMMAND} -DSOURCE_DIR:PATH=<SOURCE_DIR>
-DBINARY_DIR:PATH=<BINARY_DIR>
-DINSTALL_DIR:PATH=<INSTALL_DIR>
-DPARAVIEW_BINARY_DIR:PATH=${ParaViewSuperBuild_BINARY_DIR}/paraview/src/paraview-build
-DTMP_DIR:PATH=<TMP_DIR>
"-DPLUGIN_SCRIPT:FILEPATH=${CMAKE_CURRENT_LIST_DIR}/plugin-macros.cmake"
"-D7Z_EXE:FILEPATH=${7Z_EXE}"
-Dbundle_name:STRING=${CMAKE_CURRENT_BINARY_DIR}/VisTrailsPlugin
-Dbundle_suffix:STRING=${pv_version_long}-${PACKAGE_SUFFIX}
-P ${CMAKE_CURRENT_LIST_DIR}/install_vistrails.cmake
)
......@@ -234,46 +234,6 @@ add_revision(moab
#------------------------------------------------------------------------------
if (USE_NONFREE_COMPONENTS)
add_revision(qhull
GIT_REPOSITORY git://github.com/gzagaris/gxzagas-qhull.git
GIT_TAG master)
add_revision(genericio
GIT_REPOSITORY git://kwsource.kitwarein.com/genericio/genericio.git
GIT_TAG master)
# Add an option to not use diy from SVN. On Debian-Etch the SVN is too old
# to work with invalid SVN certificates.
option(DIY_SKIP_SVN "If enabled, we simply download diy from a source tar" OFF)
if(DIY_SKIP_SVN)
add_revision(diy
URL "http://paraview.org/files/dependencies/diy-src.r178.tar.gz"
URL_MD5 4fba13aae93927d0f32dd6db0599ffcd)
else()
if (TRUST_SVN_CERTIFICATES_AUTOMATICALLY)
add_revision(diy
SVN_REPOSITORY https://svn.mcs.anl.gov/repos/diy/trunk
SVN_REVISION -r178
SVN_TRUST_CERT 1)
else()
add_revision(diy
SVN_REPOSITORY https://svn.mcs.anl.gov/repos/diy/trunk
SVN_REVISION -r178)
endif()
endif()
add_revision(cosmotools
GIT_REPOSITORY git://public.kitware.com/cosmotools.git
GIT_TAG v0.13)
add_revision(acusolve
GIT_REPOSITORY git://kwsource.kitwarein.com/paraview/acusolvereaderplugin.git
GIT_TAG master)
add_revision(vistrails
GIT_REPOSITORY git://kwsource.kitwarein.com/paraview/vistrails.git
GIT_TAG master)
add_revision(portfwd
URL "http://www.paraview.org/files/dependencies/portfwd-0.29.tar.gz"
URL_MD5 93161c91e12b0d67ca52dc13708a2f2f)
......
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