#File Generated by Hans J. Johnson
#Please contact hans-johnson@uiowa.edu for making enhancments/corrections
PROJECT(NIFTILIB)

INCLUDE_DIRECTORIES(${ZNZLIB_SOURCE_DIR})
SET(NIFTILIB_SRC nifti1_io.c)

ADD_LIBRARY(${PACKAGE_PREFIX}niftiio ${NIFTILIB_SRC} )
TARGET_LINK_LIBRARIES( ${PACKAGE_PREFIX}niftiio ${PACKAGE_PREFIX}znz)

IF(UNIX)
TARGET_LINK_LIBRARIES(${PACKAGE_PREFIX}niftiio -lm)
ENDIF(UNIX)

IF(ITK_LIBRARY_PROPERTIES)
  SET_TARGET_PROPERTIES(${PACKAGE_PREFIX}niftiio PROPERTIES ${ITK_LIBRARY_PROPERTIES})
ENDIF(ITK_LIBRARY_PROPERTIES)
INSTALL_TARGETS(${LIB_INSTALL_DIR} ${PACKAGE_PREFIX}niftiio)
INSTALL_FILES(${INCLUDE_INSTALL_DIR} "(\\.h)$")
