@@ -7,23 +7,34 @@ add_executable(Acoustics
77
88arcane_generate_axl (Fem )
99arcane_add_arcane_libraries_to_target (Acoustics )
10+
1011target_include_directories (Acoustics PUBLIC . ${CMAKE_CURRENT_BINARY_DIR} )
1112configure_file (Acoustics.config ${CMAKE_CURRENT_BINARY_DIR} COPYONLY )
12- configure_file (Test .sub.arc ${CMAKE_CURRENT_BINARY_DIR} COPYONLY )
13- configure_file (Test .sub.hypre.arc ${CMAKE_CURRENT_BINARY_DIR} COPYONLY )
14- configure_file (${MSH_DIR} /sub.msh ${CMAKE_CURRENT_BINARY_DIR} COPYONLY )
1513
16- file (COPY "tests/" DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
14+ # Copy the check files in the binary directory
15+ file (COPY "check" DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
16+
17+ # Copy the inputs folder containing the arc files
18+ file (COPY "inputs" DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
19+
20+ # Copy the mesh files into meshes directory
21+ file (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /meshes )
22+ set (MESH_FILES
23+ sub.msh
24+ )
25+ foreach (MESH_FILE IN LISTS MESH_FILES)
26+ file (COPY ${MSH_DIR} /${MESH_FILE} DESTINATION ${CMAKE_CURRENT_BINARY_DIR} /meshes )
27+ endforeach ()
1728
1829target_link_libraries (Acoustics PUBLIC FemUtils )
1930
2031enable_testing ()
2132
22- add_test (NAME [Acoustics]2D_submarine COMMAND Acoustics Test . sub.arc )
33+ add_test (NAME [Acoustics]2D_submarine COMMAND Acoustics inputs/ sub.arc )
2334
2435if (FEMUTILS_HAS_SOLVER_BACKEND_HYPRE)
25- add_test (NAME [Acoustics]2D_submarine_hypre COMMAND Acoustics Test . sub.hypre.arc )
36+ add_test (NAME [Acoustics]2D_submarine_hypre COMMAND Acoustics inputs/ sub.hypre.arc )
2637 if (FEMUTILS_HAS_PARALLEL_SOLVER AND MPIEXEC_EXECUTABLE)
27- add_test (NAME [Acoustics]2D_submarine_hypre_2pe COMMAND ${MPIEXEC_EXECUTABLE} -n 2 ./Acoustics Test . sub.hypre.arc )
38+ add_test (NAME [Acoustics]2D_submarine_hypre_2p COMMAND ${MPIEXEC_EXECUTABLE} -n 2 ./Acoustics inputs/ sub.hypre.arc )
2839 endif ()
2940endif ()
0 commit comments