cmake_minimum_required(VERSION 3.4)
project(dafs)

add_subdirectory(dependencies)
add_subdirectory(src)
add_subdirectory(unittests)

cmake_minimum_required(VERSION 3.4)
project(dafs)

if(CODE_COVERAGE)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -g -O0 -fprofile-arcs -ftest-coverage")
  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
  set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --coverage")
endif()

add_subdirectory(dependencies)
add_subdirectory(src)
add_subdirectory(unittests)

Add code coverage option to cmake lists
Add code coverage option to cmake lists
