add_definitions(-D__NORMAL)
AddTest(
  TARGET pw_test
  LIBS parameter ${math_libs} planewave device 
  SOURCES ../../../module_base/matrix.cpp ../../../module_base/complexmatrix.cpp ../../../module_base/matrix3.cpp ../../../module_base/tool_quit.cpp
          ../../../module_base/mymath.cpp ../../../module_base/timer.cpp ../../../module_base/memory.cpp ../../../module_base/blas_connector.cpp 
          ../../../module_base/libm/branred.cpp ../../../module_base/libm/sincos.cpp 
      #     ../../../module_psi/kernels/psi_memory_op.cpp 
          ../../../module_base/module_device/memory_op.cpp
          depend_mock.cpp pw_test.cpp test1-1-1.cpp test1-1-2.cpp test1-2.cpp test1-3.cpp test1-4.cpp  test1-5.cpp
          test2-1-1.cpp test2-1-2.cpp test2-2.cpp test2-3.cpp 
          test3-1.cpp test3-2.cpp test3-3.cpp test3-3-2.cpp 
          test4-1.cpp test4-2.cpp test4-3.cpp test4-4.cpp  test4-5.cpp
          test5-1-1.cpp test5-1-2.cpp test5-2-1.cpp test5-2-2.cpp test5-3-1.cpp test5-4-1.cpp test5-4-2.cpp 
          test6-1-1.cpp test6-1-2.cpp test6-2-1.cpp test6-2-2.cpp test6-3-1.cpp test6-4-1.cpp test6-4-2.cpp 
          test7-1.cpp test6-2-1.cpp test7-3-1.cpp test7-3-2.cpp
          test8-1.cpp test8-2-1.cpp test8-3-1.cpp test8-3-2.cpp
          test_tool.cpp test-big.cpp test-other.cpp test_sup.cpp
)

add_test(NAME pw_test_parallel
      COMMAND mpirun -np 3 ./pw_test; mpirun -np 4 ./pw_test
      WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
