diff UnitTestsSources/VersionsTests.cpp @ 3992:f9863630ec7f

working on the shared library for Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Jun 2020 16:07:01 +0200
parents 35065dd39cc8
children 27628b0f6ada
line wrap: on
line diff
--- a/UnitTestsSources/VersionsTests.cpp	Fri May 29 21:23:57 2020 +0200
+++ b/UnitTestsSources/VersionsTests.cpp	Fri Jun 05 16:07:01 2020 +0200
@@ -31,6 +31,10 @@
  **/
 
 
+#if ORTHANC_UNIT_TESTS_LINK_FRAMEWORK == 1
+#  include <OrthancFramework/OrthancFramework.h>
+#endif
+
 #include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
@@ -53,7 +57,8 @@
 #  include <openssl/opensslv.h>
 #endif
 
-#if ORTHANC_ENABLE_CIVETWEB == 1
+#if (ORTHANC_ENABLE_CIVETWEB == 1 &&            \
+     ORTHANC_UNIT_TESTS_LINK_FRAMEWORK != 1)
 #  include <civetweb.h>
 #endif
 
@@ -113,7 +118,8 @@
 }
 
 
-#if ORTHANC_ENABLE_CIVETWEB == 1
+#if (ORTHANC_ENABLE_CIVETWEB == 1 &&            \
+     ORTHANC_UNIT_TESTS_LINK_FRAMEWORK != 1)
 TEST(Version, CivetwebCompression)
 {
   ASSERT_TRUE(mg_check_feature(MG_FEATURES_COMPRESSION));