Fix findopencascade for vcpkg

This commit is contained in:
Mark Roszko 2020-09-12 22:41:17 +00:00 committed by Ian McInerney
parent 2380c4384a
commit aa34f2e764
1 changed files with 15 additions and 2 deletions

View File

@ -91,14 +91,27 @@ if(WIN32)
/usr/local/lib /usr/local/lib
/opt/opencascade/lib /opt/opencascade/lib
) )
else(CYGWIN OR MINGW) elseif(VCPKG_TOOLCHAIN)
FIND_PATH(OCC_INCLUDE_DIR
NAMES Standard_Version.hxx
PATH_SUFFIXES
include/opencascade
)
FIND_LIBRARY(OCC_LIBRARY
NAMES TKernel
HINTS
${OCC_LIBRARY_DIR}
PATH_SUFFIXES
lib
)
else()
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/include" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/include"
) )
FIND_LIBRARY(OCC_LIBRARY TKernel FIND_LIBRARY(OCC_LIBRARY TKernel
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/lib" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/lib"
) )
endif(CYGWIN OR MINGW) endif()
else(WIN32) else(WIN32)
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
/usr/include/opencascade /usr/include/opencascade