diff options
author | David Cole <david.cole@kitware.com> | 2007-08-01 17:04:45 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2007-08-01 17:04:45 (GMT) |
commit | ee91e2549921075b02f0a88fb48323b1c015228c (patch) | |
tree | e4189d3f1043bfc292981ceff2e7bf00bbf548ea /Tests/Framework/CMakeLists.txt | |
parent | a0533be267e0304b3a13f17c3adc660e8a830f71 (diff) | |
download | CMake-ee91e2549921075b02f0a88fb48323b1c015228c.zip CMake-ee91e2549921075b02f0a88fb48323b1c015228c.tar.gz CMake-ee91e2549921075b02f0a88fb48323b1c015228c.tar.bz2 |
BUG: Only pay attention to the FRAMEWORK target property for SHARED library targets
Diffstat (limited to 'Tests/Framework/CMakeLists.txt')
-rw-r--r-- | Tests/Framework/CMakeLists.txt | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/Tests/Framework/CMakeLists.txt b/Tests/Framework/CMakeLists.txt index 5bcc484..8264505 100644 --- a/Tests/Framework/CMakeLists.txt +++ b/Tests/Framework/CMakeLists.txt @@ -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 @@ set_target_properties(foo PROPERTIES ) 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) |