Skip to content

Commit

Permalink
v1.2 patch
Browse files Browse the repository at this point in the history
Signed-off-by: Rian Quinn <“[email protected]”>
  • Loading branch information
Rian Quinn committed Mar 20, 2017
1 parent 6a009fa commit 6108071
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 28 deletions.
48 changes: 25 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,30 +243,32 @@ SOURCE_GROUP("Tests" FILES ${TEST_SOURCES})
SOURCE_GROUP("Surrogates" FILES ${IMPL_SOURCES})
SOURCE_GROUP("Benchmarks" FILES ${BENCH_SOURCES})

# configure the executable
include_directories(${HEADER_DIR})
add_executable(SelfTest ${TEST_SOURCES} ${IMPL_SOURCES} ${HEADERS})
add_executable(Benchmark ${BENCH_SOURCES} ${HEADERS})
# ------------------------------------------------------------------------------
# bareflank: start
# ------------------------------------------------------------------------------
# include_directories(${HEADER_DIR})
# add_executable(SelfTest ${TEST_SOURCES} ${IMPL_SOURCES} ${HEADERS})
# add_executable(Benchmark ${BENCH_SOURCES} ${HEADERS})
#
# if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" )
# target_compile_options( SelfTest PRIVATE -Wall -Wextra )
# target_compile_options( Benchmark PRIVATE -Wall -Wextra )
# endif()
# if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
# target_compile_options( SelfTest PRIVATE /W4 /w44265 /WX )
# target_compile_options( Benchmark PRIVATE /W4 )
# endif()
#
# enable_testing()
# add_test(NAME RunTests COMMAND SelfTest)

# Add desired warnings
if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" )
target_compile_options( SelfTest PRIVATE -Wall -Wextra )
target_compile_options( Benchmark PRIVATE -Wall -Wextra )
endif()
if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
target_compile_options( SelfTest PRIVATE /W4 /w44265 /WX )
target_compile_options( Benchmark PRIVATE /W4 )
endif()


# configure unit tests via CTest
enable_testing()
add_test(NAME RunTests COMMAND SelfTest)

add_test(NAME ListTests COMMAND SelfTest --list-tests)
set_tests_properties(ListTests PROPERTIES PASS_REGULAR_EXPRESSION "[0-9]+ test cases")
# add_test(NAME ListTests COMMAND SelfTest --list-tests)
# set_tests_properties(ListTests PROPERTIES PASS_REGULAR_EXPRESSION "[0-9]+ test cases")

add_test(NAME ListTags COMMAND SelfTest --list-tags)
set_tests_properties(ListTags PROPERTIES PASS_REGULAR_EXPRESSION "[0-9]+ tags")
# add_test(NAME ListTags COMMAND SelfTest --list-tags)
# set_tests_properties(ListTags PROPERTIES PASS_REGULAR_EXPRESSION "[0-9]+ tags")
# ------------------------------------------------------------------------------
# bareflank: start
# ------------------------------------------------------------------------------

install(DIRECTORY "single_include/" DESTINATION "include/catch/")
12 changes: 7 additions & 5 deletions single_include/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2376,11 +2376,14 @@ namespace Catch {
// #included from: catch_timer.h
#define TWOBLUECUBES_CATCH_TIMER_H_INCLUDED

#ifdef CATCH_PLATFORM_WINDOWS
typedef unsigned long long uint64_t;
#else
// -----------------------------------------------------------------------------
// bareflank: start
// -----------------------------------------------------------------------------
// compilation issue with cygwin
#include <stdint.h>
#endif
// -----------------------------------------------------------------------------
// bareflank: end
// -----------------------------------------------------------------------------

namespace Catch {

Expand Down Expand Up @@ -11336,4 +11339,3 @@ int main (int argc, char * const argv[]) {
using Catch::Detail::Approx;

#endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED

0 comments on commit 6108071

Please sign in to comment.