[CMake] Building multiple configurations with Xcode?
Stephen Kelly
steveire at gmail.com
Fri May 3 08:09:56 EDT 2013
Hi,
I am investigating
https://bugreports.qt-project.org/browse/QTBUG-30938
and I wanted to see what cmake exports when it export() is used with a
framework target. I created a shared library and ran cmake with -GXcode,
then cmake --build ., but it seems to only create a release library. I
thought Xcode generated rules for multiple configurations? Do I need to do
something extra for that to be done?
Thanks,
Steve.
cmake_minimum_required(VERSION 2.8)
project(cmake_framework_target)
include(GenerateExportHeader)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_library(other SHARED lib.cpp)
generate_export_header(other)
set_property(TARGET other PROPERTY FRAMEWORK 1)
install(TARGETS other
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
FRAMEWORK DESTINATION framework
)
More information about the CMake
mailing list