From 8723e436ab31fd85d27a354e051291743802a650 Mon Sep 17 00:00:00 2001 From: legrand Date: Wed, 31 Oct 2007 14:56:33 +0000 Subject: [PATCH] change build directory in index.html git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@751 331e1502-861f-0410-8da2-ba01fb791d7f --- utilities/trunk/mySimpleApplication/index.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/utilities/trunk/mySimpleApplication/index.html b/utilities/trunk/mySimpleApplication/index.html index 5734b244f..806332e29 100644 --- a/utilities/trunk/mySimpleApplication/index.html +++ b/utilities/trunk/mySimpleApplication/index.html @@ -247,19 +247,21 @@
- Compile it somewhere else in order to have on one hand the source files, on the other the rest (makefiles of configuration file, ".o" files, the executable itself). This way is called out-source-build and is highly recommended.

Moreover, you should know in advance the kind of generator you want CMake to use.

-

For an "out-source-build", let's suppose your application's source file is located in /home/john/mySimpleApplication and you want to build it in /home/john/work/result for Visual Studio 8 2005 : +

For an "out-source-build", let's suppose your application's source file is located in /home/john/mySimpleApplication and you want to build it in /home/john/mySimpleApplication/build for Visual Studio 8 2005 :

-

From any directory, simply run (from a terminal/console) +

(Note: The "build" directory exists if the archive, we would advise you to build your program in it.) +

+

From /home/john/mySimpleApplication/build, simply run (from a terminal/console)

-
cmake /home/john/mySimpleApplication /home/john/work/result -G"Visual Studio 8 2005" +
cmake /home/john/mySimpleApplication -G"Visual Studio 8 2005"

The generic call for CMake is:

-
cmake <path to the sources> <target build path> -G"<generator name>" +
cmake <path to the sources> -G"<generator name>"

Then :

-

- Go in /home/john/work/result +

- Go in /home/john/mySimpleApplication/build
- Compile your program using the appropriate tool. Examples:

--> If you chose the Unix Makefiles generator, enter "make"
--> If you chose Visual Studio generator, open the generated solution/project and compile