global:
- PV=r8e PLATF=linux-x86_64 NDK_HOME=${TRAVIS_BUILD_DIR}/android-ndk-${PV} PATH=${PATH}:${NDK_HOME}
matrix:
- - LINUX=1 TRAVIS_NO_EXPORT=YES
- - LINUX=1 TRAVIS_NO_EXPORT=NO
- - LINUX=1 SHARED_BUILD=ON
- - LINUX=1 SHARED_BUILD=OFF
+ - LINUX=1 TRAVIS_NO_EXPORT=YES ASSIMP_COVERALLS=ON
+ - LINUX=1 TRAVIS_NO_EXPORT=NO ASSIMP_COVERALLS=ON
+ - LINUX=1 SHARED_BUILD=ON ASSIMP_COVERALLS=ON
+ - LINUX=1 SHARED_BUILD=OFF ASSIMP_COVERALLS=ON
- ANDROID=1
language: cpp
"If the test suite for Assimp is built in addition to the library."
ON
)
+OPTION ( ASSIMP_COVERALLS
+ "EaĆable this to measure test coverage."
+ OFF
+)
+
IF(MSVC)
set (CMAKE_PREFIX_PATH "D:\\libs\\devil")
OPTION( ASSIMP_INSTALL_PDB
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall -Wno-long-long -pedantic -std=c++11" )
ENDIF()
-if (COVERALLS)
+if (ASSIMP_COVERALLS)
include(Coveralls)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
target_link_libraries( unit assimp ${platform_libs} )
add_subdirectory(headercheck)
-if (COVERALLS)
+if (ASSIMP_COVERALLS)
set(COVERAGE_SRCS ${assimp_src} ${TEST_SRCS} )
# Create the coveralls target.