浏览代码

fix for unit testing

Johannes Ruehle 11 年之前
父节点
当前提交
8ca1e666f1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cmake/NiceModules.cmake

+ 1 - 1
cmake/NiceModules.cmake

@@ -75,7 +75,7 @@ macro(nice_add_unittests)
 
       INSTALL(TARGETS ${__testname} DESTINATION "tests/${the_library}")
       SET_PROPERTY(TARGET ${__testname} PROPERTY FOLDER "unittests/${the_library}")
-      ADD_TEST(${__testname} ${__testname} WORKING_DIRECTORY ${__testname_dir})
+      ADD_TEST(NAME ${__testname} WORKING_DIRECTORY ${__testname_dir} COMMAND ${__testname})
     endforeach()
 
 #     INCLUDE_DIRECTORIES(${CPPUNIT_INCLUDE_DIR})