我想用cmake中的源文件生成dll文件。 它给予configuration完成并生成完成,但不生成.dll和.lib文件。 请为这个问题提供解决scheme。
根中的cmakeconfiguration是:
CMAKE_MINIMUM_required(VERSION 2.8) PROJECT(mydll C) INCLUDE_DIRECTORIES(../common/include) ADD_subdirectory(mydll bin) cmake configuration in mydll directory is : SET(my_lib_src dllmain.cpp mydll.cpp funcs.def) ADD_LIBRARY(mydll SHARED ${my_lib_src}) SET_TARGET_PROPERTIES(mydll PROPERTIES LINKER_LANGUAGE C)
CMake保存剥离的debugging信息
CMake转换为Windowspath的Unix
buildbot和cmake不能创buildvs2010生成器
提升日志,GCC 4.4和CMake
不支持的协议,而downlod tar.gz包
如何使用mingw启用tbb来安装opencv
为Windows构buildVulkan工具
如何在Windows上设置cmake
CMake OpenCV无法指定链接库
我将作为回应,而不是评论。
看起来你可以用命令行建立你的项目:
cmake --build <dir> [options] [-- [native-options]] <dir> = Project binary directory to be built. --target <tgt> = Build <tgt> instead of default targets. --config <cfg> = For multi-configuration tools,choose <cfg>. --clean-first = Build target 'clean' first,then build. (To clean only,use --target 'clean'.) --use-stderr = Don't merge stdout/stderr. -- = Pass remaining options to the native tool
但我没有尝试…
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。