[xsd-users] License and Portability
Benjamin Schindler
bschindler at inf.ethz.ch
Sun Jun 19 05:15:18 EDT 2011
Hi
Okay, I'm not claiming everything is production ready, but this is how
we use it:
In case of windows, you can link against the libs pointed at in
XSD_LIBRARIES.
In case of linux, this variable stays empty because distributions often
ship a version of xerces as part of the system install.
Since this is the recommended way of linking on linux, I use a separate
find script (attached) to find xerces on linux.
Ideally, I would break these two into separate parts (using xsd and
linking against xerces), but on windows, this is not really possible as
there is no system xerces-c...
I hope it helps
Cheers
Benjamin
On 19.06.2011 11:07, Klaim - Joël Lamotte wrote:
>
>
> 2011/6/19 Benjamin Schindler <bschindler at inf.ethz.ch
> <mailto:bschindler at inf.ethz.ch>>
>
> I'm not a legal expert, so I cannot answer the first. But for the
> second question - I use my script on linux and windows but not on
> the mac.
>
>
> Hi,
>
> I'm pleased to see the author of this one script here because I'm
> really not a CMake expert and as your script lacks comments I'm lost
> in some parts.
>
> What I can't find in your script is how do you use it to link with
> Xerces?
>
> I think I'm missing something...
>
> Joël Lamotte
-------------- next part --------------
# - Find Xerces-C
# Find the Xerces-C includes and library
#
# XERCESC_INCLUDE_DIR - Where to find xercesc include sub-directory.
# XERCESC_LIBRARIES - List of libraries when using Xerces-C.
# XERCESC_FOUND - True if Xerces-C found.
FIND_PATH(XERCESC_INCLUDE_DIR xercesc/util/XercesVersion.hpp)
SET(XERCESC_NAMES ${XERCESC_NAMES} xerces-c xerces-c_2)
FIND_LIBRARY(XERCESC_LIBRARY NAMES ${XERCESC_NAMES})
# Handle the QUIETLY and REQUIRED arguments and set XERCESC_FOUND to
# TRUE if all listed variables are TRUE.
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
XERCESC DEFAULT_MSG
XERCESC_LIBRARY XERCESC_INCLUDE_DIR
)
IF(XERCESC_FOUND)
SET(XERCESC_LIBRARIES ${XERCESC_LIBRARY})
ENDIF(XERCESC_FOUND)
MARK_AS_ADVANCED(XERCESC_LIBRARY XERCESC_INCLUDE_DIR)
More information about the xsd-users
mailing list