diff --git a/tests/test_lex_boolean.cpp b/tests/test_lex_boolean.cpp index c2e43a8..c872de3 100644 --- a/tests/test_lex_boolean.cpp +++ b/tests/test_lex_boolean.cpp @@ -1,5 +1,10 @@ #define BOOST_TEST_MODULE "test_lex_boolean" +#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST #include +#else +#define BOOST_TEST_NO_LIB +#include +#endif #include #include "test_lex_aux.hpp" diff --git a/tests/test_lex_datetime.cpp b/tests/test_lex_datetime.cpp index a790eeb..fa9b4c3 100644 --- a/tests/test_lex_datetime.cpp +++ b/tests/test_lex_datetime.cpp @@ -1,5 +1,10 @@ #define BOOST_TEST_MODULE "test_lex_datetime" +#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST #include +#else +#define BOOST_TEST_NO_LIB +#include +#endif #include #include "test_lex_aux.hpp" diff --git a/tests/test_lex_floating.cpp b/tests/test_lex_floating.cpp index 9c5c809..882cd81 100644 --- a/tests/test_lex_floating.cpp +++ b/tests/test_lex_floating.cpp @@ -1,5 +1,10 @@ #define BOOST_TEST_MODULE "test_lex_floating" +#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST #include +#else +#define BOOST_TEST_NO_LIB +#include +#endif #include #include #include "test_lex_aux.hpp" diff --git a/tests/test_lex_integer.cpp b/tests/test_lex_integer.cpp index bb6dbb7..f16c81c 100644 --- a/tests/test_lex_integer.cpp +++ b/tests/test_lex_integer.cpp @@ -1,5 +1,10 @@ #define BOOST_TEST_MODULE "test_lex_integer" +#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST #include +#else +#define BOOST_TEST_NO_LIB +#include +#endif #include #include "test_lex_aux.hpp" diff --git a/tests/test_lex_key_comment.cpp b/tests/test_lex_key_comment.cpp index 0921bd6..ba5c37c 100644 --- a/tests/test_lex_key_comment.cpp +++ b/tests/test_lex_key_comment.cpp @@ -1,5 +1,10 @@ #define BOOST_TEST_MODULE "lex_key_comment_test" +#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST #include +#else +#define BOOST_TEST_NO_LIB +#include +#endif #include #include "test_lex_aux.hpp" diff --git a/tests/test_lex_string.cpp b/tests/test_lex_string.cpp index 643ab31..0671358 100644 --- a/tests/test_lex_string.cpp +++ b/tests/test_lex_string.cpp @@ -1,5 +1,10 @@ #define BOOST_TEST_MODULE "test_lex_string" +#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST #include +#else +#define BOOST_TEST_NO_LIB +#include +#endif #include #include "test_lex_aux.hpp" diff --git a/tests/test_result.cpp b/tests/test_result.cpp index d693bd6..36368a2 100644 --- a/tests/test_result.cpp +++ b/tests/test_result.cpp @@ -1,5 +1,10 @@ #define BOOST_TEST_MODULE "test_result" +#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST #include +#else +#define BOOST_TEST_NO_LIB +#include +#endif #include #include diff --git a/tests/test_string.cpp b/tests/test_string.cpp index 444fc63..473c611 100644 --- a/tests/test_string.cpp +++ b/tests/test_string.cpp @@ -1,5 +1,10 @@ #define BOOST_TEST_MODULE "test_string" +#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST #include +#else +#define BOOST_TEST_NO_LIB +#include +#endif #include BOOST_AUTO_TEST_CASE(test_basic_string)