diff Core/Images/FontRegistry.h @ 2379:4900688827a8

reorganization in CMake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Aug 2017 18:07:03 +0200
parents a3a65de1840f
children 5edec967055e
line wrap: on
line diff
--- a/Core/Images/FontRegistry.h	Mon Aug 28 15:02:27 2017 +0200
+++ b/Core/Images/FontRegistry.h	Mon Aug 28 18:07:03 2017 +0200
@@ -35,7 +35,13 @@
 
 #include "Font.h"
 
-#include <EmbeddedResources.h>   // Autogenerated file
+#if !defined(ORTHANC_HAS_EMBEDDED_RESOURCES)
+#  error Macro ORTHANC_HAS_EMBEDDED_RESOURCES must be defined
+#endif
+
+#if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
+#  include <EmbeddedResources.h>   // Autogenerated file
+#endif
 
 namespace Orthanc
 {
@@ -53,7 +59,9 @@
 
     void AddFromFile(const std::string& path);
 
+#if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
     void AddFromResource(EmbeddedResources::FileResourceId resource);
+#endif
 
     size_t GetSize() const
     {