[cmake-commits] king committed Examples.html 1.7 1.8

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Sep 11 09:51:16 EDT 2006


Update of /cvsroot/CMake/CMakeWeb/HTML
In directory public:/mounts/ram/cvs-serv30470

Modified Files:
	Examples.html 
Log Message:
ENH: Added direct references to CVS version of example.


Index: Examples.html
===================================================================
RCS file: /cvsroot/CMake/CMakeWeb/HTML/Examples.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Examples.html	25 Sep 2002 19:00:41 -0000	1.7
+++ Examples.html	11 Sep 2006 13:51:14 -0000	1.8
@@ -28,39 +28,18 @@
     <p>
     The first, top-level directory contains the following CMakeLists.txt file.
     <pre>
-# The name of our project is "HELLO".  CMakeLists files in this project can
-# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
-# to the root binary directory of the project as ${HELLO_BINARY_DIR}.
-PROJECT(HELLO)
-
-# Recurse into the "Hello" and "Demo" subdirectories.  This does not actually
-# cause another cmake executable to run.  The same process will walk through
-# the project's entire directory structure.
-SUBDIRS(Hello Demo)
+    <!--#include file="Example/CMakeLists.txt"-->
     </pre>
-    Then for each subdirectory listed in the SUBDIRS command, CMakeLists.txt 
+    Then for each subdirectory specified, CMakeLists.txt
     files are created. In the ./Hello directory, the following CMakeLists.txt
     file is created:
     <pre>
-# Create a library called "Hello" which includes the source file "hello.cxx".
-# Any number of sources could be listed here.
-ADD_LIBRARY(Hello hello.cxx)
+    <!--#include file="Example/Hello/CMakeLists.txt"-->
     </pre>
     Finally, in the ./Demo directory, the third and final CMakeLists.txt file
     is created:
     <pre>
-# Make sure the compiler can find include files from our Hello library.
-INCLUDE_DIRECTORIES(${HELLO_SOURCE_DIR}/Hello)
-
-# Make sure the linker can find the Hello library once it is built.
-LINK_DIRECTORIES(${HELLO_BINARY_DIR}/Hello)
-
-# Add executable called "helloDemo" that is built from the source files
-# "demo.cxx" and "demo_b.cxx".  
-ADD_EXECUTABLE(helloDemo demo.cxx demo_b.cxx)
-
-# Link the executable to the Hello library.
-TARGET_LINK_LIBRARIES(helloDemo Hello)
+    <!--#include file="Example/Demo/CMakeLists.txt"-->
     </pre>
     CMake when executed in the top-level directory will process the 
     CMakeLists.txt file and then descend into the listed subdirectories.



More information about the Cmake-commits mailing list