# examples/CMakeLists.txt
### Process this file with cmake to produce Makefile
###
# Copyright (C) 2006-2015 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
# N.B. This file is used for both the core build (which installs the examples
# and optionally [depending on BUILD_TEST} builds them) and the installed
# examples build. The core build has BUILD_TEST OFF or ON at user option
# and CORE_BUILD always ON. The installed examples build always has
# BUILD_TEST ON and CORE_BUILD OFF.
if(CORE_BUILD)
# Configure Makefile.examples with some specific variables for the
# traditional Makefile + pkg-config installed examples build.
# cxx and tk subdirectories are special cases.
if(PLD_ps)
if(NOT ENABLE_ada)
set(PSC_ADA_COMMENT "#")
endif(NOT ENABLE_ada)
if(NOT ENABLE_cxx)
set(PSC_CXX_COMMENT "#")
endif(NOT ENABLE_cxx)
if(NOT ENABLE_d)
set(PSC_D_COMMENT "#")
endif(NOT ENABLE_d)
if(NOT ENABLE_f95)
set(PSC_F95_COMMENT "#")
endif(NOT ENABLE_f95)
if(NOT ENABLE_java)
set(PSC_JAVA_COMMENT "#")
endif(NOT ENABLE_java)
if(NOT ENABLE_ocaml)
set(PSC_OCAML_COMMENT "#")
endif(NOT ENABLE_ocaml)
if(NOT ENABLE_octave)
set(PSC_OCTAVE_COMMENT "#")
endif(NOT ENABLE_octave)
if(NOT ENABLE_pdl)
set(PSC_PERL_COMMENT "#")
endif(NOT ENABLE_pdl)
if(NOT ENABLE_python)
set(PSC_PYTHON_COMMENT "#")
endif(NOT ENABLE_python)
if(NOT ENABLE_tcl)
set(PSC_TCL_COMMENT "#")
endif(NOT ENABLE_tcl)
if(NOT ENABLE_lua)
set(PSC_LUA_COMMENT "#")
endif(NOT ENABLE_lua)
else(PLD_ps)
set(PSC_ADA_COMMENT "#")
set(PSC_C_COMMENT "#")
set(PSC_CXX_COMMENT "#")
set(PSC_D_COMMENT "#")
set(PSC_F95_COMMENT "#")
set(PSC_JAVA_COMMENT "#")
set(PSC_OCAML_COMMENT "#")
set(PSC_OCTAVE_COMMENT "#")
set(PSC_PERL_COMMENT "#")
set(PSC_PYTHON_COMMENT "#")
set(PSC_TCL_COMMENT "#")
set(PSC_LUA_COMMENT "#")
endif(PLD_ps)
if(NOT(ENABLE_cxx AND (PLD_ps OR ENABLE_qt OR ENABLE_wxwidgets)))
set(CXX_COMMENT "#")
endif(NOT(ENABLE_cxx AND (PLD_ps OR ENABLE_qt OR ENABLE_wxwidgets)))
if(NOT ENABLE_tkX)
set(TK_COMMENT "#")
endif(NOT ENABLE_tkX)
if(NOT PLD_pdfcairo)
set(PDFCAIRO_COMMENT "#")
endif(NOT PLD_pdfcairo)
if(NOT PLD_pngcairo)
set(PNGCAIRO_COMMENT "#")
endif(NOT PLD_pngcairo)
if(NOT PLD_pscairo)
set(PSCAIRO_COMMENT "#")
endif(NOT PLD_pscairo)
if(NOT PLD_epscairo)
set(EPSCAIRO_COMMENT "#")
endif(NOT PLD_epscairo)
if(NOT PLD_svgcairo)
set(SVGCAIRO_COMMENT "#")
endif(NOT PLD_svgcairo)
if(NOT PLD_gif)
set(GIF_COMMENT "#")
endif(NOT PLD_gif)
if(NOT PLD_jpeg)
set(JPEG_COMMENT "#")
endif(NOT PLD_jpeg)
if(NOT PLD_png)
set(PNG_COMMENT "#")
endif(NOT PLD_png)
if(NOT PLD_psttf)
set(PSTTFC_COMMENT "#")
endif(NOT PLD_psttf)
if(NOT PLD_svg)
set(SVG_COMMENT "#")
endif(NOT PLD_svg)
if(NOT PLD_xfig)
set(XFIG_COMMENT "#")
endif(NOT PLD_xfig)
if(NOT PLD_pstex)
set(PSTEX_COMMENT "#")
endif(NOT PLD_pstex)
if(CMP_EXECUTABLE OR DIFF_EXECUTABLE AND TAIL_EXECUTABLE)
set(COMPARE_COMMENT)
else(CMP_EXECUTABLE OR DIFF_EXECUTABLE AND TAIL_EXECUTABLE)
set(COMPARE_COMMENT "#")
endif(CMP_EXECUTABLE OR DIFF_EXECUTABLE AND TAIL_EXECUTABLE)
if(NOT PLD_cgm)
set(CGM_COMMENT "#")
endif(NOT PLD_cgm)
if(NOT PLD_bmpqt)
set(BMPQT_COMMENT "#")
endif(NOT PLD_bmpqt)
if(NOT PLD_jpgqt)
set(JPGQT_COMMENT "#")
endif(NOT PLD_jpgqt)
if(NOT PLD_pngqt)
set(PNGQT_COMMENT "#")
endif(NOT PLD_pngqt)
if(NOT PLD_ppmqt)
set(PPMQT_COMMENT "#")
endif(NOT PLD_ppmqt)
if(NOT PLD_tiffqt)
set(TIFFQT_COMMENT "#")
endif(NOT PLD_tiffqt)
if(NOT PLD_svgqt)
set(SVGQT_COMMENT "#")
endif(NOT PLD_svgqt)
if(NOT PLD_epsqt)
set(EPSQT_COMMENT "#")
endif(NOT PLD_epsqt)
if(NOT PLD_pdfqt)
set(PDFQT_COMMENT "#")
endif(NOT PLD_pdfqt)
# Note that the results configured in the Requires,
# Requires.private, Libs, and Libs.private lines of the PLplot *.pc
# files used in our traditional build of the installed examples
# depend on whether NON_TRANSITIVE is ON or OFF.
if(BUILD_SHARED_LIBS)
# pkg-config will not use the --static pkg-config option for the
# traditional installed examples build, i.e., the configured
# Requires.private and Libs.private results will be completely
# ignored in the PLplot *.pc files.
set(PC_STATIC_OPTION)
else(BUILD_SHARED_LIBS)
# pkg-config will use the --static pkg-config option for the
# traditional installed examples build, i.e., the configured
# Requires.private results will be appended to the
# Requires results and the configured Libs.private results will
# be appended to the Libs results.
set(PC_STATIC_OPTION "--static")
endif(BUILD_SHARED_LIBS)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Makefile.examples.in
${CMAKE_CURRENT_BINARY_DIR}/Makefile.examples
@ONLY
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Makefile.examples
DESTINATION ${DATA_DIR}/examples
RENAME Makefile
)
# Sort out RPATH issues for traditional build of installed examples using
# */Makefiles configured in each * subdirectory from */Makefile.examples.in.
if(USE_RPATH)
get_target_property(_LIB_INSTALL_RPATH plplot INSTALL_RPATH)
if(_LIB_INSTALL_RPATH)
string(REGEX REPLACE ";" ":" LIB_INSTALL_RPATH "${_LIB_INSTALL_RPATH}")
set(RPATHCMD "-Wl,-rpath -Wl,\"${LIB_INSTALL_RPATH}\"")
if(PLD_extqt)
if(ENABLE_DYNDRIVERS)
get_target_property(_qt_INSTALL_RPATH qt INSTALL_RPATH)
if(_qt_INSTALL_RPATH)
string(REGEX REPLACE ";" ":" qt_INSTALL_RPATH "${_qt_INSTALL_RPATH}")
set(qt_RPATHCMD "-Wl,-rpath -Wl,\"${LIB_INSTALL_RPATH}:${qt_INSTALL_RPATH}:${DRV_DIR}\"")
else(_qt_INSTALL_RPATH)
set(qt_RPATHCMD)
endif(_qt_INSTALL_RPATH)
else(ENABLE_DYNDRIVERS)
set(qt_RPATHCMD ${RPATHCMD})
endif(ENABLE_DYNDRIVERS)
endif(PLD_extqt)
if(ENABLE_tcl)
get_target_property(_plplottcltk_Main_INSTALL_RPATH plplottcltk_Main INSTALL_RPATH)
if(_plplottcltk_Main_INSTALL_RPATH)
string(REGEX REPLACE ";" ":" plplottcltk_Main_INSTALL_RPATH "${_plplottcltk_Main_INSTALL_RPATH}")
set(plplottcltk_Main_RPATHCMD "-Wl,-rpath -Wl,\"${LIB_INSTALL_RPATH}:${plplottcltk_Main_INSTALL_RPATH}\"")
else(_plplottcltk_Main_INSTALL_RPATH)
set(plplottcltk_Main_RPATHCMD)
endif(_plplottcltk_Main_INSTALL_RPATH)
endif(ENABLE_tcl)
else(_LIB_INSTALL_RPATH)
set(RPATHCMD)
set(qt_RPATHCMD)
set(plplottcltk_Main_RPATHCMD)
endif(_LIB_INSTALL_RPATH)
endif(USE_RPATH)
# Install lena.pgm in installed examples directory so that all implementations
# of example 20 in the various examples subdirectories can conveniently
# access this file.
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/lena.pgm
DESTINATION ${DATA_DIR}/examples
)
endif(CORE_BUILD)
if(CORE_BUILD)
# These variables (normally not set or needed for a core build) are
# needed below for the tests of the languages and devices. They
# are also needed to configure plplot_configure.cmake whose template
# file is plplot_configure.cmake_installed_examples.in and which
# ends up installed in examples/cmake/module.
set(E
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
plplot-5.11.1编译库(VS2013_32+VS2013_64+MinGW32) (166个子文件)
pltek.1 2KB
ABOUT 7KB
AUTHORS 512B
x33c.c 29KB
x16c.c 16KB
x28c.c 14KB
x09c.c 13KB
x20c.c 13KB
x22c.c 12KB
x21c.c 12KB
x23c.c 11KB
x08c.c 11KB
x29c.c 11KB
x14c.c 10KB
x19c.c 10KB
x01c.c 9KB
x15c.c 9KB
x31c.c 8KB
x26c.c 8KB
tutor.c 8KB
test_plbuf.c 8KB
x27c.c 6KB
x11c.c 5KB
x32c.c 5KB
x17c.c 4KB
x30c.c 4KB
x18c.c 4KB
x04c.c 4KB
x25c.c 4KB
x02c.c 4KB
x34c.c 3KB
x24c.c 3KB
x13c.c 2KB
x06c.c 2KB
x03c.c 2KB
x07c.c 2KB
x12c.c 2KB
x00c.c 2KB
x05c.c 853B
x10c.c 800B
test_plend.c 598B
x33.cc 29KB
x16.cc 16KB
x20.cc 15KB
x09.cc 15KB
x28.cc 14KB
x21.cc 13KB
x23.cc 13KB
x19.cc 12KB
x22.cc 12KB
x29.cc 11KB
x14.cc 11KB
x01cc.cc 11KB
x01.cc 10KB
x08.cc 10KB
x31.cc 9KB
x26.cc 8KB
x27.cc 7KB
x15.cc 7KB
x11.cc 6KB
x17.cc 5KB
x18.cc 5KB
x04.cc 5KB
x30.cc 5KB
x02.cc 5KB
x25.cc 5KB
x03.cc 4KB
x06.cc 4KB
x13.cc 4KB
x07.cc 3KB
x24.cc 3KB
x12.cc 3KB
x05.cc 2KB
x00.cc 2KB
x10.cc 2KB
pkg-config.cmake 19KB
plplot_functions.cmake 11KB
plplot_configure.cmake 7KB
language_support.cmake 5KB
export_plplot-debug.cmake 4KB
export_plplot.cmake 4KB
plplotConfig.cmake 257B
Copyright 6KB
README.csa 1KB
README.1st.csa 129B
plplot.dll 577KB
plplotcxx.dll 118KB
csirocsa.dll 69KB
ps.dll 64KB
qsastime.dll 56KB
svg.dll 46KB
xfig.dll 38KB
mem.dll 31KB
null.dll 30KB
ps.driver_info 86B
svg.driver_info 53B
mem.driver_info 47B
null.driver_info 34B
xfig.driver_info 30B
README.drivers 3KB
共 166 条
- 1
- 2
资源评论
- Pontusbai2018-02-12很好,可以用。
Mangost
- 粉丝: 4
- 资源: 39
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功