From 048999404a6ce009c15b6b980edb48b9142595e2 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 12 Dec 2020 13:41:35 +0100 Subject: [PATCH] Mesh copy in the build directory is called in a different CMakeLists.txt file --- CoreFlows/examples/CMakeLists.txt | 5 +++++ CoreFlows/examples/Python/CMakeLists.txt | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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) -- 2.39.2