linphone-iphone/share/CMakeLists.txt
Ghislain MARY bd7a6b2fa7 Improve build with CMake.
- Install the GTK UI binary under the name linphone instead of linphone-gtk.
 - Install all sounds and rings.
 - Install freedesktop files.
2014-11-28 10:49:32 +01:00

57 lines
1.9 KiB
CMake

############################################################################
# CMakeLists.txt
# Copyright (C) 2014 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 archived-rootca.pem
RENAME rootca.pem
DESTINATION ${PACKAGE_DATA_DIR}/linphone
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
set(SOUND_FILES
hello16000.wav
hello8000.wav
incoming_chat.wav
ringback.wav
)
install(FILES ${SOUND_FILES}
DESTINATION ${PACKAGE_SOUND_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
if(ENABLE_GTK_UI)
set(prefix "${CMAKE_INSTALL_PREFIX}")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/audio-assistant.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/audio-assistant.desktop)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/linphone.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/linphone.desktop)
set(FREEDESKTOP_FILES
${CMAKE_CURRENT_BINARY_DIR}/audio-assistant.desktop
${CMAKE_CURRENT_BINARY_DIR}/linphone.desktop
)
install(FILES ${FREEDESKTOP_FILES}
DESTINATION ${PACKAGE_FREEDESKTOP_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
endif()
add_subdirectory(rings)