[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: [CMake] cmake with vscode
From: Stéphane_Ancelot <sancelot () numalliance ! com>
Date: 2019-01-22 13:43:48
Message-ID: 2c455381-3487-d362-836a-24113f7a6625 () numalliance ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,
I have got some problems finding packages under windows platform.
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
It is not able to find packages in the CMAKE_FIND_ROOT_PATH itself.
If I try setting xx_LIBRARY and xx_INCLUDE_DIRS, if finds libs, but this
does not sound the right Way .
Here is my toolchain :
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)
message(STATUS "bin dir ${CMAKE_BINARY_DIR}")
# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH
${CMAKE_BINARY_DIR}\\WIN32DEPS\\xerces\\xerces-c-3.1.1-bin
${CMAKE_BINARY_DIR}\\WIN32DEPS\\JPEGLIB\\jpegsrc-9c
${CMAKE_BINARY_DIR}\\WIN32DEPS\\zlib-1.2.3-lib
${CMAKE_BINARY_DIR}\\WIN32DEPS\\libpng-1.2.37-lib
${CMAKE_BINARY_DIR}\\WIN32DEPS\\ftgl-binary
${CMAKE_BINARY_DIR}\\WIN32DEPS\\freetype-dev_2.4.2-1
${CMAKE_BINARY_DIR}\\WIN32DEPS\\iconv-1.9.2.1
${CMAKE_BINARY_DIR}\\WIN32DEPS\\Python26
E:\\Qt\\5.9.5
)
# cmake 3.13
set(FREETYPE_LIBRARY E:\\freetype-windows-binaries-master\\lib)
set(FREETYPE_INCLUDE_DIRS E:\\freetype-windows-binaries-master\\include)
set(FTGL_LIBRARY ${CMAKE_BINARY_DIR}\\WIN32DEPS\\ftgl-binary\\lib)
set(FTGL_INCLUDE_DIRS ${CMAKE_BINARY_DIR}\\WIN32DEPS\\ftgl-binary\\include)
[Attachment #5 (text/html)]
<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>
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic