cmake notes

1. 设置导出所有符号: set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)  

 在顶层cmakelist.txt中设置这个参数, 则动态库中,将导出所有的函数符号;否则,就只有在接口中声明了  __declspec(dllexport)  的接口函数,才会被导出符号;

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
https://cmake.org/download/ CMake下载 About Resources Developer Resources Download Search … Get the Software You can either download binaries or source code archives for the latest stable or previous release or access the current development (aka nightly) distribution through Git. This software may not be exported in violation of any U.S. export laws or regulations. For more information regarding Export Control matters please go to https://www.kitware.com/legal. Join the mailing list CMake success stories Attend a training course Buy the book Purchase support Latest Release (3.9.2) The release was packaged with CPack which is included as part of the release. The .sh files are self extracting gziped tar files. To install a .sh file, run it with /bin/sh and follow the directions. The OS-machine.tar.gz files are gziped tar files of the install tree. The OS-machine.tar.Z files are compressed tar files of the install tree. The tar file distributions can be untared in any directory. They are prefixed by the version of CMake. For example, the Linux-x86_64 tar file is all under the directory cmake–Linux-x86_64. This prefix can be removed as long as the share, bin, man and doc directories are moved relative to each other. To build the source distributions, unpack them with zip or tar and follow the instructions in Readme.txt at the top of the source tree. See also the CMake 3.9 Release Notes. Source distributions: Platform Files Unix/Linux Source (has \n line feeds) cmake-3.9.2.tar.gz cmake-3.9.2.tar.Z Windows Source (has \r\n line feeds) cmake-3.9.2.zip https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值