Unittests: prepare ctest usage.

pull/1234/head
Kim Kulling 2017-04-17 21:25:57 +02:00
parent ad80f97930
commit c1d1dfadb3
2 changed files with 27 additions and 34 deletions

View File

@ -38,6 +38,8 @@
cmake_minimum_required( VERSION 2.6 )
#INCLUDE( AddGTest )
include( CTest )
enable_testing()
INCLUDE_DIRECTORIES(
../contrib/gtest/include
@ -152,15 +154,6 @@ ENDIF(MSVC)
target_link_libraries( unit assimp ${platform_libs} )
add_subdirectory(headercheck)
#if (ASSIMP_COVERALLS)
# include(Coveralls)
#
# set(COVERAGE_SRCS ${assimp_src} ${TEST_SRCS} )
#
# # Create the coveralls target.
# coveralls_setup(
# "${COVERAGE_SRCS}" # The source files.
# ON # If we should upload.
# "${PROJECT_SOURCE_DIR}/cmake-modules/") # (Optional) Alternate project cmake module path.
#endif()
add_test( unittests unit )