Files
promise.hpp/CMakeLists.txt
BlackMATov c4f2a96023 then function with both resolve and reject callbacks
also fix problem with throw exceptions from fail
2018-12-10 11:28:16 +07:00

18 lines
419 B
CMake

cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(promise)
file(GLOB test_sources "*.cpp" "*.hpp")
add_executable(${PROJECT_NAME} ${test_sources})
set_target_properties(${PROJECT_NAME} PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO)
if(MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE /bigobj)
endif(MSVC)
enable_testing()
add_test(${PROJECT_NAME} ${PROJECT_NAME})