diff --git a/source/module_base/grid/test/CMakeLists.txt b/source/module_base/grid/test/CMakeLists.txt index a0f1b6fa9f..068feb9634 100644 --- a/source/module_base/grid/test/CMakeLists.txt +++ b/source/module_base/grid/test/CMakeLists.txt @@ -1,20 +1,20 @@ remove_definitions(-D__MPI) AddTest( - TARGET test_delley + TARGET MODULE_BASE_GRID_test_delley SOURCES test_delley.cpp ../delley.cpp ../../ylm.cpp ) AddTest( - TARGET test_radial + TARGET MODULE_BASE_GRID_test_radial SOURCES test_radial.cpp ../radial.cpp ) AddTest( - TARGET test_partition + TARGET MODULE_BASE_GRID_test_partition SOURCES test_partition.cpp ../partition.cpp ../radial.cpp @@ -22,7 +22,7 @@ AddTest( ) AddTest( - TARGET test_batch + TARGET MODULE_BASE_GRID_test_batch SOURCES test_batch.cpp ../batch.cpp LIBS ${math_libs} diff --git a/source/module_base/kernels/test/CMakeLists.txt b/source/module_base/kernels/test/CMakeLists.txt index c1cbf6771f..fc5b49a33a 100644 --- a/source/module_base/kernels/test/CMakeLists.txt +++ b/source/module_base/kernels/test/CMakeLists.txt @@ -1,7 +1,7 @@ remove_definitions(-D__MPI) AddTest( - TARGET Base_Kernels_UTs + TARGET MODULE_BASE_KERNELS_Unittests LIBS parameter ${math_libs} base device SOURCES math_ylm_op_test.cpp math_kernel_test.cpp ) diff --git a/source/module_base/libm/test/CMakeLists.txt b/source/module_base/libm/test/CMakeLists.txt index 07b0dbd52a..70e9172d55 100644 --- a/source/module_base/libm/test/CMakeLists.txt +++ b/source/module_base/libm/test/CMakeLists.txt @@ -1,7 +1,7 @@ remove_definitions(-D__MPI) AddTest( - TARGET Base_Libm_UTs + TARGET MODULE_BASE_LIBM_UTs SOURCES libm_test.cpp ../branred.cpp ../cexp.cpp diff --git a/source/module_base/module_container/test/CMakeLists.txt b/source/module_base/module_container/test/CMakeLists.txt index 33ba226eeb..9a9505870b 100644 --- a/source/module_base/module_container/test/CMakeLists.txt +++ b/source/module_base/module_container/test/CMakeLists.txt @@ -1,7 +1,7 @@ remove_definitions(-D__MPI) AddTest( - TARGET container_uts + TARGET MODULE_BASE_CONTAINER_Unittests LIBS parameter container base device ${math_libs} SOURCES tensor_test.cpp tensor_shape_test.cpp allocator_test.cpp tensor_buffer_test.cpp tensor_map_test.cpp diff --git a/source/module_base/module_device/test/CMakeLists.txt b/source/module_base/module_device/test/CMakeLists.txt index eaf2b32f85..732b30fd1f 100644 --- a/source/module_base/module_device/test/CMakeLists.txt +++ b/source/module_base/module_device/test/CMakeLists.txt @@ -1,5 +1,5 @@ AddTest( - TARGET Module_Device_UTs + TARGET MODULE_BASE_DEVICE_Unittests LIBS parameter ${math_libs} base device SOURCES memory_test.cpp device_test.cpp ) \ No newline at end of file diff --git a/source/module_base/module_mixing/test/CMakeLists.txt b/source/module_base/module_mixing/test/CMakeLists.txt index ec2fa481c9..86d201e1f7 100644 --- a/source/module_base/module_mixing/test/CMakeLists.txt +++ b/source/module_base/module_mixing/test/CMakeLists.txt @@ -1,6 +1,6 @@ remove_definitions(-D__MPI) AddTest( - TARGET test_mixing + TARGET MODULE_BASE_MIXING_unittests LIBS parameter base device ${math_libs} SOURCES mixing_test.cpp ) \ No newline at end of file diff --git a/source/module_cell/module_neighbor/test/CMakeLists.txt b/source/module_cell/module_neighbor/test/CMakeLists.txt index 130615d900..7a907dc056 100644 --- a/source/module_cell/module_neighbor/test/CMakeLists.txt +++ b/source/module_cell/module_neighbor/test/CMakeLists.txt @@ -5,19 +5,19 @@ remove_definitions(-D__ROCM) remove_definitions(-D__EXX) AddTest( - TARGET cell_neighbor_sltk_atom + TARGET MODULE_CELL_NEIGHBOR_sltk_atom SOURCES sltk_atom_test.cpp ../sltk_atom.cpp ) AddTest( - TARGET cell_neighbor_sltk_grid + TARGET MODULE_CELL_NEIGHBOR_sltk_grid LIBS parameter ${math_libs} base device cell_info SOURCES sltk_grid_test.cpp ../sltk_grid.cpp ../sltk_atom.cpp ../../../module_io/output.cpp ) AddTest( - TARGET cell_neighbor_sltk_atom_arrange + TARGET MODULE_CELL_NEIGHBOR_sltk_atom_arrange LIBS parameter ${math_libs} base device cell_info SOURCES sltk_atom_arrange_test.cpp ../sltk_atom_arrange.cpp ../sltk_grid_driver.cpp ../sltk_grid.cpp ../sltk_atom.cpp diff --git a/source/module_cell/module_symmetry/test/CMakeLists.txt b/source/module_cell/module_symmetry/test/CMakeLists.txt index f6509c5dc9..88a7487e13 100644 --- a/source/module_cell/module_symmetry/test/CMakeLists.txt +++ b/source/module_cell/module_symmetry/test/CMakeLists.txt @@ -3,12 +3,12 @@ remove_definitions(-D__DEEPKS) remove_definitions(-D__CUDA) remove_definitions(-D__ROCM) AddTest( - TARGET symmetry_analysis + TARGET MODULE_CELL_SYMMETRY_analysis LIBS parameter base ${math_libs} device symmetry SOURCES symmetry_test.cpp symmetry_test_analysis.cpp ) AddTest( - TARGET symmetry_symtrz + TARGET MODULE_CELL_SYMMETRY_symtrz LIBS parameter base ${math_libs} device symmetry SOURCES symmetry_test.cpp symmetry_test_symtrz.cpp ) \ No newline at end of file diff --git a/source/module_hsolver/kernels/test/CMakeLists.txt b/source/module_hsolver/kernels/test/CMakeLists.txt index 5fe6bf4a24..6ae7221685 100644 --- a/source/module_hsolver/kernels/test/CMakeLists.txt +++ b/source/module_hsolver/kernels/test/CMakeLists.txt @@ -3,7 +3,7 @@ remove_definitions(-D__ROCM) if(USE_CUDA OR USE_ROCM) AddTest( - TARGET Hsolver_Kernels_UTs + TARGET MODULE_HSOLVER_KERNELS_Unittests LIBS parameter ${math_libs} base device SOURCES math_dngvd_test.cpp ) @@ -11,7 +11,7 @@ endif() if(ENABLE_GOOGLEBENCH) AddTest( - TARGET Perf_Hsolver_Kernels + TARGET PERF_MODULE_HSOLVER_KERNELS LIBS parameter ${math_libs} base device SOURCES perf_math_kernel.cpp ) diff --git a/source/module_io/json_output/test/CMakeLists.txt b/source/module_io/json_output/test/CMakeLists.txt index 50dfc411ba..af6689011e 100644 --- a/source/module_io/json_output/test/CMakeLists.txt +++ b/source/module_io/json_output/test/CMakeLists.txt @@ -4,7 +4,7 @@ remove_definitions(-D__ROCM) remove_definitions(-D__EXX) AddTest( - TARGET io_json_output_json + TARGET MODULE_IO_JSON_OUTPUT_TEST LIBS parameter ${math_libs} base device cell_info SOURCES para_json_test.cpp ../general_info.cpp ../init_info.cpp ../readin_info.cpp ../../para_json.cpp ../abacusjson.cpp ../../output.cpp diff --git a/source/module_io/test_serial/CMakeLists.txt b/source/module_io/test_serial/CMakeLists.txt index 9794c6ddc3..a07101efc4 100644 --- a/source/module_io/test_serial/CMakeLists.txt +++ b/source/module_io/test_serial/CMakeLists.txt @@ -25,7 +25,7 @@ add_library( install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) AddTest( - TARGET io_read_input_serial + TARGET MODULE_IO_read_input_serial LIBS parameter ${math_libs} io_input_serial SOURCES read_input_test.cpp ../../module_base/test/tool_quit_no_exit.cpp @@ -33,30 +33,30 @@ AddTest( ) AddTest( - TARGET io_read_item_serial + TARGET MODULE_IO_read_item_serial LIBS parameter ${math_libs} base device io_input_serial SOURCES read_input_item_test.cpp ) AddTest( - TARGET io_read_input_tool + TARGET MODULE_IO_read_input_tool SOURCES read_input_tool_test.cpp ) AddTest( - TARGET io_rho_io + TARGET MODULE_IO_rho_io LIBS parameter ${math_libs} base device cell_info SOURCES rho_io_test.cpp ../read_cube.cpp ../write_cube.cpp ../output.cpp ) AddTest( - TARGET io_nscf_band + TARGET MODULE_IO_nscf_band LIBS parameter ${math_libs} base device SOURCES nscf_band_test.cpp ../nscf_band.cpp ) AddTest( - TARGET io_system_variable_test + TARGET MODULE_IO_system_variable_test LIBS parameter ${math_libs} base device io_input_serial SOURCES io_system_variable_test.cpp ) \ No newline at end of file