CMake引用OSG

编程入门 行业动态 更新时间:2024-10-11 13:31:06

<a href=https://www.elefans.com/category/jswz/34/1767722.html style=CMake引用OSG"/>

CMake引用OSG

从CMake执行find_package(OpenSceneGraph REQUIRED COMPONENTS osgDB osgUtil)这句;情况如下;

当前OSG已经安装好;环境变量添加了OSG_ROOT(其值是OSG安装的根目录),并且 %OSG_ROOT%\bin 添加到了path;

有一个警告,已经done了;

Found osgDB: optimized;D:/OSGEarth/lib/osgDB.lib;debug;D:/OSGEarth/lib/osgDBd.lib

Found osgUtil: optimized;D:/OSGEarth/lib/osgUtil.lib;debug;D:/OSGEarth/lib/osgUtild.lib

......

For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

Found osg: optimized;D:/OSGEarth/lib/osg.lib;debug;D:/OSGEarth/lib/osgd.lib

Found OpenThreads: optimized;D:/OSGEarth/lib/OpenThreads.lib;debug;D:/OSGEarth/lib/OpenThreadsd.lib

Found OpenScen

更多推荐

CMake引用OSG

本文发布于:2023-11-30 07:45:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1649258.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:CMake   OSG

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!