[CMake] Using msbuild

Thomas Lehmann t.lehmann at rtsgroup.net
Mon Nov 1 09:46:58 EDT 2010


Perfect!
Why does it not work with "msbuild"  directly?

Kind Regards
Thomas


f:\Checkouts\prototyping\cmake_sandbox\obj>cmake --build . --target install

Microsoft (R) Visual Studio Version 9.0.21022.8.
Copyright (C) Microsoft Corp. Alle Rechte vorbehalten.
1>


Thomas Lehmann
Scrum Master

------ Erstellen gestartet: Projekt: INSTALL, Konfiguration: Debug Win32 ------
1>
1>Postbuildereignis wird ausgeführt...
1>-- Install configuration: "Debug"
1>-- Installing: F:/Checkouts/prototyping/cmake_sandbox/obj/bin/app1.exe
1>-- Installing: F:/Checkouts/prototyping/cmake_sandbox/obj/bin/app2.exe
1>Das Buildprotokoll wurde unter "file://f:\Checkouts\prototyping\cmake_sandbox\obj\INSTALL.dir\Debug\BuildLog.htm" gespeichert.
1>INSTALL - 0 Fehler, 0 Warnung(en)
========== Erstellen: 1 erfolgreich, Fehler bei 0, 6 aktuell, 0 übersprungen ==========

From: David Cole [mailto:david.cole at kitware.com]
Sent: Montag, 1. November 2010 14:22
To: Thomas Lehmann
Cc: cmake at cmake.org
Subject: Re: [CMake] Using msbuild

If you open up the sln file in Visual Studio, is there an INSTALL target?

You can try using cmake --build on the command line:

cmake --build . --target install --config Debug

Should work...


Let us know,
David

On Mon, Nov 1, 2010 at 8:30 AM, Thomas Lehmann <t.lehmann at rtsgroup.net<mailto:t.lehmann at rtsgroup.net>> wrote:
Hi all,

on Unix  I can use "make install" but I have no clue how
do it on windows. Can somebody please help?

This is what I have defined in my demo environment:
install(TARGETS app2 RUNTIME DESTINATION ${CMAKE_BINARY_DIR}/bin)

Try:
msbuild Project.sln /target:install
> INSTALL:
>  The project "INSTALL" is not selected for building in solution configuration "Debug|Win32".

Kind Regards
Thomas


Thomas Lehmann
Scrum Master

Error! Filename not specified.

RTS Realtime Systems Software GmbH, Rembrandtstrasse 13, D-60596 Frankfurt am Main
T: +49.69.61009.0 / F: +49.69.61009.181

Sitz: Frankfurt am Main - HRB 84467 Amtsgericht Frankfurt am Main
Geschäftsführer: Steffen Gemuenden, Igor Sluga
www.rtsgroup.net<http://www.rtsgroup.net>

This email and any attachments are for the exclusive and confidential use of the intended recipient. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please do not read, distribute or take action in reliance upon this message. If you have received this in error, please notify me immediately by return email and promptly delete this message and its attachments from your computer system.

_______________________________________________
Powered by www.kitware.com<http://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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101101/7e6d1d8a/attachment-0001.htm>


More information about the CMake mailing list