2021-03-23 06:19:06 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-11-22 11:51:11 +08:00
|
|
|
index a80e39e6..bb6ab2db 100644
|
2021-03-23 06:19:06 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-11-22 11:51:11 +08:00
|
|
|
@@ -1273,6 +1273,11 @@ foreach (OCCT_MODULE ${OCCT_MODULES})
|
2021-03-23 06:19:06 +08:00
|
|
|
endforeach()
|
|
|
|
set (OCCT_MODULES_ENABLED ${OCCT_MODULES_ENABLED_SORTED})
|
|
|
|
|
2023-11-22 11:51:11 +08:00
|
|
|
+foreach (OCCT_LIBRARY IN LISTS OCCT_LIBRARIES)
|
|
|
|
+ target_include_directories(${OCCT_LIBRARY} INTERFACE $<INSTALL_INTERFACE:include/opencascade>) # OpenCASCADE_INCLUDE_DIR
|
|
|
|
+ target_include_directories(${OCCT_LIBRARY} INTERFACE $<INSTALL_INTERFACE:include>) # vcpkg lock-in
|
2021-03-23 06:19:06 +08:00
|
|
|
+endforeach()
|
|
|
|
+
|
|
|
|
# Add all targets to the build-tree export set
|
|
|
|
export (TARGETS ${OCCT_LIBRARIES} FILE "${CMAKE_BINARY_DIR}/OpenCASCADETargets.cmake")
|
|
|
|
|