message: fix cuda unit test in cmake
diff: @@ -60,12 +60,22 @@ endif()
  # All serial non-device unit tests are built into a single executable 'unit_tests'.
  add_executable(unit_tests unit_test_main.cpp ${UNIT_TESTS_SRCS})
  -add_executable(cunit_tests cunit_test_main.cpp ${UNIT_TESTS_SRCS})
  # Unit tests need the ../../data directory.
  add_dependencies(unit_tests copy_data)
  -add_dependencies(cunit_tests copy_data)
  target_link_libraries(unit_tests mfem)
  +if (MFEM_USE_CUDA)
  + set(CUNIT_TESTS_SRCS
  + cunit_test_main.cpp
  + )
  + set_property(SOURCE ${CUNIT_TESTS_SRCS} PROPERTY LANGUAGE CUDA)
  + add_executable(cunit_tests ${CUNIT_TESTS_SRCS} ${UNIT_TESTS_SRCS})
  + add_dependencies(cunit_tests copy_data)
  + target_link_libraries(cunit_tests mfem)
  +
  + add_dependencies(${MFEM_ALL_TESTS_TARGET_NAME} cunit_tests)
  +endif()
  +
  # All device unit tests are built into another executable, in order to be able
  # to change the device.
  set(SEDOV_TESTS_SRCS
  @@ -116,12 +126,12 @@ endif()
  # make unit_tests
  # ctest -R unit_tests [-V]
  add_test(NAME unit_tests COMMAND unit_tests)
  -add_test(NAME cunit_tests COMMAND cunit_tests)
  add_test(NAME sedov_tests_cpu COMMAND sedov_tests_cpu)
  add_test(NAME sedov_tests_debug COMMAND sedov_tests_debug)
  # Additional CUDA unit tests
  if (MFEM_USE_CUDA)
  + add_test(NAME cunit_tests COMMAND cunit_tests)
  add_test(NAME sedov_tests_cuda COMMAND sedov_tests_cuda)
  add_test(NAME sedov_tests_cuda_uvm COMMAND sedov_tests_cuda_uvm)
  endif()
  