@@ -7,23 +7,34 @@ add_executable(Acoustics
7
7
8
8
arcane_generate_axl (Fem )
9
9
arcane_add_arcane_libraries_to_target (Acoustics )
10
+
10
11
target_include_directories (Acoustics PUBLIC . ${CMAKE_CURRENT_BINARY_DIR} )
11
12
configure_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 )
15
13
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 ()
17
28
18
29
target_link_libraries (Acoustics PUBLIC FemUtils )
19
30
20
31
enable_testing ()
21
32
22
- add_test (NAME [Acoustics]2D_submarine COMMAND Acoustics Test . sub.arc )
33
+ add_test (NAME [Acoustics]2D_submarine COMMAND Acoustics inputs/ sub.arc )
23
34
24
35
if (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 )
26
37
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 )
28
39
endif ()
29
40
endif ()
0 commit comments