comparison CMakeLists.txt @ 557:5cd525fc91de

Add lcov target to generate coverage report
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 22 May 2014 10:19:27 +0000
parents 4f972b1f4996
children 7dfa4555fb89
comparison
equal deleted inserted replaced
556:5dc4aa684c63 557:5cd525fc91de
116 list(GET NSS_LIBRARIES 1 NSS_BASE_DIR) 116 list(GET NSS_LIBRARIES 1 NSS_BASE_DIR)
117 get_filename_component(NSS_BASE_DIR ${NSS_BASE_DIR} PATH) 117 get_filename_component(NSS_BASE_DIR ${NSS_BASE_DIR} PATH)
118 118
119 set(NSS_BASE_DIR "${NSS_BASE_DIR}/..") 119 set(NSS_BASE_DIR "${NSS_BASE_DIR}/..")
120 configure_file (packaging/tmp-createpackage.sh.in packaging/tmp-createpackage.sh) 120 configure_file (packaging/tmp-createpackage.sh.in packaging/tmp-createpackage.sh)
121
122 if (ENABLE_PROFILING)
123 configure_file (make-coverage.sh.in make-coverage.sh)
124 add_custom_target(lcov COMMENT "Lcov coverage report" VERBATIM COMMAND /bin/bash
125 ${CMAKE_CURRENT_BINARY_DIR}/make-coverage.sh
126 )
127 endif()

http://wald.intevation.org/projects/trustbridge/