问题描述
Cmakerule
它在 CMake 构建期间使用由 CMake 创建的 isocpp_idlpp.bat
setlocal
call isocpp_idlpp.bat C:/Users/king/Source/Data.idl
if %errorlevel% neq 0 goto :cmend
:cmend
endlocal & call :cmerrorLevel %errorlevel% & goto :cmDone
:cmerrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
其他同下输出,依赖
我在 C:/Users/king/Source/test/Data.idl 创建了一个新的 idl(添加到 VS 项目的 MIDL 文件) 我需要在没有 CMake 的情况下在我的 VS 项目上运行这个 cmake 规则......以便我在 Data.idl 属性上设置以下属性--> 自定义构建工具
链接对象= no
自定义构建工具
Commandline 在 CMake 规则中使用与上面相同的命令行.... isocpp_idlpp.bat 在项目目录中
setlocal
call isocpp_idlpp.bat C:/Users/king/Source/test/Data.idl
if %errorlevel% neq 0 goto :cmend
:cmend
endlocal & call :cmerrorLevel %errorlevel% & goto :cmDone
:cmerrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
C:\Users\king\output\Data.cpp
C:\Users\king\output\Data-cyclone.c
C:\Users\king\output\DataSplDcps.cpp
C:\Users\king\output\Data.h
C:\Users\king\output\Data-cyclone.h
C:\Users\king\output\Data_Dcps.hpp
C:\Users\king\output\DataSplDcps.h
附加依赖
C:/Users/king/Source/test/Data.idl
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)