CMakeLists.txt 1.5 KB
Newer Older
1 2
############################################################################
# CMakeLists.txt
3
# Copyright (C) 2010-2019 Belledonne Communications, Grenoble France
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.
20 21 22
#
############################################################################

23 24
cmake_minimum_required(VERSION 3.11) # we need CMake 3.11 for defining 'package_source' target as custom target

25 26 27
set(BCTOOLBOX_CMAKE_DIR "${PROJECT_SOURCE_DIR}/cmake")
set(BCTOOLBOX_CMAKE_UTILS "${BCTOOLBOX_CMAKE_DIR}/BcToolboxCMakeUtils.cmake")
include("${BCTOOLBOX_CMAKE_DIR}/BcToolboxCMakeUtils.cmake")
28

29
if(NOT CPACK_PACKAGE_NAME)
30
	set(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
31
endif()
32

33
set(CPACK_SOURCE_IGNORE_FILES
34
	"^${CMAKE_BINARY_DIR}"
35
	"^${PROJECT_SOURCE_DIR}/.git*"
36
)
jehan's avatar
jehan committed
37

38

39
bc_make_package_source_target()