2023-06-22 13:59:16 +08:00
|
|
|
diff --git a/adm/templates/OpenCASCADEConfig.cmake.in b/adm/templates/OpenCASCADEConfig.cmake.in
|
2023-08-26 03:07:42 +08:00
|
|
|
index c926c49..a0502cc 100644
|
2023-06-22 13:59:16 +08:00
|
|
|
--- a/adm/templates/OpenCASCADEConfig.cmake.in
|
|
|
|
+++ b/adm/templates/OpenCASCADEConfig.cmake.in
|
2023-08-26 03:07:42 +08:00
|
|
|
@@ -5,6 +5,8 @@
|
2023-06-22 13:59:16 +08:00
|
|
|
# This file is configured by OpenCASCADE.
|
|
|
|
#
|
|
|
|
|
2023-08-26 03:07:42 +08:00
|
|
|
+include(CMakeFindDependencyMacro)
|
|
|
|
+
|
2023-06-22 13:59:16 +08:00
|
|
|
if(OpenCASCADE_ALREADY_INCLUDED)
|
|
|
|
return()
|
2023-08-26 03:07:42 +08:00
|
|
|
endif()
|
|
|
|
@@ -71,6 +73,16 @@ set (OpenCASCADE_WITH_GLES2 @USE_GLES2@)
|
2023-06-22 13:59:16 +08:00
|
|
|
@SET_OpenCASCADE_WITH_D3D@
|
|
|
|
@SET_OpenCASCADE_WITH_GLX@
|
|
|
|
|
|
|
|
+if(@USE_FREETYPE@)
|
|
|
|
+ find_dependency(freetype CONFIG)
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
+find_dependency(OpenGL)
|
2023-08-26 03:07:42 +08:00
|
|
|
+
|
|
|
|
+if(@USE_EIGEN@)
|
|
|
|
+ find_dependency(Eigen3)
|
|
|
|
+endif()
|
2023-06-22 13:59:16 +08:00
|
|
|
+
|
|
|
|
# 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})
|