Salome HOME
Copyright update 2022
[modules/paravis.git] / resources / CMakeLists.txt
index 85a0133dd5cf7bf386bd3c1fc368045a2b1974d8..9d83e3b94e73f927ded19cdec8c16d14b598ed43 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2010-2013  CEA/DEN, EDF R&D
+# Copyright (C) 2010-2022  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 SET(dist_salomeres_DATA
   pqAppIcon22.png
   pqAppIcon16.png
-  ParaViewFilters.xml
-  ParaViewReaders.xml
-  ParaViewSources.xml
-  ParaViewWriters.xml
   )
 
 SET(input ${CMAKE_CURRENT_SOURCE_DIR}/PARAVISCatalog.xml.in)
@@ -32,7 +28,7 @@ SET(output ${CMAKE_CURRENT_BINARY_DIR}/PARAVISCatalog.xml)
 MESSAGE(STATUS "Creation of ${output}")
 CONFIGURE_FILE(${input} ${output})
 
-INSTALL(FILES ${output} DESTINATION share/salome/resources/paravis)
+INSTALL(FILES ${output} DESTINATION ${SALOME_PARAVIS_INSTALL_RES_DATA})
 
 SET(input ${CMAKE_CURRENT_SOURCE_DIR}/SalomeApp.xml.in)
 SET(output ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml)
@@ -40,8 +36,9 @@ SET(output ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml)
 MESSAGE(STATUS "Creation of ${output}")
 CONFIGURE_FILE(${input} ${output})
 
-INSTALL(FILES ${output} DESTINATION share/salome/resources/paravis)
+INSTALL(FILES ${output} DESTINATION ${SALOME_PARAVIS_INSTALL_RES_DATA})
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml RENAME SalomeAppSL.xml DESTINATION ${SALOME_PARAVIS_INSTALL_RES_DATA})
 
 FOREACH(f ${dist_salomeres_DATA})
-  INSTALL(FILES ${f} DESTINATION share/salome/resources/paravis)
+  INSTALL(FILES ${f} DESTINATION ${SALOME_PARAVIS_INSTALL_RES_DATA})
 ENDFOREACH(f ${dist_salomeres_DATA})