Cloned library of VTK-5.0.0 with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
1.1 KiB

PROJECT(VTKEXPAT)
INCLUDE_REGULAR_EXPRESSION("^(expat|xml|ascii|utf|name|iascii|latin|vtk).*$")
SET(expat_SRCS
xmlparse.c
xmltok.c
xmlrole.c
)
INCLUDE_DIRECTORIES(${VTKEXPAT_SOURCE_DIR})
IF(WIN32)
IF(NOT BUILD_SHARED_LIBS)
SET (VTK_EXPAT_STATIC 1)
ENDIF(NOT BUILD_SHARED_LIBS)
ENDIF(WIN32)
CONFIGURE_FILE(${VTKEXPAT_SOURCE_DIR}/expatConfig.h.in
${VTKEXPAT_BINARY_DIR}/expatConfig.h)
CONFIGURE_FILE(${VTKEXPAT_SOURCE_DIR}/expatDllConfig.h.in
${VTKEXPAT_BINARY_DIR}/expatDllConfig.h)
CONFIGURE_FILE(${VTKEXPAT_SOURCE_DIR}/.NoDartCoverage
${VTKEXPAT_BINARY_DIR}/.NoDartCoverage)
ADD_LIBRARY(vtkexpat ${expat_SRCS})
# Apply user-defined properties to the library target.
IF(VTK_LIBRARY_PROPERTIES)
SET_TARGET_PROPERTIES(vtkexpat PROPERTIES ${VTK_LIBRARY_PROPERTIES})
ENDIF(VTK_LIBRARY_PROPERTIES)
IF(NOT VTK_INSTALL_NO_LIBRARIES)
INSTALL_TARGETS(${VTK_INSTALL_LIB_DIR} vtkexpat)
ENDIF(NOT VTK_INSTALL_NO_LIBRARIES)
IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
INSTALL_FILES(${VTK_INSTALL_INCLUDE_DIR}/vtkexpat .h
expat expatDllConfig vtk_expat_mangle)
ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)