############################################################################ # 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.8) set(LINPHONE_BUILDER_TOOLCHAIN "desktop" CACHE STRING "Toolchain to use for the build.") # Include macros definition to be used by builders include(cmake/LinphoneCMakeBuilder.cmake) # Include toolchain definition message("-- Using toolchain '${LINPHONE_BUILDER_TOOLCHAIN}'") include(toolchains/toolchain-${LINPHONE_BUILDER_TOOLCHAIN}.cmake) linphone_builder_apply_toolchain_flags() # Include project configuration according to the toolchain include(configs/config-${LINPHONE_BUILDER_TOOLCHAIN}.cmake) linphone_builder_add_external_projects() # Give a feature summary feature_summary(WHAT ENABLED_FEATURES DESCRIPTION "Enabled features:") feature_summary(WHAT DISABLED_FEATURES DESCRIPTION "Disabled features:")