diff --git a/README.md b/README.md index fa1b6b0..b0a2f76 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ R3 [![Build Status](https://travis-ci.org/c9s/r3.svg?branch=2.0)](https://travis-ci.org/c9s/r3) +[![Windows Build Status](https://img.shields.io/appveyor/ci/simon-p-r/r3/master.svg?label=windows&style=flat-square&maxAge=2592000)](https://ci.appveyor.com/project/simon-p-r/r3) + [![Coverage Status](https://coveralls.io/repos/c9s/r3/badge.svg)](https://coveralls.io/r/c9s/r3) R3 is an URL router library with high performance, thus, it's implemented in C. diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4a5e411..1b9dc2d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,13 @@ function(add_r3_test NAME) add_executable(${NAME} ${ARGN}) + if(WIN32) + target_compile_definitions(${NAME} + PRIVATE + _CRT_SECURE_NO_WARNINGS + ) + endif(WIN32) + target_include_directories(${NAME} PRIVATE ${CHECK_INCLUDE_DIRS}