Commit a7424ca5 authored by saubatn's avatar saubatn

UPDATED : preparation for Debug/Release unique compilation.

see : http://merise.imag.fr:8080/icescrum/p/CAMITK#story/27

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@725 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 8a22581c
......@@ -424,6 +424,9 @@ macro(camitk_extension)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
set(ITK_LIBRARIES ITKBasicFilters ITKCommon ITKIO)
# if (${CMAKE_GENERATOR} MATCHES "Visual Studio" OR "MinGW") # Running on a Windows platform
# set(ITK_LIBRARIES ${ITK_LIBRARIES} ITKBasicFiltersD ITKCommonD ITKIOD)
# endif ($(CMAKE_GENERATOR) MATCHES "Visual Studio" OR "MinGW")
else()
set(ITK_LIBRARIES "")
endif()
......@@ -921,12 +924,16 @@ macro(application_extension)
endforeach()
endif()
# Looking for ITK
# Looking for ITK
set(ITK_LIBRARIES "")
if(${APPLICATION_NAME_CMAKE}_NEEDS_ITK)
# ITK is required
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
set(ITK_LIBRARIES ITKBasicFilters ITKCommon ITKIO)
# if (${CMAKE_GENERATOR} MATCHES "Visual Studio" OR "MinGW") # Running on a Windows platform
# set(ITK_LIBRARIES ${ITK_LIBRARIES} ITKBasicFiltersD ITKCommonD ITKIOD)
# endif ($(CMAKE_GENERATOR) MATCHES "Visual Studio" OR "MinGW")
else()
set(ITK_LIBRARIES "")
endif()
......
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