IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+IF(MSVC)
+ ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS)
+ENDIF(MSVC)
#=========================================================
# Find ITK (required)
FIND_PACKAGE(ITK)
#=========================================================
-# Compiled Image types
-# Comment/uncomment desired image types
-
-#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGETYPE_CHAR")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGETYPE_UCHAR")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGETYPE_SHORT")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGETYPE_USHORT")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGETYPE_INT")
-#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGETYPE_UINT")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGETYPE_FLOAT")
-#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGETYPE_DOUBLE")
-
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${ITK_DIR}/gdcm/src/")
-#=========================================================
-# Compiled Image Dimension
-# Comment/uncomment desired image dimensions
-
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGEDIM_1")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGEDIM_2")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGEDIM_3")
-#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIMAGEDIM_4")
-
#=========================================================
INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake)
#=========================================================
clitkVfImageIO.cxx
clitkVfImageIOFactory.cxx
clitkOrientation.cxx
- clitkSignal.cxx
vvImage.cxx
clitkImageToImageGenericFilter.cxx
)
Program: vv
Module: $RCSfile: clitkImageToImageGenericFilter.txx,v $
Language: C++
- Date: $Date: 2010/02/09 14:40:55 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2010/02/10 14:59:49 $
+ Version: $Revision: 1.5 $
Author : Joel Schaerer <joel.schaerer@creatis.insa-lyon.fr>
David Sarrut <david.sarrut@creatis.insa-lyon.fr>
//--------------------------------------------------------------------
+#ifdef _MSC_VER\r
+# pragma warning(disable: 4715) //Disable "The specified function can potentially not return a value"
+#endif
template<class ImageType>
typename ImageType::Pointer clitk::ImageToImageGenericFilterBase::GetInput(unsigned int n) {
if (mInputFilenames.size() > n) {