Commit a6f78280 authored by saubatn's avatar saubatn
Browse files

FIXED Remove warning on <=GCC 4.7 projects using ITK.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1276 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 7a9b8681
...@@ -2,15 +2,16 @@ if (WIN32) ...@@ -2,15 +2,16 @@ if (WIN32)
if(CMAKE_CL_64) if(CMAKE_CL_64)
# for 64 bits platform, enable big obj (.o) handling, in ordere to correctly compile this (heavy) project # for 64 bits platform, enable big obj (.o) handling, in ordere to correctly compile this (heavy) project
if (MSVC) if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}/bigobj") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}/bigobj")
elseif(MINGW) elseif(MINGW)
set(CMAKE_CXX_FLAGS "-O3 -finline-functions") set(CMAKE_CXX_FLAGS "-O3 -finline-functions")
endif() endif()
endif() endif()
endif() endif()
camitk_extension( ACTION_EXTENSION camitk_extension( ACTION_EXTENSION
NEEDS_ITK NEEDS_ITK
CXX_FLAGS "-w"
CEP_NAME CEP_IMAGING CEP_NAME CEP_IMAGING
DESCRIPTION "This action features basic ITK image processing filters" DESCRIPTION "This action features basic ITK image processing filters"
TEST_APPLICATION ${APPLICATION_TEST_ACTION} TEST_APPLICATION ${APPLICATION_TEST_ACTION}
......
...@@ -2,6 +2,7 @@ camitk_extension( ACTION_EXTENSION ...@@ -2,6 +2,7 @@ camitk_extension( ACTION_EXTENSION
NEEDS_ITK NEEDS_ITK
NEEDS_ACTION_EXTENSION multipicking NEEDS_ACTION_EXTENSION multipicking
CEP_NAME CEP_IMAGING CEP_NAME CEP_IMAGING
CXX_FLAGS "-w"
DESCRIPTION "This action features basic ITK image processing segmentation algorithms" DESCRIPTION "This action features basic ITK image processing segmentation algorithms"
TEST_APPLICATION ${APPLICATION_TEST_ACTION} TEST_APPLICATION ${APPLICATION_TEST_ACTION}
) )
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
camitk_extension( COMPONENT_EXTENSION camitk_extension( COMPONENT_EXTENSION
NEEDS_ITK NEEDS_ITK
CEP_NAME CEP_IMAGING CEP_NAME CEP_IMAGING
DEFINES "-Wunused-local-typedefs" CXX_FLAGS "-w"
DESCRIPTION "This component allows the handling of DICOM images using GDCM 2.2" DESCRIPTION "This component allows the handling of DICOM images using GDCM 2.2"
DEFINES _SCL_SECURE_NO_WARNINGS _CRT_SECURE_NO_WARNINGS #to remove warning on Windows platform DEFINES _SCL_SECURE_NO_WARNINGS _CRT_SECURE_NO_WARNINGS #to remove warning on Windows platform
TEST_APPLICATION ${APPLICATION_TEST_COMPONENT} TEST_APPLICATION ${APPLICATION_TEST_COMPONENT}
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
camitk_extension( COMPONENT_EXTENSION camitk_extension( COMPONENT_EXTENSION
NEEDS_ITK NEEDS_ITK
CEP_NAME CEP_IMAGING CEP_NAME CEP_IMAGING
CXX_FLAGS "-w"
DEFINES _SCL_SECURE_NO_WARNINGS # to remove Windows MSVC warnings DEFINES _SCL_SECURE_NO_WARNINGS # to remove Windows MSVC warnings
DESCRIPTION "This component allows CamiTK to handle basic ITK format images." DESCRIPTION "This component allows CamiTK to handle basic ITK format images."
TEST_APPLICATION ${APPLICATION_TEST_COMPONENT} TEST_APPLICATION ${APPLICATION_TEST_COMPONENT}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment