소스 검색

cmake added cppunit test integration into add_test (make test)

Johannes R 12 년 전
부모
커밋
2114ee967f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/CMakeLists.txt

+ 2 - 0
core/CMakeLists.txt

@@ -39,6 +39,8 @@ if(BUILD_CORE_TESTS)
                    POST_BUILD
                    COMMAND "$<TARGET_FILE:${__testname}>"
                    COMMENT "Unit Tests...")
+	else()
+		ADD_TEST(${__testname} UnitTester ${__testname})
 	endif()
   endforeach()
 endif()