Commit 4956c764 authored by Burlen Loring's avatar Burlen Loring

rename vtk interface library

parent 702964dc
......@@ -60,7 +60,7 @@ endif()
include(thread)
include(mpi)
include(vtk)
include(svtk)
include(timer)
include(pugixml)
include(timer)
......
......@@ -13,11 +13,11 @@ if (ENABLE_CATALYST)
"containing `ParaViewConfig.cmake`.")
endif()
add_library(vtk INTERFACE)
target_link_libraries(vtk INTERFACE ${VTK_LIBRARIES})
target_include_directories(vtk SYSTEM INTERFACE ${PARAVIEW_INCLUDE_DIRS})
target_compile_definitions(vtk INTERFACE ${VTK_DEFINITIONS})
add_library(svtk INTERFACE)
target_link_libraries(svtk INTERFACE ${VTK_LIBRARIES})
target_include_directories(svtk SYSTEM INTERFACE ${PARAVIEW_INCLUDE_DIRS})
target_compile_definitions(svtk INTERFACE ${VTK_DEFINITIONS})
install(TARGETS vtk EXPORT vtk)
install(EXPORT vtk DESTINATION lib/cmake EXPORT_LINK_INTERFACE_LIBRARIES)
install(TARGETS svtk EXPORT svtk)
install(EXPORT svtk DESTINATION lib/cmake EXPORT_LINK_INTERFACE_LIBRARIES)
endif()
......@@ -29,7 +29,7 @@ if (ENABLE_PYTHON)
add_library(python INTERFACE)
target_include_directories(python INTERFACE ${PYTHON_INCLUDE_PATH} ${MPI4PY_INCLUDE_DIR})
target_link_libraries(python INTERFACE ${PYTHON_LIBRARIES} vtk)
target_link_libraries(python INTERFACE ${PYTHON_LIBRARIES} svtk)
install(TARGETS python EXPORT python)
install(EXPORT python DESTINATION lib/cmake EXPORT_LINK_INTERFACE_LIBRARIES)
......
......@@ -26,7 +26,7 @@ if (ENABLE_VTK_ACCELERATORS)
endif()
if (NOT ENABLE_CATALYST)
add_library(vtk INTERFACE)
add_library(svtk INTERFACE)
find_package(VTK QUIET COMPONENTS ${SENSEI_VTK_COMPONENTS})
if (NOT VTK_FOUND)
......@@ -35,10 +35,10 @@ if (NOT ENABLE_CATALYST)
"VTK_DIR to point to a directory containing `VTKConfig.cmake`.")
endif()
target_link_libraries(vtk INTERFACE ${VTK_LIBRARIES})
target_include_directories(vtk SYSTEM INTERFACE ${VTK_INCLUDE_DIRS})
target_compile_definitions(vtk INTERFACE ${VTK_DEFINITIONS})
target_link_libraries(svtk INTERFACE ${VTK_LIBRARIES})
target_include_directories(svtk SYSTEM INTERFACE ${VTK_INCLUDE_DIRS})
target_compile_definitions(svtk INTERFACE ${VTK_DEFINITIONS})
install(TARGETS vtk EXPORT vtk)
install(EXPORT vtk DESTINATION lib/cmake EXPORT_LINK_INTERFACE_LIBRARIES)
install(TARGETS svtk EXPORT svtk)
install(EXPORT svtk DESTINATION lib/cmake EXPORT_LINK_INTERFACE_LIBRARIES)
endif()
......@@ -8,7 +8,7 @@ if (ENABLE_SENSEI)
ProgrammableDataAdaptor.cxx VTKHistogram.cxx VTKDataAdaptor.cxx
VTKUtils.cxx)
set(senseiCore_libs mpi pugixml vtk thread timer diy grid)
set(senseiCore_libs mpi pugixml svtk thread timer diy grid)
if (ENABLE_CONDUIT)
list(APPEND senseiCore_sources ConduitDataAdaptor.cxx)
......
if (BUILD_TESTING)
add_executable(CompareImages CompareImages.cxx)
target_link_libraries(CompareImages vtk)
target_link_libraries(CompareImages svtk)
endif()
......@@ -4,7 +4,7 @@ target_include_directories(timer SYSTEM INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include/timer>)
target_link_libraries(timer vtk mpi)
target_link_libraries(timer svtk mpi)
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/"
DESTINATION include/timer FILES_MATCHING PATTERN "*.h")
......
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