Commit cfaf00e3 authored by Julien Wadel's avatar Julien Wadel
Browse files

Add an existing root header to PUBLIC_HEADER property in order to generate a...

Add an existing root header to PUBLIC_HEADER property in order to generate a link to Headers folder on cocoapod
parent 08f0afbe
...@@ -562,12 +562,13 @@ if(ENABLE_SHARED) ...@@ -562,12 +562,13 @@ if(ENABLE_SHARED)
set_source_files_properties(${LINPHONE_C_API_HEADER_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Headers/api") set_source_files_properties(${LINPHONE_C_API_HEADER_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Headers/api")
set_source_files_properties(${LINPHONE_ENUMS_HEADER_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Headers/enums") set_source_files_properties(${LINPHONE_ENUMS_HEADER_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Headers/enums")
set_source_files_properties(${LINPHONE_UTILS_HEADER_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Headers/utils") set_source_files_properties(${LINPHONE_UTILS_HEADER_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Headers/utils")
list(GET LINPHONE_ROOT_HEADER_FILES 0 one_header_file)
set_target_properties(linphone PROPERTIES set_target_properties(linphone PROPERTIES
FRAMEWORK TRUE FRAMEWORK TRUE
MACOSX_FRAMEWORK_IDENTIFIER org.linphone.linphone MACOSX_FRAMEWORK_IDENTIFIER org.linphone.linphone
MACOSX_FRAMEWORK_INFO_PLIST "${CMAKE_SOURCE_DIR}/build/osx/Info.plist.in" MACOSX_FRAMEWORK_INFO_PLIST "${CMAKE_SOURCE_DIR}/build/osx/Info.plist.in"
RESOURCE "${LINPHONE_RESOURCES}" RESOURCE "${LINPHONE_RESOURCES}"
PUBLIC_HEADER "${one_header_file}"
) )
endif() endif()
set_target_properties(linphone PROPERTIES LINKER_LANGUAGE CXX) set_target_properties(linphone PROPERTIES LINKER_LANGUAGE CXX)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment