2007-05-08 18:58:35 +04:00
|
|
|
project(Framework)
|
2007-08-01 21:04:45 +04:00
|
|
|
|
|
|
|
add_library(foo SHARED foo.cxx foo.h)
|
|
|
|
set_target_properties(foo PROPERTIES
|
2007-05-08 19:53:39 +04:00
|
|
|
FRAMEWORK TRUE
|
|
|
|
FRAMEWORK_PUBLIC_HEADERS "foo.h;foo2.h"
|
|
|
|
FRAMEWORK_VERSION ver2
|
2007-06-04 23:28:05 +04:00
|
|
|
FRAMEWORK_RESOURCES "test.lua"
|
2007-05-08 18:58:35 +04:00
|
|
|
)
|
|
|
|
add_executable(bar bar.cxx)
|
|
|
|
target_link_libraries(bar foo)
|
2007-08-01 21:04:45 +04:00
|
|
|
|
|
|
|
|
|
|
|
# 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)
|