bzrtp.cmake 1.6 KB
Newer Older
Ghislain MARY's avatar
Ghislain MARY committed
1
############################################################################
2
# bzrtp.cmake
Ghislain MARY's avatar
Ghislain MARY committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# 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.
#
############################################################################

23
set(EP_bzrtp_GIT_REPOSITORY "git://git.linphone.org/bzrtp.git")
24
set(EP_bzrtp_GIT_TAG_LATEST "master")
25
set(EP_bzrtp_GIT_TAG "afc9b57689e2462b63de358ba083c64265e4ac8f")
26

Ghislain MARY's avatar
Ghislain MARY committed
27 28
set(EP_bzrtp_CMAKE_OPTIONS )
set(EP_bzrtp_LINKING_TYPE "-DENABLE_STATIC=0")
29
set(EP_bzrtp_DEPENDENCIES EP_polarssl EP_xml2)
Ghislain MARY's avatar
Ghislain MARY committed
30 31
if(MSVC)
	set(EP_bzrtp_EXTRA_LDFLAGS "/SAFESEH:NO")
Ghislain MARY's avatar
Ghislain MARY committed
32
endif()
33 34 35 36
if(MINGW)
	set(EP_bzrtp_EXTRA_CPPFLAGS "-D__USE_MINGW_ANSI_STDIO")
endif()

Ghislain MARY's avatar
Ghislain MARY committed
37
if(ENABLE_UNIT_TESTS)
Ghislain MARY's avatar
Ghislain MARY committed
38
	list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=1")
39 40
	list(APPEND EP_bzrtp_DEPENDENCIES EP_cunit)
else()
Ghislain MARY's avatar
Ghislain MARY committed
41
	list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=0")
42
endif()