bzrtp.cmake 1.61 KB
Newer Older
Ghislain MARY's avatar
Ghislain MARY committed
1
############################################################################
2
# bzrtp.cmake
3
# Copyright (C) 2014-2018  Belledonne Communications, Grenoble France
Ghislain MARY's avatar
Ghislain MARY committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#
############################################################################
#
# 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
19
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
Ghislain MARY's avatar
Ghislain MARY committed
20 21 22
#
############################################################################

23
lcb_git_repository("https://gitlab.linphone.org/BC/public/bzrtp.git")
24 25 26 27
lcb_git_tag_latest("master")
lcb_git_tag("1.0.4")
lcb_external_source_paths("bzrtp")
lcb_groupable(YES)
28
lcb_sanitizable(YES)
29
lcb_package_source(YES)
30
lcb_spec_file("bzrtp.spec")
31

32
lcb_dependencies("bctoolbox")
33 34 35 36 37 38
if(NOT APPLE)
	# Do not build xml2 neither sqlite3 on Apple systems (Mac OS X and iOS), they are provided by the system
	lcb_dependencies("xml2" "sqlite3")
endif()
if(ENABLE_UNIT_TESTS)
	lcb_dependencies("bcunit")
39
endif()
40
if(MINGW)
41
	lcb_extra_cppflags("-D__USE_MINGW_ANSI_STDIO")
42
endif()
Ghislain MARY's avatar
Ghislain MARY committed
43

44
lcb_cmake_options("-DENABLE_TESTS=${ENABLE_UNIT_TESTS}")