Browse Source

fixed cmake script for ctest generation

Johannes R 12 years ago
parent
commit
bb8b139895
1 changed files with 1 additions and 8 deletions
  1. 1 8
      core/CMakeLists.txt

+ 1 - 8
core/CMakeLists.txt

@@ -34,14 +34,7 @@ if(BUILD_CORE_TESTS)
 
 
     INSTALL(TARGETS ${__testname} DESTINATION tests)
     INSTALL(TARGETS ${__testname} DESTINATION tests)
 	SET_PROPERTY(TARGET ${__testname} PROPERTY FOLDER "unittests")
 	SET_PROPERTY(TARGET ${__testname} PROPERTY FOLDER "unittests")
-	if(BUILD_CORE_TESTS_PERFORM_AS_POSTBUILD_STEP)
-		add_custom_command(TARGET ${__testname}
-                   POST_BUILD
-                   COMMAND "$<TARGET_FILE:${__testname}>"
-                   COMMENT "Unit Tests...")
-	else()
-		ADD_TEST(${__testname} ${__testname})
-	endif()
+	ADD_TEST(${__testname} ${__testname})
   endforeach()
   endforeach()
 endif()
 endif()