[cmake-commits] hoffman committed CMakeLists.txt 1.1 1.2

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Feb 19 13:26:40 EST 2007


Update of /cvsroot/CMake/CMake/Tests/ConvLibrary
In directory public:/mounts/ram/cvs-serv27210/Tests/ConvLibrary

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: add test for conv libraries


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/ConvLibrary/CMakeLists.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CMakeLists.txt	16 Feb 2007 21:12:16 -0000	1.1
+++ CMakeLists.txt	19 Feb 2007 18:26:38 -0000	1.2
@@ -1,19 +1,19 @@
-project(foo)
-
-# create a source list
-set(foo_sources foo.cxx bar.c sub1/car.cxx) 
-# create a library foo from the sources
-add_library(foo ${foo_sources})
-# get the object files from the target
-get_target_property(OBJECT_FILES foo OBJECT_FILES)
-message("${OBJECT_FILES}")
-# set the object files as generated
-set_source_files_properties(${OBJECT_FILES} PROPERTIES GENERATED true)
-# create a library bar that contains the object files from foo
-add_library(bar ${OBJECT_FILES})
-# set the linker language since bar only has .obj
-set_target_properties(bar PROPERTIES LINKER_LANGUAGE CXX)
-# make sure foo is built before bar
-add_dependencies(bar foo)
-add_executable(bartest bartest.cxx)
-target_link_libraries(bartest bar)
+project(ConvLibrary)
+
+# create a source list
+set(foo_sources foo.cxx bar.c sub1/car.cxx) 
+# create a library foo from the sources
+add_library(foo ${foo_sources})
+# get the object files from the target
+get_target_property(OBJECT_FILES foo OBJECT_FILES)
+message("${OBJECT_FILES}")
+# set the object files as generated
+set_source_files_properties(${OBJECT_FILES} PROPERTIES GENERATED true)
+# create a library bar that contains the object files from foo
+add_library(bar ${OBJECT_FILES})
+# set the linker language since bar only has .obj
+set_target_properties(bar PROPERTIES LINKER_LANGUAGE CXX)
+# make sure foo is built before bar
+add_dependencies(bar foo)
+add_executable(bartest bartest.cxx)
+target_link_libraries(bartest bar)



More information about the Cmake-commits mailing list