Commit 6e43ab2b authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Define headers explicitely for CMake.

parent 53382ba3
file(GLOB HEADER_FILES "belle-sip/*.h")
############################################################################
# CMakeLists.txt
# Copyright (C) 2015 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
############################################################################
install(FILES ${HEADER_FILES}
set(HEADER_FILES
auth-helper.h
belle-sdp.h
belle-sip.h
bodyhandler.h
defs.h
dialog.h
dict.h
generic-uri.h
headers.h
http-listener.h
http-message.h
http-provider.h
list.h
listener.h
listeningpoint.h
mainloop.h
message.h
object.h
parameters.h
provider.h
refresher.h
resolver.h
sipstack.h
sip-uri.h
transaction.h
types.h
utils.h
wakelock.h
)
set(BELLE_SIP_HEADER_FILES )
foreach(HEADER_FILE ${HEADER_FILES})
list(APPEND BELLE_SIP_HEADER_FILES "${CMAKE_CURRENT_LIST_DIR}/belle-sip/${HEADER_FILE}")
endforeach()
set(BELLE_SIP_HEADER_FILES ${BELLE_SIP_HEADER_FILES} PARENT_SCOPE)
install(FILES ${BELLE_SIP_HEADER_FILES}
DESTINATION include/belle-sip
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
......@@ -86,7 +86,8 @@ if(ENABLE_TUNNEL)
list(APPEND LIBS ${TUNNEL_LIBRARIES})
endif()
set(SOURCE_FILES
set(BELLE_SIP_SOURCE_FILES
${BELLE_SIP_HEADER_FILES}
auth_event.c
auth_helper.c
belle_sdp_impl.c
......@@ -141,14 +142,14 @@ set(SOURCE_FILES
${TUNNEL_SOURCE_FILES}
)
if(APPLE)
list(APPEND SOURCE_FILES backgroundtask.m)
list(APPEND BELLE_SIP_SOURCE_FILES backgroundtask.m)
set_source_files_properties(backgroundtask.m PROPERTIES COMPILE_FLAGS "-fmodules")
endif()
if(ENABLE_STATIC)
add_library(bellesip STATIC ${SOURCE_FILES})
add_library(bellesip STATIC ${BELLE_SIP_SOURCE_FILES})
else()
add_library(bellesip SHARED ${SOURCE_FILES})
add_library(bellesip SHARED ${BELLE_SIP_SOURCE_FILES})
set_target_properties(bellesip PROPERTIES VERSION 0.0.0 SOVERSION 0)
if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
......
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