[ismrmrd] 264/281: fix windows compilation
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:01:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.
commit 67e4cddcefbe1a362ff66d0739c3b2fb51ef25fb
Author: Hui Xue <hui.xue at nih.gov>
Date: Fri Aug 22 15:19:59 2014 -0400
fix windows compilation
---
CMakeLists.txt | 19 ++++++++++++++++---
xml/ismrmrd_meta.h | 9 +++++----
2 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b5fec1..1d27911 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,10 +85,23 @@ find_package(XercesC REQUIRED)
set(XSDS ${ISMRMRD_SCHEMA_DIR}/ismrmrd.xsd)
set(XSD_ARGS cxx-tree --generate-serialization)
if ( WIN32 )
- SET(XSD_ARGS cxx-tree --generate-serialization --export-symbol EXPORTISMRMRDXSD --hxx-prologue-file ${CMAKE_SOURCE_DIR}/ismrmrd_xsd_export.h)
-endif (WIN32)
-wrap_xsd(XSDS_SOURCES XSD_INCLUDES ${CMAKE_CURRENT_BINARY_DIR}/schema ${XSDS} OPTIONS ${XSD_ARGS})
+ set(XSD_ARGS cxx-tree --generate-serialization --export-symbol EXPORTISMRMRDXSD --hxx-prologue-file ${CMAKE_SOURCE_DIR}/ismrmrd_xsd_export.h)
+ set(XSDS schema/ismrmrd.xsd)
+ set(XSD_ARGS cxx-tree --generate-serialization)
+ WRAP_XSD(XSDS_SOURCES XSD_INCLUDES ${CMAKE_CURRENT_BINARY_DIR}/schema ${XSDS} OPTIONS ${XSD_ARGS})
+ include_directories(${ISMRMRD_SCHEMA_SOURCE_DIR} ${XSD_INCLUDE_DIR}
+ ${XERCESC_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${HDF5_CXX_INCLUDE_DIR}
+ ${HDF5_C_INCLUDE_DIR})
+ link_directories(${Boost_LIBRARY_DIRS})
+
+ # This dummy is required to trigger autogeneration of ${XSDS_SOURCES}
+ add_library(dummy SHARED ${XSDS_SOURCES})
+ target_link_libraries(dummy ${XERCESC_LIBRARIES})
+
+elseif (WIN32)
+ wrap_xsd(XSDS_SOURCES XSD_INCLUDES ${CMAKE_CURRENT_BINARY_DIR}/schema ${XSDS} OPTIONS ${XSD_ARGS})
+endif (WIN32)
if ( WIN32 )
include_directories(${ISMRMRD_SCHEMA_SOURCE_DIR} ${XSD_INCLUDE_DIR}
diff --git a/xml/ismrmrd_meta.h b/xml/ismrmrd_meta.h
index 3fd5fd8..0a6c4de 100644
--- a/xml/ismrmrd_meta.h
+++ b/xml/ismrmrd_meta.h
@@ -149,6 +149,11 @@ namespace ISMRMRD
}
};
+ class MetaContainer;
+
+ EXPORTISMRMRDXML void deserialize(const char* xml, MetaContainer& h);
+ EXPORTISMRMRDXML void serialize(MetaContainer& h, std::ostream& o);
+
class MetaContainer
{
typedef std::map< std::string, std::vector<MetaValue> > map_t;
@@ -239,10 +244,6 @@ namespace ISMRMRD
template void MetaContainer::append<long>(const char* name, long value);
template void MetaContainer::append<double>(const char* name, double);
*/
-
- EXPORTISMRMRDXML void deserialize(const char* xml, MetaContainer& h);
- EXPORTISMRMRDXML void serialize(MetaContainer& h, std::ostream& o);
-
}
#endif //ISMRMRDMETA_H
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git
More information about the debian-science-commits
mailing list