[cmake-commits] david.cole committed CMakeLists.txt 1.3 1.4

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Aug 1 13:04:47 EDT 2007


Update of /cvsroot/CMake/CMake/Tests/Framework
In directory public:/mounts/ram/cvs-serv23463/Tests/Framework

Modified Files:
	CMakeLists.txt 
Log Message:
BUG: Only pay attention to the FRAMEWORK target property for SHARED library targets


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Framework/CMakeLists.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CMakeLists.txt	4 Jun 2007 19:28:05 -0000	1.3
+++ CMakeLists.txt	1 Aug 2007 17:04:45 -0000	1.4
@@ -1,6 +1,7 @@
 project(Framework)
-add_library(foo SHARED foo.cxx foo.h )
-set_target_properties(foo PROPERTIES 
+
+add_library(foo SHARED foo.cxx foo.h)
+set_target_properties(foo PROPERTIES
   FRAMEWORK TRUE
   FRAMEWORK_PUBLIC_HEADERS "foo.h;foo2.h"
   FRAMEWORK_VERSION ver2
@@ -8,4 +9,19 @@
 )
 add_executable(bar bar.cxx)
 target_link_libraries(bar foo)
- 
+
+
+# Make a static library and apply the framework properties to it to verify
+# that everything still builds correctly, but it will not actually produce
+# a framework... The framework properties only apply when the library type
+# is SHARED.
+#
+add_library(fooStatic STATIC foo.cxx foo.h)
+set_target_properties(fooStatic PROPERTIES
+  FRAMEWORK TRUE
+  FRAMEWORK_PUBLIC_HEADERS "foo.h;foo2.h"
+  FRAMEWORK_VERSION ver2
+  FRAMEWORK_RESOURCES "test.lua"
+)
+add_executable(barStatic bar.cxx)
+target_link_libraries(barStatic fooStatic)



More information about the Cmake-commits mailing list