diff UnitTestsSources/VersionsTests.cpp @ 2366:26f3a346226f

more consistent handling of libiconv in cmake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Aug 2017 21:21:48 +0200
parents eedcddb42767
children 5a650eef0794
line wrap: on
line diff
--- a/UnitTestsSources/VersionsTests.cpp	Mon Aug 21 17:15:51 2017 +0200
+++ b/UnitTestsSources/VersionsTests.cpp	Mon Aug 21 21:21:48 2017 +0200
@@ -44,6 +44,7 @@
 #include <sqlite3.h>
 #include <lua.h>
 #include <jpeglib.h>
+#include <iconv.h>
 
 #if ORTHANC_ENABLE_SSL == 1
 #include <openssl/opensslv.h>
@@ -143,6 +144,13 @@
   ASSERT_STREQ("Lua 5.1.5", LUA_RELEASE);
 }
 
+TEST(Version, LibIconvStatic)
+{
+  static const int major = 1;
+  static const int minor = 15;  
+  ASSERT_EQ((major << 8) + minor, _LIBICONV_VERSION);
+}
+
 
 #if ORTHANC_ENABLE_SSL == 1
 TEST(Version, OpenSslStatic)