view ezminc/CMakeLists.txt @ 2631:4cba3cbb796d

fixed mincpic kompilation for CMake
author Vladimir S. FONOV <vladimir.fonov@gmail.com>
date Mon, 12 Mar 2012 16:28:43 -0400
parents da1ba6dfb580
children 0bbe7def883e
line wrap: on
line source

OPTION(BUILD_EZMINC_EXAMPLES   "Build EZminc examples" ON)

IF(BUILD_MINC2)
  ADD_DEFINITIONS( -DMINC2 )
ENDIF(BUILD_MINC2)


SET( MINC_IO_HEADERS 
    minc_io_exceptions.h 
    minc_io_fixed_vector.h  
    minc_io_simple_volume.h
    minc_1_rw.h
    minc_1_simple.h
    minc_1_simple_rw.h
    minc_io_4d_volume.h
   )
   
SET( MINC_IO_SRC 
    minc_1_rw.cpp
    minc_1_simple_rw.cpp
  )


ADD_LIBRARY( minc_io ${MINC_IO_HEADERS} ${MINC_IO_SRC})
TARGET_LINK_LIBRARIES(minc_io ${MINC2_LIBRARIES})

INSTALL(TARGETS minc_io ARCHIVE DESTINATION lib)
INSTALL(FILES  ${MINC_IO_HEADERS} DESTINATION include)


IF(BUILD_EZMINC_EXAMPLES)
ADD_SUBDIRECTORY(examples)
ENDIF(BUILD_EZMINC_EXAMPLES)