1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
# include/CMakeLists.txt for PLplot
###
### Process this file with cmake to produce Makefile
###
# Copyright (C) 2006-2016 Alan W. Irwin
#
# This file is part of PLplot.
#
# PLplot is free software; you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as published
# by the Free Software Foundation; version 2 of the License.
#
# PLplot 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 Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with PLplot; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/plConfig.h.in
${CMAKE_CURRENT_BINARY_DIR}/plConfig.h
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/plDevs.h.in
${CMAKE_CURRENT_BINARY_DIR}/plDevs.h
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/pldll.h.in
${CMAKE_CURRENT_BINARY_DIR}/pldll.h
)
set(plhershey-unicode-gen_SRCS
${CMAKE_SOURCE_DIR}/fonts/plhershey-unicode-gen.c
)
if(NOT CMAKE_CROSSCOMPILING)
add_executable(plhershey-unicode-gen ${plhershey-unicode-gen_SRCS})
else(NOT CMAKE_CROSSCOMPILING)
SET(IMPORT_EXECUTABLES ${CMAKE_NATIVE_BINARY_DIR}/include/ImportExecutables.cmake)
INCLUDE(${IMPORT_EXECUTABLES})
endif(NOT CMAKE_CROSSCOMPILING)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/plhershey-unicode.h
COMMAND plhershey-unicode-gen
${CMAKE_SOURCE_DIR}/fonts/plhershey-unicode.csv
${CMAKE_CURRENT_BINARY_DIR}/plhershey-unicode.h
DEPENDS
plhershey-unicode-gen
${CMAKE_SOURCE_DIR}/fonts/plhershey-unicode.csv
)
if(NOT CMAKE_CROSSCOMPILING)
export(TARGETS plhershey-unicode-gen FILE ${CMAKE_CURRENT_BINARY_DIR}/ImportExecutables.cmake )
endif(NOT CMAKE_CROSSCOMPILING)
# For cross-directory dependencies....
add_custom_target(
plhershey-unicode.h_built
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/plhershey-unicode.h
)
set(include_INSTALLED_HEADERS
disptab.h
drivers.h
pdf.h
pldebug.h
${CMAKE_CURRENT_BINARY_DIR}/pldll.h
plevent.h
plplot.h
plplotP.h
plstrm.h
plxwd.h
${CMAKE_CURRENT_BINARY_DIR}/plConfig.h
${CMAKE_CURRENT_BINARY_DIR}/plDevs.h
)
#qt.h only useful if anyone wants to build a Qt application with the Qt widget driver
if(PLD_qtwidget OR PLD_extqt)
list(APPEND include_INSTALLED_HEADERS qt.h)
endif(PLD_qtwidget OR PLD_extqt)
install(FILES ${include_INSTALLED_HEADERS} DESTINATION ${INCLUDE_DIR})
|