Bill, thank you for your replies.
I'll be writing a macro for Visual Studio then which finds the
corresponding cpp file and compiles it.
Cheers
Andreas
On 12-Mar-12 10:26 PM, Bill Hoffman wrote:
On 3/12/2012 5:00 PM, Andreas Haferburg wrote:
Yea, that's pretty much what I've got so far. And yes, I realize that's
the way it's *supposed* to be set up. ;) I've posted my CMakeLists.txt
here if you want to have a look:
http://stackoverflow.com/a/9669388/872616
The only time I would really like to have anything to do with generated
files is if something goes wrong with the generation, but not during
normal development. I'd like to set up the tool chain such that I only
have to touch the .lzz files, and the .hpp/.cpp would be completely
hidden away in the build dir. Just as normally you wouldn't want to have
anything to do with .obj files, you know?
I don't think you can do that. However, you can make it a little nicer
with this change:
MAIN_DEPENDENCY "${CMAKE_CURRENT_SOURCE_DIR}/${filename}"
From
Note that MAIN_DEPENDENCY is completely optional and is used as a
suggestion to visual studio about where to hang the custom command. In
makefile terms this creates a new target in the following form:
cmake --help-command add_custom_command
OUTPUT: MAIN_DEPENDENCY DEPENDS
COMMAND
However, when you right click on A.lzz and it will run lzz, and not the
full compiler cycle. You will have to right click on the generated .cpp
file to run the actual compiler. There is no way to collapse that into
one step.
-Bill
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
--
Scopis GmbH
Blücherstr. 22 / Aufg. 3
10961 Berlin
Germany
E-Mail: [email protected]
Tel.: +49 (30) 39 82 05 98
Fax.: +49 (30) 39 82 05 99
Internet: www.scopis.com
HRB 128315 Berlin Charlottenburg
USt-IdNr.: DE272721463
Steuernummer: 29/014/02034
Geschäftsführer: Bartosz Kosmecki
Diese E-mail, einschließlich der Anhänge, ist ausschließlich für den
oben genannten Adressaten bestimmt und beinhaltet vertrauliche und/oder
gesetzlich geschützte Informationen. Jedem anderen Empfänger ist die
Vervielfältigung, Weitergabe oder Veröffentlichung untersagt. Falls Sie
diese Mitteilung irrtümlicherweise erhalten haben, bitten wir um
sofortige Information an den Absender und Vernichtung der E-mail.
This e-mail, including the attachments, is for the exclusive use of the
above-named addresses and contains confidential information and/or
information protected by law. Any other recipient is prohibited from
duplicating, passing on to third parties, or publishing this
information. If by error you are the recipient of this communication
please inform the sender immediately and permanently delete this e-mail.
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake