# # Try to find VTK and include its settings (otherwise complain) # INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake) #INCLUDE (${CMAKE_ROOT}/Modules/FindWxWin.cmake) SET(CMAKE_CXX_FLAGS "${CMAKE_WX_CXX_FLAGS}") SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D__WXDEBUG__ -DWXDEBUG=1") IF(LINUX) ADD_DEFINITIONS( -DLINUX=1 ) ENDIF(LINUX) #INCLUDE_DIRECTORIES(${WXMINIMAL_SOURCE_DIR} # ${WXWINDOWS_INCLUDE_PATH}) # # This is needed to tell CMake what directories contain the libraries we need. This will # allow us to just specify the lib files without prepending them with a full path to that # library # #LINK_DIRECTORIES( ${WXWINDOWS_LINK_DIRECTORIES}) IF (USE_VTK_FILE) INCLUDE (${USE_VTK_FILE}) ELSE (USE_VTK_FILE) SET (VTKESQUI_CAN_BUILD 0) ENDIF (USE_VTK_FILE) # # Build shared libs ? # # Defaults to the same VTK setting. # IF (USE_VTK_FILE) # Standard CMake option for building libraries shared or static by default. OPTION(BUILD_SHARED_LIBS "Build with shared libraries." ${VTK_BUILD_SHARED_LIBS}) # Copy the CMake option to a setting with VTKESQUI_ prefix for use in # our project. This name is used in vtkmyConfigure.h.in. SET(VTKESQUI_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) # # Output path(s) # SET (LIBRARY_OUTPUT_PATH ${VTKESQUI_BINARY_DIR}/bin CACHE PATH "Single output directory for building all libraries.") SET (EXECUTABLE_OUTPUT_PATH ${VTKESQUI_BINARY_DIR}/bin CACHE PATH "Single output directory for building all executables.") MARK_AS_ADVANCED ( LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH ) # If this is a build tree, provide an option for putting # this project's executables and libraries in with VTK's. IF (EXISTS ${VTK_DIR}/bin) OPTION(USE_VTK_OUTPUT_PATHS "Use VTK's output directory for this project's executables and libraries." OFF) MARK_AS_ADVANCED (USE_VTK_OUTPUT_PATHS) IF (USE_VTK_OUTPUT_PATHS) SET (LIBRARY_OUTPUT_PATH ${VTK_DIR}/bin) SET (EXECUTABLE_OUTPUT_PATH ${VTK_DIR}/bin) ENDIF (USE_VTK_OUTPUT_PATHS) ENDIF (EXISTS ${VTK_DIR}/bin) ENDIF (USE_VTK_FILE) # # Wrap Tcl, Java, Python # # Rational: even if your VTK was wrapped, it does not mean that you want to # wrap your own local classes. # Default value is OFF as the VTK cache might have set them to ON but # the wrappers might not be present (or yet not found). # # # Tcl # IF (VTK_WRAP_TCL) OPTION(VTKESQUI_WRAP_TCL "Wrap classes into the TCL interpreted language." ON) ELSE (VTK_WRAP_TCL) IF (VTKESQUI_WRAP_TCL) MESSAGE("Warning. VTKESQUI_WRAP_TCL is ON but the VTK version you have " "chosen has not support for Tcl (VTK_WRAP_TCL is OFF). " "Please set VTKESQUI_WRAP_TCL to OFF.") SET (VTKESQUI_WRAP_TCL OFF) ENDIF (VTKESQUI_WRAP_TCL) ENDIF (VTK_WRAP_TCL) # Setup our local hints file in case wrappers need them. SET(VTK_WRAP_HINTS ${VTKESQUI_SOURCE_DIR}/Wrapping/hints)