Commit e0e7ba09 authored by Ben Boeckel's avatar Ben Boeckel

Make resource xml files conditional on existence

This allows Catalyst to cherry-pick the resources that are wanted
without patching the CMakeLists.txt.

Change-Id: I8bbedc1ab2d19d6cd86e0fbcf2d0e4e1377da6f3
parent f0e0040d
......@@ -98,7 +98,8 @@ target_link_libraries(vtkPVServerManagerApplication
#------------------------------------------------------------------------------
# Setup SM xmls.
#------------------------------------------------------------------------------
SET(resourceFiles
SET(requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/catalyst.xml
${CMAKE_CURRENT_SOURCE_DIR}/Resources/filters.xml
${CMAKE_CURRENT_SOURCE_DIR}/Resources/sources.xml
${CMAKE_CURRENT_SOURCE_DIR}/Resources/readers.xml
......@@ -112,10 +113,16 @@ SET(resourceFiles
)
if (PARAVIEW_ENABLE_PYTHON)
list(APPEND resourceFiles
list(APPEND requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/pythonfilter.xml
)
endif(PARAVIEW_ENABLE_PYTHON)
set(resourceFiles)
foreach(requestedResourceFile IN LISTS requestedResourceFiles)
if (EXISTS "${requestedResourceFile}")
list(APPEND resourceFiles "${requestedResourceFile}")
endif ()
endforeach()
set (PARAVIEW_SERVERMANAGER_XMLS ${resourceFiles}
CACHE INTERNAL "Server Manager XMLs")
......
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