<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>I have got some problems finding packages under windows platform.</p>
<p>I made a toolchain for VSCode and cmake 3.13 , but I don't
understand why it fails to find almost all of my packages
dependencies<br>
</p>
<p>It is not able to find packages in the CMAKE_FIND_ROOT_PATH
itself.</p>
<p>If I try setting xx_LIBRARY and xx_INCLUDE_DIRS, if finds libs,
but this does not sound the right Way .</p>
<p><br>
</p>
<p>Here is my toolchain :<br>
</p>
<p># the name of the target operating system<br>
SET(CMAKE_SYSTEM_NAME Windows)<br>
<br>
message(STATUS "bin dir ${CMAKE_BINARY_DIR}")<br>
</p>
<p># here is the target environment located<br>
SET(CMAKE_FIND_ROOT_PATH <br>
${CMAKE_BINARY_DIR}\\WIN32DEPS\\xerces\\xerces-c-3.1.1-bin<br>
${CMAKE_BINARY_DIR}\\WIN32DEPS\\JPEGLIB\\jpegsrc-9c<br>
${CMAKE_BINARY_DIR}\\WIN32DEPS\\zlib-1.2.3-lib<br>
${CMAKE_BINARY_DIR}\\WIN32DEPS\\libpng-1.2.37-lib<br>
${CMAKE_BINARY_DIR}\\WIN32DEPS\\ftgl-binary<br>
${CMAKE_BINARY_DIR}\\WIN32DEPS\\freetype-dev_2.4.2-1<br>
${CMAKE_BINARY_DIR}\\WIN32DEPS\\iconv-1.9.2.1<br>
${CMAKE_BINARY_DIR}\\WIN32DEPS\\Python26<br>
E:\\Qt\\5.9.5<br>
)</p>
<p># cmake 3.13 <br>
set(FREETYPE_LIBRARY E:\\freetype-windows-binaries-master\\lib)<br>
set(FREETYPE_INCLUDE_DIRS
E:\\freetype-windows-binaries-master\\include)<br>
<br>
set(FTGL_LIBRARY ${CMAKE_BINARY_DIR}\\WIN32DEPS\\ftgl-binary\\lib)<br>
set(FTGL_INCLUDE_DIRS
${CMAKE_BINARY_DIR}\\WIN32DEPS\\ftgl-binary\\include)<br>
<br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>