I would like to know how to use Bulls eye with CMake. I currently have a library and an corresponding executable (with unittests) being build. There were literally no sources but what I can glean from, I came up with this.
FIND_PACKAGE(Bullseye REQUIRED) #This works fine I have a custom file that locates Bullseye
SET(ENV{COVFILE} "${CMAKE_BINARY_DIRECTORY}/test.cov")
#turn on coverage
SET(RES 1)
EXECUTE_PROCESS(COMMAND ${BULLSEYE_BINARY} -1 RESULT_VARIABLE RES)
#build here
........... common.lib
........... common_test.exe
ADD_CUSTOM_COMMAND(
TARGET common_test POST_BUILD
COMMAND ${BULLSEYE_BINARY} -0
)
INSTALL(FILES $ENV{COVFILE} DESTINATION ${COMMON_WIN7_BULLSEYE_OUTPUT_DIR} CONFIGURATIONS Debug)