--- /dev/null
+# MUST BE PUT BEFORE ANYTHING !!!
+#CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
+
+# 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)
MESSAGE ( STATUS "* Dir = ${KWWidgets_DIR}")
MESSAGE ( STATUS "* Version = ${KWWidgets_MAJOR_VERSION}.${KWWidgets_MINOR_VERSION}.${KWWidgets_BUILD_VERSION}")
INCLUDE(${KWWidgets_USE_FILE})
- ADD_DEF( USE_KWWIDGETS )
+ CREA_DEFINE( USE_KWWIDGETS )
SET(KWWIDGETS_LIBRARIES
${KWWidgets_LIBRARIES}
)
MESSAGE ( STATUS "* Version = ${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}.${VTK_BUILD_VERSION}")
INCLUDE(${VTK_USE_FILE})
CREA_DEFINE( USE_VTK )
+ CREA_DEFINE( _USE_VTK_ )
SET(VTK_LIBRARIES
vtkCommon # Mandatory
vtkFiltering # vtkImageData
# aui ?
SET(WXAUILIBS "aui")
# LG : These options should be set by the user at top level of crea
- FIND_PACKAGE(wxWidgets COMPONENTS base core adv
+ FIND_PACKAGE(wxWidgets COMPONENTS base core adv html
${WXAUILIBS}
${WXGLCANVASLIBS})
#
-#ifndef __@LIBRARY_NAME@DLLImportExport_h_INCLUDED__
-#define __@LIBRARY_NAME@DLLImportExport_h_INCLUDED__
+#ifndef __@LIBRARY_NAME@_EXPORT_h_INCLUDED__
+#define __@LIBRARY_NAME@_EXPORT_h_INCLUDED__
// Automatically generated file which defines
// the symbols @LIBRARY_NAME@_EXPORT and @LIBRARY_NAME@_CDECL
#if defined(_WIN32) && defined (@LIBRARY_NAME@_BUILD_SHARED)
#ifdef @LIBRARY_NAME@_EXPORT_SYMBOLS
#define @LIBRARY_NAME@_EXPORT __declspec( dllexport )
-#else
+ #else
#define @LIBRARY_NAME@_EXPORT __declspec( dllimport )
#endif
#define @LIBRARY_NAME@_CDECL __cdecl