¿Cómo agregar un tipo de compilación personalizada a cmake? (apuntando a hacer)

Estoy tratando de agregar un tipo de compilación personalizada para mi compilación cmake, dirigida a la cobertura del código.

He encontrado la entrada de preguntas frecuentes al respecto:http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_specify_my_own_configurations_.28for_generators_that_allow_it.29_.3F

Sin embargo, no puedo hacer que funcione.

Aquí está mi código, usando cmake 2.8.5:

message("* Adding build types...")
if(CMAKE_CONFIGURATION_TYPES)
   list(APPEND CMAKE_CONFIGURATION_TYPES CodeCoverage)
   list(REMOVE_DUPLICATES CMAKE_CONFIGURATION_TYPES)
   set(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
       "Add the configurations that we need"
       FORCE)
   message("  Available build types are now : ${CMAKE_CONFIGURATION_TYPES}")
else()
   message("  XXX custom build types are not allowed...")
endif()

Y obtengo "XXX tipos de compilación personalizados no están permitidos ..." ...

Respuestas a la pregunta(1)

Su respuesta a la pregunta