1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
if(VTK_PSQL_TEST_URL)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkIOPostgresSQLTestingCxxConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkIOPostgresSQLTestingCxxConfigure.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
if(WIN32)
set(TestPostgreSQLTableReadWrite_ARGS
DATA{../Data/Input/simple_table_win.vtk})
else()
set(TestPostgreSQLTableReadWrite_ARGS
DATA{../Data/Input/simple_table.vtk})
endif()
vtk_add_test_cxx(${vtk-module}CxxTests tests
NO_DATA NO_VALID
TestPostgreSQLDatabase.cxx
TestPostgreSQLTableReadWrite.cxx
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
endif()
|