+CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
+#MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
+
+# for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003")
+IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+ CMAKE_POLICY(SET CMP0003 NEW)
+ CMAKE_POLICY(SET CMP0005 NEW)
+ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+
PROJECT(CreaContours)
SET(PROJECT_MAJOR_VERSION 1)
ADD_EXECUTABLE(wxContourGUIExample wxContourGUIExample)
ENDIF(WIN32)
+
TARGET_LINK_LIBRARIES( wxContourGUIExample
- creaImageIO
+
Interface_Icons_NDimensions_lib
Interface_ManagerContour_NDimensions_lib
kernel_ManagerContour_NDimensions_lib
- CreaEnvironment
- maracasVisuLib
- vtkImaging vtkGraphics vtkRendering vtkFiltering vtkCommon
+
+ ${WXWIDGETS_LIBRARIES}
+ ${VTK_LIBRARIES}
+ ${CreaEnvironment_LIBRARIES}
+ ${creaImageIO_LIBRARIES}
+ ${maracasVisuLib_LIBRARIES}
+
+# HORRROOOOR !!!
+# creaImageIO
+# CreaEnvironment
+# maracasVisuLib
+# vtkImaging vtkGraphics vtkRendering vtkFiltering vtkCommon
)
INSTALL_TARGETS(/bin/ wxContourGUIExample )
#===========================================================================
# THE NAME OF THE BBTK PACKAGE
-SET(BBTK_PACKAGE_NAME CreaContour)
+SET(BBTK_PACKAGE_NAME creaContours)
#===========================================================================
#===========================================================================
# PACKAGE DESCRIPTION
-SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "This package contains the module ndimensions ")
+SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "This package contains the module ndimensions. LG : what is it ? Add an example !")
#===========================================================================
#===========================================================================
# LINK
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES})
+#MESSAGE(FATAL_ERROR "${LIBRARY_NAME}_LINK_LIBRARIES = ${${LIBRARY_NAME}_LINK_LIBRARIES}")
#---------------------------------------------------------------------------
-ENDIF ( BUILD_${LIBRARY_NAME} )
\ No newline at end of file
+ENDIF ( BUILD_${LIBRARY_NAME} )