[CMake] How can I run my excutable in build

王东岳 codewdy at gmail.com
Tue May 14 06:00:07 EDT 2013


Well, I want to run an excutable when build like the following makefile:
2 : 2.cpp
    g++ 2.cpp -o 2

2.cpp : gen
    gen 2.txt -o 2.cpp

gen : gen.cpp
    g++ gen.cpp -o gen

So what should I do?
I just have learnt how to build a simple project,

-- 
清华大学计算机系
Tsinghua University CST
王东岳
Dongyue.Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130514/62d2e86d/attachment.htm>


More information about the CMake mailing list