Try to fix linking of OCCT on Win

This commit is contained in:
tamasmeszaros 2022-08-23 17:27:30 +02:00
parent 3f69643516
commit 3f4cdbe41f
2 changed files with 6 additions and 0 deletions

View File

@ -20,3 +20,7 @@ prusaslicer_add_cmake_project(OCCT
-DBUILD_MODULE_ModelingData=OFF
-DBUILD_MODULE_Visualization=OFF
)
if (MSVC)
add_debug_dep(dep_OCCT)
endif ()

View File

@ -50,6 +50,8 @@ set(OCCT_LIBS
TKernel
)
slic3r_remap_configs("${OCCT_LIBS}" RelWithDebInfo Release)
target_include_directories(OCCTWrapper PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(OCCTWrapper PUBLIC ${OpenCASCADE_INCLUDE_DIR})
target_link_libraries(OCCTWrapper ${OCCT_LIBS})