CMakeLists.txt 1.51 KB
Newer Older
T.J. Corona's avatar
T.J. Corona committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set(TESTS_WITH_BASELINES
  ${CMAKE_CURRENT_SOURCE_DIR}/BoxWidget.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/ConeWidget.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/LineWidget.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/PlaneWidget.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/PointWidget.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SphereWidget.xml
  ${CMAKE_CURRENT_SOURCE_DIR}/SplineWidget.xml
)

include(SMTKPVTestingMacros)

#TODO: this should be set for the entire project's xml tests
set(ConeWidget_USES_DIRECT_DATA ON)
set(BoxWidget_USES_DIRECT_DATA ON)
set(LineWidget_USES_DIRECT_DATA ON)
set(PlaneWidget_USES_DIRECT_DATA ON)
set(PointWidget_USES_DIRECT_DATA ON)
set(SphereWidget_USES_DIRECT_DATA ON)
set(SplineWidget_USES_DIRECT_DATA ON)

if (SMTK_DATA_DIR)
smtk_add_client_tests(
#  LABEL "pv_meshsession"
  TEST_SCRIPTS ${TESTS_WITH_BASELINES}
26
27
  ENVIRONMENT
    PV_PLUGIN_DEBUG=1
T.J. Corona's avatar
T.J. Corona committed
28
  LOAD_PLUGINS
29
    smtkResourcePlugin
30
    smtkAttributePlugin
31
32
33
    smtkOperationPlugin
    smtkGeometryPlugin
    smtkViewPlugin
T.J. Corona's avatar
T.J. Corona committed
34
35
36
37
    smtkPVServerExtPlugin
    smtkPQComponentsPlugin
    smtkPQWidgetsPlugin
  PLUGIN_PATHS
38
    $<TARGET_FILE_DIR:smtkResourcePlugin>/..
39
    $<TARGET_FILE_DIR:smtkAttributePlugin>/..
40
41
42
    $<TARGET_FILE_DIR:smtkOperationPlugin>/..
    $<TARGET_FILE_DIR:smtkGeometryPlugin>/..
    $<TARGET_FILE_DIR:smtkViewPlugin>/..
T.J. Corona's avatar
T.J. Corona committed
43
44
45
46
47
48
49
    $<TARGET_FILE_DIR:smtkPQComponentsPlugin>/..
    $<TARGET_FILE_DIR:smtkPVServerExtPlugin>/..
    $<TARGET_FILE_DIR:smtkPQWidgetsPlugin>/..
  DATA_DIRECTORY ${PROJECT_SOURCE_DIR}/data
  BASELINE_DIR ${PROJECT_SOURCE_DIR}/data/baseline/smtk/widgets
  )
endif()