feat: prepare FreeCAD private naming worker linkage
This commit is contained in:
@@ -13,6 +13,18 @@ find_package(OpenCASCADE REQUIRED CONFIG PATHS "${OCCT_DIR}" NO_DEFAULT_PATH)
|
||||
add_executable(bitbybit_occt_history occt_history.cpp)
|
||||
target_include_directories(bitbybit_occt_history PRIVATE "${OCCT_DIR}/include/opencascade")
|
||||
target_link_libraries(bitbybit_occt_history PRIVATE TKDESTEP TKXSBase TKDE TKBO TKBRep TKTopAlgo TKPrim TKShHealing TKGeomAlgo TKGeomBase TKG3d TKG2d TKMath TKernel)
|
||||
if(FREECAD_WASM_SDK_DIR)
|
||||
if(NOT FREECAD_NAMING_BRIDGE_SOURCE OR NOT EXISTS "${FREECAD_NAMING_BRIDGE_SOURCE}")
|
||||
message(FATAL_ERROR "FREECAD_NAMING_BRIDGE_SOURCE must point to the verified FreeCAD private naming bridge source.")
|
||||
endif()
|
||||
if(NOT FREECAD_NAMING_INCLUDE_DIRS OR NOT FREECAD_NAMING_LIBRARIES)
|
||||
message(FATAL_ERROR "FREECAD_NAMING_INCLUDE_DIRS and FREECAD_NAMING_LIBRARIES are required for a FreeCAD-linked Worker.")
|
||||
endif()
|
||||
target_sources(bitbybit_occt_history PRIVATE "${FREECAD_NAMING_BRIDGE_SOURCE}")
|
||||
target_include_directories(bitbybit_occt_history PRIVATE ${FREECAD_NAMING_INCLUDE_DIRS})
|
||||
target_link_libraries(bitbybit_occt_history PRIVATE ${FREECAD_NAMING_LIBRARIES})
|
||||
target_compile_definitions(bitbybit_occt_history PRIVATE BITBYBIT_FREECAD_NAMING_LINKED=1)
|
||||
endif()
|
||||
target_compile_options(bitbybit_occt_history PRIVATE -fexceptions -O2)
|
||||
target_link_options(bitbybit_occt_history PRIVATE
|
||||
--bind
|
||||
|
||||
Reference in New Issue
Block a user