]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Mesh copy in the build directory is called in a different CMakeLists.txt file
authormichael <michael@localhost.localdomain>
Sat, 12 Dec 2020 12:41:35 +0000 (13:41 +0100)
committermichael <michael@localhost.localdomain>
Sat, 12 Dec 2020 12:41:35 +0000 (13:41 +0100)
CoreFlows/examples/CMakeLists.txt
CoreFlows/examples/Python/CMakeLists.txt

index 00d91cc766e939f2e127fbe1a5e8ae20bd56fb55..6f0f8187631c819e6fb53f1c11cc7b4c3cde0c05 100755 (executable)
@@ -3,6 +3,11 @@ project(test)
 file(GLOB MESHES_TO_INSTALL resources )
 install(DIRECTORY ${MESHES_TO_INSTALL} DESTINATION share/examples)
 
+file(COPY resources DESTINATION ${CMAKE_CURRENT_BINARY_DIR} 
+    FILE_PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE
+)
+
+
 add_subdirectory (C)
 
 if (COREFLOWS_WITH_PYTHON )
index d0dc91277e76e40d940a2c176036034681d3886f..3411857e1dcd36b92c399e219a867f2a6005df62 100755 (executable)
@@ -73,11 +73,6 @@ file(COPY ${pythonTestFiles} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
     FILE_PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE
 )
 
-# copy all mesh files before build
-file(COPY ../resources DESTINATION ${CMAKE_CURRENT_BINARY_DIR} 
-    FILE_PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE
-)
-
 CreatePythonTest(DiffusionEquation/DiffusionEquation_1DHeatedRod.py)
 CreatePythonTest(DiffusionEquation/DiffusionEquation_1DHeatedRod_FE.py)