Attached is (FindXercesC.cmake) a proposal for Xerces-C XML parser (http://xerces.apache.org/xerces-c/) module for CMake. I've added some small cleanups from previous version (posted here: http://www.cmake.org/pipermail/cmake/2008-September/024277.html).
Attached is also, for the purpose of testing and to demonstrate the usage of above module, CMake file (CMakeLists.txt) for SAXCount example from Xerces-C source distribution. In order to test, put both CMakeLists.txt and FindXercesC.cmake into samples/SAXCount sub-directory of Xerces-C source distribution, and build as usual. Note that the module above is for Xerces-C 2.8.0 release. Regards, Alex
FindXercesC.cmake
Description: Binary data
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(SAXCount)
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
IF(NOT XERCESC_FOUND)
FIND_PACKAGE(XercesC REQUIRED)
ENDIF(NOT XERCESC_FOUND)
INCLUDE_DIRECTORIES(${XERCESC_INCLUDE_DIRS})
ADD_EXECUTABLE(SAXCount SAXCountHandlers.cpp SAXCount.cpp)
TARGET_LINK_LIBRARIES(SAXCount ${XERCESC_LIBRARIES})
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
