Commit 07e5e5fd authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Move gsm CMakeLists.txt in the git repository.

parent 80cabceb
......@@ -22,11 +22,11 @@
set(EP_gsm_GIT_REPOSITORY "git://git.linphone.org/gsm.git")
set(EP_gsm_GIT_TAG_LATEST "linphone")
set(EP_gsm_GIT_TAG "8722e2c643ab6cc727c62fc960cbefd43e024329")
set(EP_gsm_GIT_TAG "57d904f7fdc97e611b4a09ff7753d5d648ff82cd")
set(EP_gsm_EXTERNAL_SOURCE_PATHS "gsm" "externals/gsm")
set(EP_gsm_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/gsm/CMakeLists.txt" "<SOURCE_DIR>")
set(EP_gsm_LINKING_TYPE "-DENABLE_STATIC=NO")
if(MSVC)
set(EP_gsm_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
############################################################################
# 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.
#
############################################################################
cmake_minimum_required(VERSION 2.6)
project(GSM C)
option(ENABLE_STATIC "Build static library (default is shared library)." OFF)
include_directories(
inc/
)
set(GSM_SOURCE_FILES
src/add.c
src/code.c
src/debug.c
src/decode.c
src/long_term.c
src/lpc.c
src/preprocess.c
src/rpe.c
src/gsm_destroy.c
src/gsm_decode.c
src/gsm_encode.c
src/gsm_explode.c
src/gsm_implode.c
src/gsm_create.c
src/gsm_print.c
src/gsm_option.c
src/short_term.c
src/table.c
)
if(MSVC)
list(APPEND GSM_SOURCE_FILES gsm.def)
endif(MSVC)
if(ENABLE_STATIC)
add_library(gsm STATIC ${GSM_SOURCE_FILES})
else()
add_library(gsm SHARED ${GSM_SOURCE_FILES})
if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/gsm.pdb
DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
endif()
endif()
install(TARGETS gsm
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
file(GLOB HEADER_FILES "inc/gsm.h")
install(FILES ${HEADER_FILES}
DESTINATION include/gsm
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
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