From: michael Date: Sat, 12 Dec 2020 12:41:35 +0000 (+0100) Subject: Mesh copy in the build directory is called in a different CMakeLists.txt file X-Git-Tag: V9_7_0~100 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=048999404a6ce009c15b6b980edb48b9142595e2;p=tools%2Fsolverlab.git Mesh copy in the build directory is called in a different CMakeLists.txt file --- diff --git a/CoreFlows/examples/CMakeLists.txt b/CoreFlows/examples/CMakeLists.txt index 00d91cc..6f0f818 100755 --- a/CoreFlows/examples/CMakeLists.txt +++ b/CoreFlows/examples/CMakeLists.txt @@ -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 ) diff --git a/CoreFlows/examples/Python/CMakeLists.txt b/CoreFlows/examples/Python/CMakeLists.txt index d0dc912..3411857 100755 --- a/CoreFlows/examples/Python/CMakeLists.txt +++ b/CoreFlows/examples/Python/CMakeLists.txt @@ -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)