Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilqvya committed Aug 5, 2017
1 parent fa5fbf3 commit 6f4c1f9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
project(effolkronium_random_test) # Enable C language support for pthread

find_package(Threads REQUIRED)

if(COVERAGE_ENABLED)
message(STATUS "COVERAGE ENABLED")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0") # debug, no optimisation
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage") # enabling coverage
endif()

include(set_up_warnings.cmake)

#[[
Expand All @@ -17,11 +24,6 @@ function(add_basic_test TARGET COMPILE_DEFS TEST_SOURCES)
target_compile_definitions(${TARGET} PRIVATE ${COMPILE_DEFS})
target_include_directories(${TARGET} PRIVATE "../include" ${CMAKE_CURRENT_SOURCE_DIR})

if(COVERAGE_ENABLED)
message(STATUS "COVERAGE ENABLED")
target_compile_options(${TARGET} PRIVATE -g -O0 --coverage)
endif()

set_target_properties(${TARGET} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON
Expand Down

0 comments on commit 6f4c1f9

Please sign in to comment.