添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
无邪的弓箭  ·  GitHub - ...·  4 周前    · 
喝醉的毛豆  ·  Android - Can't build ...·  3 周前    · 
耍酷的豌豆  ·  Could not resolve ...·  3 周前    · 
小眼睛的苹果  ·  No matching variant ...·  3 周前    · 
Is there any tutorial for using NMake with CDT? I use cmake to generate
the NMake files and I would love to be able to at least try a compile
from with in CDT. I know I can not debug my code, but I can generate
visual studio projects on demand for that when I need it.
Thanks
Mike Jackson
Mike Jackson wrote:
> Is there any tutorial for using NMake with CDT? I use cmake to generate
> the NMake files and I would love to be able to at least try a compile
> from with in CDT.
At the project preferences change the build command from make to nmake.
I expect you to do out of source build. If so your top-level Makefile could
look like this
<Makefile>
CMAKE_FLAGS= -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug
all: build/CMakeCache.txt
cd build && $(MAKE)
clean:
cd build && $(MAKE) clean
build/CMakeCache.txt:
cd build && cmake $(CMAKE_FLAGS) ../
</Makefile>
Regards,
--Maik
Nope. I do not want to add another unnecessary file to the project just
for eclipse. I believe there is probably a way to get Eclipse to run
nmake from another directory. I just do not know enough about Windows
to make that happen. (OS X and Linux are my primary Dev platforms)
Mike Jackson wrote:
> Nope. I do not want to add another unnecessary file to the project just
> for eclipse. I believe there is probably a way to get Eclipse to run
> nmake from another directory. I just do not know enough about Windows
> to make that happen. (OS X and Linux are my primary Dev platforms)
You don't have to add anything. Its IMHO just easier to trigger everything
via a toplevel makefile and is absoluteley unrelated to the editor/IDE.
You can do it without this toplevel makefile by using nmake -f
build/Makefile as build command, where you substitute "build" with the
directory name you ran cmake at.
Basically a eclipse "Makefile-Project" allows you to use any build command
(ant/jam/bjam/scons... myownbuildscript.sh). The reason why it is
called "Makefile-Project" is IMHO that the output error parser knows make.
Best,
-- Maik
Previous Topic: How to see help books in project Documentation Next Topic: linked file missing in compilation. Goto Forum:

Current Time: Mon Aug 07 02:30:31 GMT 2023

Powered by FUDForum . Page generated in 0.01312 seconds