Commit ca190ec4 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

genericio: port

parent 942d353d
Pipeline #23611 passed with stage
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 (BUILD_SHARED_LIBS)
set(genericio_lib_suffix ${CMAKE_SHARED_LIBRARY_SUFFIX})
else ()
set(genericio_lib_suffix ${CMAKE_STATIC_LIBRARY_SUFFIX})
endif ()
superbuild_add_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)
superbuild_add_extra_cmake_args(
if (TARGET genericio)
set(genericio_include_dir "<SOURCE_DIR>")
_ep_replace_location_tags(genericio genericio_include_dir)
superbuild_add_extra_cmake_args(
-DGENERIC_IO_INCLUDE_DIR:PATH=${genericio_include_dir}
-DGENERIC_IO_LIBRARIES:PATH=<INSTALL_DIR>/libGenericIO${lib_suffix})
endif ()
......@@ -42,6 +42,10 @@ superbuild_set_revision(cosmotools
GIT_REPOSITORY "git://public.kitware.com/cosmotools.git"
GIT_TAG v0.13)
superbuild_set_revision(genericio
GIT_REPOSITORY "https://kwgitlab.kitware.com/paraview/genericio.git"
GIT_TAG origin/master)
add_revision(vrpn
GIT_REPOSITORY "https://github.com/vrpn/vrpn.git"
GIT_TAG a545ef6415f0026aabdbdb1d7fdbefeb91c47d4f)
......@@ -77,10 +81,6 @@ add_revision(catalyst ${paraview_revision})
#------------------------------------------------------------------------------
if (USE_NONFREE_COMPONENTS)
add_revision(genericio
GIT_REPOSITORY https://kwgitlab.kitware.com/paraview/genericio.git
GIT_TAG master)
add_revision(acusolve
GIT_REPOSITORY https://kwgitlab.kitware.com/paraview/acusolvereaderplugin.git
GIT_TAG master)
......
Supports Markdown
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