CMakeLists.txt 1.64 KB
Newer Older
jehan's avatar
jehan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
############################################################################
# CMakeLists.txt
# Copyright (C) 2016  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
19
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
jehan's avatar
jehan committed
20 21 22
#
############################################################################

jehan's avatar
jehan committed
23 24
set(HEADER_FILES
	crypto.h
25
	defs.h
jehan's avatar
jehan committed
26 27 28 29 30
	list.h
	logging.h
	map.h
	port.h
	vfs.h
31
	vconnect.h
32
	parser.h
Mickaël Turnel's avatar
Mickaël Turnel committed
33
	regex.h
34
	charconv.h
35 36
)
if(ENABLE_TESTS_COMPONENT)
jehan's avatar
jehan committed
37
	list(APPEND HEADER_FILES tester.h)
38
endif()
39
if(HAVE_EXECINFO)
40
	list(APPEND HEADER_FILES exception.hh)
41
endif()
42

jehan's avatar
jehan committed
43 44 45 46 47 48
set(BCTOOLBOX_HEADER_FILES )
foreach(HEADER_FILE ${HEADER_FILES})
        list(APPEND BCTOOLBOX_HEADER_FILES "${CMAKE_CURRENT_LIST_DIR}/bctoolbox/${HEADER_FILE}")
endforeach()
set(BCTOOLBOX_HEADER_FILES ${BCTOOLBOX_HEADER_FILES} PARENT_SCOPE)

49
install(FILES ${BCTOOLBOX_HEADER_FILES}
50 51
	DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bctoolbox
	PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
52
)