123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- #-----------------------------------------------------------------------------
- #
- # OpenCASCADEConfig.cmake - OpenCASCADE CMake configuration file for external projects.
- #
- # This file is configured by OpenCASCADE.
- #
- if(OpenCASCADE_ALREADY_INCLUDED)
- return()
- endif()
- set(OpenCASCADE_ALREADY_INCLUDED 1)
- # The OpenCASCADE version number
- set (OpenCASCADE_MAJOR_VERSION "7")
- set (OpenCASCADE_MINOR_VERSION "6")
- set (OpenCASCADE_MAINTENANCE_VERSION "0")
- set (OpenCASCADE_DEVELOPMENT_VERSION "")
- # Compute the installation prefix from this OpenCASCADEConfig.cmake file
- # location, by going up one level + one level if "cmake" + one level if "lib".
- # This is made to support different locations of CMake files:
- # - in UNIX style: $INSTALL_DIR/lib/cmake/opencascade-<version>
- # - in Windows style: $INSTALL_DIR/cmake
- # - in Android style: $INSTALL_DIR/libs/$CMAKE_ANDROID_ARCH_ABI/cmake/opencascade-<version>
- get_filename_component (OpenCASCADE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
- get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
- if (OpenCASCADE_INSTALL_PREFIX MATCHES "/cmake$")
- get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
- endif()
- if (OpenCASCADE_INSTALL_PREFIX MATCHES "/lib$")
- get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
- endif()
- if (OpenCASCADE_INSTALL_PREFIX MATCHES "/libs/${CMAKE_ANDROID_ARCH_ABI}$")
- get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
- get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
- endif()
- # Set OpenCASCADE paths to headers, binaries, libraries, resources, tests, samples, data
- set (OpenCASCADE_BINARY_DIR "${OpenCASCADE_INSTALL_PREFIX}/bin")
- set (OpenCASCADE_LIBRARY_DIR "${OpenCASCADE_INSTALL_PREFIX}/lib")
- set (OpenCASCADE_SCRIPT_DIR "${OpenCASCADE_INSTALL_PREFIX}/bin")
- set (OpenCASCADE_INCLUDE_DIR "${OpenCASCADE_INSTALL_PREFIX}/include/opencascade")
- set (OpenCASCADE_RESOURCE_DIR "${OpenCASCADE_INSTALL_PREFIX}/share/opencascade/resources")
- # The C and C++ flags added by OpenCASCADE to the cmake-configured flags.
- set (OpenCASCADE_C_FLAGS " -fexceptions -fPIC")
- set (OpenCASCADE_CXX_FLAGS "-std=c++0x -fPIC -fexceptions -fPIC -Wall -Wextra")
- set (OpenCASCADE_LINKER_FLAGS "-lm ")
- # List of available OpenCASCADE modules.
- set (OpenCASCADE_MODULES FoundationClasses;ModelingData;ModelingAlgorithms;Visualization;ApplicationFramework;DataExchange;Draw)
- # List of available OpenCASCADE libraries for each module
- set (OpenCASCADE_FoundationClasses_LIBRARIES TKernel;TKMath)
- set (OpenCASCADE_ModelingData_LIBRARIES TKG2d;TKG3d;TKGeomBase;TKBRep)
- set (OpenCASCADE_ModelingAlgorithms_LIBRARIES TKGeomAlgo;TKTopAlgo;TKPrim;TKBO;TKShHealing;TKBool;TKHLR;TKFillet;TKOffset;TKFeat;TKMesh;TKXMesh)
- set (OpenCASCADE_Visualization_LIBRARIES TKService;TKV3d;TKOpenGl;TKMeshVS;TKIVtk)
- set (OpenCASCADE_ApplicationFramework_LIBRARIES TKCDF;TKLCAF;TKCAF;TKBinL;TKXmlL;TKBin;TKXml;TKStdL;TKStd;TKTObj;TKBinTObj;TKXmlTObj;TKVCAF)
- set (OpenCASCADE_DataExchange_LIBRARIES TKXSBase;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKIGES;TKXCAF;TKXDEIGES;TKXDESTEP;TKSTL;TKVRML;TKXmlXCAF;TKBinXCAF;TKRWMesh)
- set (OpenCASCADE_Draw_LIBRARIES TKDraw;TKTopTest;TKOpenGlTest;TKViewerTest;TKXSDRAW;TKDCAF;TKXDEDRAW;TKTObjDRAW;TKQADraw;TKIVtkDraw)
- # List of available OpenCASCADE libraries.
- set (OpenCASCADE_LIBRARIES TKernel;TKMath;TKG2d;TKG3d;TKGeomBase;TKBRep;TKGeomAlgo;TKTopAlgo;TKPrim;TKBO;TKShHealing;TKBool;TKHLR;TKFillet;TKOffset;TKFeat;TKMesh;TKXMesh;TKService;TKV3d;TKOpenGl;TKMeshVS;TKIVtk;TKCDF;TKLCAF;TKCAF;TKBinL;TKXmlL;TKBin;TKXml;TKStdL;TKStd;TKTObj;TKBinTObj;TKXmlTObj;TKVCAF;TKXSBase;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKIGES;TKXCAF;TKXDEIGES;TKXDESTEP;TKSTL;TKVRML;TKXmlXCAF;TKBinXCAF;TKRWMesh;TKDraw;TKTopTest;TKOpenGlTest;TKViewerTest;TKXSDRAW;TKDCAF;TKXDEDRAW;TKTObjDRAW;TKQADraw;TKIVtkDraw)
- # OpenCASCADE global configuration options.
- set (OpenCASCADE_COMPILER "gcc")
- set (OpenCASCADE_BUILD_WITH_DEBUG )
- set (OpenCASCADE_BUILD_SHARED_LIBS ON)
- set (OpenCASCADE_BUILD_TYPE "Release")
- # Use of third-party libraries.
- set (OpenCASCADE_WITH_TCL ON)
- set (OpenCASCADE_WITH_FREETYPE YES)
- set (OpenCASCADE_WITH_FREEIMAGE OFF)
- set (OpenCASCADE_WITH_TBB OFF)
- set (OpenCASCADE_WITH_VTK YES)
- set (OpenCASCADE_WITH_FFMPEG OFF)
- set (OpenCASCADE_WITH_GLES2 OFF)
- # Import OpenCASCADE compile definitions, C and C++ flags for each installed configuration.
- file(GLOB CONFIG_FILES "${CMAKE_CURRENT_LIST_DIR}/OpenCASCADECompileDefinitionsAndFlags-*.cmake")
- foreach(f ${CONFIG_FILES})
- include(${f})
- endforeach()
- if (NOT OpenCASCADE_FIND_COMPONENTS)
- set (OpenCASCADE_FIND_COMPONENTS ${OpenCASCADE_MODULES})
- endif ()
- # Import OpenCASCADE targets.
- foreach(_comp ${OpenCASCADE_FIND_COMPONENTS})
- if (NOT ";${OpenCASCADE_MODULES};" MATCHES "${_comp}")
- set(OpenCASCADE_FOUND False)
- set(OpenCASCADE_NOTFOUND_MESSAGE "Specified unsupported component: ${_comp}")
- if (NOT OpenCASCADE_FIND_QUIETLY)
- message (ERROR ": ${OpenCASCADE_NOTFOUND_MESSAGE}")
- endif()
- else()
- include("${CMAKE_CURRENT_LIST_DIR}/OpenCASCADE${_comp}Targets.cmake")
- endif()
- endforeach()
|