mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 12:50:22 +08:00
250ea54a8c
* [opencascade] Fix usage issue * Apply suggestion
31 lines
898 B
Diff
31 lines
898 B
Diff
diff --git a/adm/templates/OpenCASCADEConfig.cmake.in b/adm/templates/OpenCASCADEConfig.cmake.in
|
|
index c926c49..a0502cc 100644
|
|
--- a/adm/templates/OpenCASCADEConfig.cmake.in
|
|
+++ b/adm/templates/OpenCASCADEConfig.cmake.in
|
|
@@ -5,6 +5,8 @@
|
|
# This file is configured by OpenCASCADE.
|
|
#
|
|
|
|
+include(CMakeFindDependencyMacro)
|
|
+
|
|
if(OpenCASCADE_ALREADY_INCLUDED)
|
|
return()
|
|
endif()
|
|
@@ -71,6 +73,16 @@ set (OpenCASCADE_WITH_GLES2 @USE_GLES2@)
|
|
@SET_OpenCASCADE_WITH_D3D@
|
|
@SET_OpenCASCADE_WITH_GLX@
|
|
|
|
+if(@USE_FREETYPE@)
|
|
+ find_dependency(freetype CONFIG)
|
|
+endif()
|
|
+
|
|
+find_dependency(OpenGL)
|
|
+
|
|
+if(@USE_EIGEN@)
|
|
+ find_dependency(Eigen3)
|
|
+endif()
|
|
+
|
|
# 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})
|