mirror of
https://github.com/BlackMATov/promise.hpp.git
synced 2025-12-14 20:21:32 +07:00
speedup unit tests compilation
This commit is contained in:
@@ -9,9 +9,5 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
|
|||||||
CXX_STANDARD_REQUIRED YES
|
CXX_STANDARD_REQUIRED YES
|
||||||
CXX_EXTENSIONS NO)
|
CXX_EXTENSIONS NO)
|
||||||
|
|
||||||
if(MSVC)
|
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE /bigobj)
|
|
||||||
endif(MSVC)
|
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_test(${PROJECT_NAME} ${PROJECT_NAME})
|
add_test(${PROJECT_NAME} ${PROJECT_NAME})
|
||||||
|
|||||||
@@ -4,12 +4,14 @@
|
|||||||
* Copyright (C) 2018 Matvey Cherevko
|
* Copyright (C) 2018 Matvey Cherevko
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
#define CATCH_CONFIG_MAIN
|
#define CATCH_CONFIG_FAST_COMPILE
|
||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
|
|
||||||
#include "promise.hpp"
|
#include "promise.hpp"
|
||||||
namespace pr = promise_hpp;
|
namespace pr = promise_hpp;
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
struct obj_t {
|
struct obj_t {
|
||||||
|
|||||||
9
tests_main.cpp
Normal file
9
tests_main.cpp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* This file is part of the "promise.hpp"
|
||||||
|
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||||
|
* Copyright (C) 2018 Matvey Cherevko
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
#define CATCH_CONFIG_MAIN
|
||||||
|
#define CATCH_CONFIG_FAST_COMPILE
|
||||||
|
#include "catch.hpp"
|
||||||
Reference in New Issue
Block a user