Gabriele Contini
2020-04-26 313a1361b11f31da7ee7ad2f2430bbc918b61ef3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ADD_LIBRARY(base OBJECT
    EventRegistry.cpp
    file_utils.cpp
    string_utils.cpp
    base64.cpp
    logger.cpp
)
 
if(CODE_COVERAGE AND UNIX)
      MESSAGE(STATUS "Enabling code coverage")
      target_compile_options(base PUBLIC
        -O0        # no optimization
        -g         # generate debug info
        --coverage # sets all required flags
      )
endif(CODE_COVERAGE AND UNIX)