occtΒΆ

OpenCascade Community Technology

hunter_add_package(occt)
find_package(OpenCASCADE CONFIG REQUIRED)

add_executable(boo boo.cpp)
target_link_libraries(boo occt::TKFillet  occt::TKOffset occt::TKBool  occt::TKBO occt::TKShHealing  occt::TKPrim occt::TKTopAlgo occt::TKBRep occt::TKGeomAlgo occt::TKGeomBase occt::TKG3d occt::TKG2d occt::TKMath occt::TKernel)
if(APPLE OR (UNIX AND NOT ANDROID))
  target_link_libraries(boo pthread)
elseif(WIN32)
  target_link_libraries(boo ws2_32)
endif()

Note

  • OpenCascade consists of a number of modules. This Hunterized version supports all modules except the Draw Test Harness.
  • To build shared versions of occt (recommended), please use HUNTER_BUILD_SHARED_LIBS=ON or build with toolchain with PIC.
  • On Ubuntu, make sure that you have installed the following system packages: mesa-common-dev, libgl1-mesa-dev, libxmu-dev, libxi-dev