Option to link static build of OpenCascade 7.4.0

For static builds, freetype must be linked explicitly
This commit is contained in:
Matthias Hochsteger 2019-10-28 14:19:57 +01:00
parent 93874d6296
commit 396d7cdcd2

View File

@ -74,12 +74,17 @@ set(OCC_LIBRARY_NAMES
TKSTL
TKTopAlgo
TKV3d
TKVCAF
TKXCAF
TKXDEIGES
TKXDESTEP
TKXSBase
)
if(OCC_LINK_FREETYPE)
set(OCC_LIBRARY_NAMES ${OCC_LIBRARY_NAMES} freetype)
endif(OCC_LINK_FREETYPE)
foreach( libname ${OCC_LIBRARY_NAMES} )
find_library( ${libname} ${libname} ${OCC_LIBRARY_DIR} )
set(OCC_LIBRARIES ${OCC_LIBRARIES} ${${libname}})