fixed pr #228 to include pthread and removed header_dependecies test

This commit is contained in:
gabime
2016-06-18 15:04:08 +03:00
parent 6402885164
commit 3a44818b2a
4 changed files with 7 additions and 71 deletions

View File

@@ -9,11 +9,16 @@ add_library(catch INTERFACE)
target_include_directories(catch INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB catch_tests LIST_DIRECTORIES false RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
if (CMAKE_COMPILER_IS_GNUCXX)
set ( CMAKE_CXX_FLAGS "--std=c++11 -pthread")
set ( CMAKE_EXE_LIKKER_FLAGS "-pthread")
endif ()
add_executable(catch_tests ${catch_tests})
target_link_libraries(catch_tests spdlog)
add_test(NAME catch_tests COMMAND catch_tests)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")
# Ensure headers include their own dependencies
add_subdirectory(header_dependencies)