Commit 6b5f4b04 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

vtkDomainsChemistry: update to the new module system

parent 0317066f
set(Module_SRCS
vtkBlueObeliskData.cxx
vtkBlueObeliskDataInternal.h
vtkBlueObeliskDataParser.cxx
vtkCMLMoleculeReader.cxx
vtkGaussianCubeReader2.cxx
vtkMoleculeMapper.cxx
vtkMoleculeToAtomBallFilter.cxx
vtkMoleculeToBondStickFilter.cxx
vtkMoleculeToLinesFilter.cxx
vtkMoleculeToPolyDataFilter.cxx
vtkPeriodicTable.cxx
vtkPointSetToMoleculeFilter.cxx
vtkProgrammableElectronicData.cxx
vtkProteinRibbonFilter.cxx
vtkSimpleBondPerceiver.cxx
vtkVASPAnimationReader.cxx
vtkVASPTessellationReader.cxx
vtkXYZMolReader2.cxx
)
set(classes
vtkBlueObeliskData
vtkBlueObeliskDataParser
vtkCMLMoleculeReader
vtkGaussianCubeReader2
vtkMoleculeMapper
vtkMoleculeToAtomBallFilter
vtkMoleculeToBondStickFilter
vtkMoleculeToLinesFilter
vtkMoleculeToPolyDataFilter
vtkPeriodicTable
vtkPointSetToMoleculeFilter
vtkProgrammableElectronicData
vtkProteinRibbonFilter
vtkSimpleBondPerceiver
vtkVASPAnimationReader
vtkVASPTessellationReader
vtkXYZMolReader2)
# Generate configured header file
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/vtkChemistryConfigure.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/vtkChemistryConfigure.h")
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/vtkChemistryConfigure.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/vtkChemistryConfigure.h"
@ONLY)
set(${vtk-module}_NO_HeaderTest 1) # TODO: Fix headers and enable test.
vtk_module_library(${vtk-module} ${Module_SRCS})
vtk_module_add_module(VTK::DomainsChemistry
CLASSES ${classes}
HEADERS "${CMAKE_CURRENT_BINARY_DIR}/vtkChemistryConfigure.h"
PRIVATE_HEADERS vtkBlueObeliskDataInternal.h)
vtk_module_test_data(
Data/2LYZ.pdb
Data/2h2o.aux
Data/3GQP.pdb
Data/porphyrin.cml)
add_subdirectory(Cxx)
if (VTK_WRAP_PYTHON)
vtk_module_test_data(
Data/nanowireTB23K298.xyz)
add_subdirectory(Python)
endif ()
......@@ -50,6 +50,6 @@ vtk_test_cxx_executable(vtkDomainsChemistryCxxTests tests
if(NOT VTK_TEST_TIMEOUT_TestPDBBallAndStick)
set(VTK_TEST_TIMEOUT_TestPDBBallAndStick 360)
endif()
set_tests_properties(vtkDomainsChemistryCxx-TestPDBBallAndStick
set_tests_properties(VTK::DomainsChemistryCxx-TestPDBBallAndStick
PROPERTIES TIMEOUT ${VTK_TEST_TIMEOUT_TestPDBBallAndStick}
RUN_SERIAL ON)
......@@ -27,7 +27,7 @@
int TestOpenQubeElectronicData(int argc, char *argv[])
{
char* fname = vtkTestUtilities::ExpandDataFileName(
argc, argv, "Data/2h2o.out");
argc, argv, "Data/2h2o.aux");
vtkNew<vtkOpenQubeMoleculeSource> oq;
oq->SetFileName(fname);
......
......@@ -41,7 +41,7 @@
int TestOpenQubeMOPACDensity(int argc, char *argv[])
{
char* fname = vtkTestUtilities::ExpandDataFileName(
argc, argv, "Data/2h2o.out");
argc, argv, "Data/2h2o.aux");
vtkNew<vtkOpenQubeMoleculeSource> oq;
oq->SetFileName(fname);
......
......@@ -42,7 +42,7 @@
int TestOpenQubeMOPACOrbital(int argc, char *argv[])
{
char* fname = vtkTestUtilities::ExpandDataFileName(
argc, argv, "Data/2h2o.out");
argc, argv, "Data/2h2o.aux");
vtkNew<vtkOpenQubeMoleculeSource> oq;
oq->SetFileName(fname);
......
vtk_module(vtkDomainsChemistry
GROUPS
StandAlone
TEST_DEPENDS
vtkIOGeometry
vtkIOLegacy
vtkTestingCore
vtkTestingRendering
vtkInteractionStyle
vtkRenderingOpenGL2
vtkDomainsChemistryOpenGL2
DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtkIOLegacy
vtkIOXMLParser
vtkRenderingCore
PRIVATE_DEPENDS
vtkCommonTransforms
vtkFiltersCore
vtkFiltersGeneral
vtkFiltersSources
vtksys
)
NAME
VTK::DomainsChemistry
LIBRARY_NAME
vtkDomainsChemistry
DESCRIPTION
File readers and algorithms used in chemistry
IMPLEMENTABLE
GROUPS
StandAlone
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::IOLegacy
VTK::IOXMLParser
VTK::RenderingCore
PRIVATE_DEPENDS
VTK::CommonTransforms
VTK::FiltersCore
VTK::FiltersGeneral
VTK::FiltersSources
VTK::vtksys
TEST_DEPENDS
VTK::CommonSystem
VTK::DomainsChemistryOpenGL2
VTK::FiltersGeometry
VTK::InteractionStyle
VTK::IOGeometry
VTK::IOLegacy
VTK::RenderingOpenGL2
VTK::TestingCore
VTK::TestingRendering
......@@ -2,8 +2,6 @@
// Autogenerated by vtkBlueObeliskData::GenerateHeaderFromXML.
// Do not edit. Any modifications may be lost.
#ifndef __VTK_WRAP__
#ifndef VTK_WRAPPING_CXX
namespace _vtkBlueObeliskData {
static const unsigned int numberOfElements = 118;
......@@ -2327,5 +2325,4 @@ static const unsigned short Groups[119][1] = {
};
} // end namespace _vtkBlueObeliskData
#endif
#endif
// VTK-HeaderTest-Exclude: vtkBlueObeliskDataInternal.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