File: aqt.cmake

package info (click to toggle)
plplot 5.15.0%2Bdfsg-19
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 31,312 kB
  • sloc: ansic: 79,707; xml: 28,583; cpp: 20,033; ada: 19,456; tcl: 12,081; f90: 11,431; ml: 7,276; java: 6,863; python: 6,792; sh: 3,274; perl: 828; lisp: 75; makefile: 50; sed: 34; fortran: 5
file content (45 lines) | stat: -rw-r--r-- 1,723 bytes parent folder | download | duplicates (8)
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
# cmake/modules/aqt.cmake
#
# Copyright (C) 2006  Hazen Babcock
#
# 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 the file PLplot; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA

# Configuration for the aquaterm device driver
#
# The following variables are set / modified
#
# PLD_aqt             - ON means the aqt device is enabled
# aqt_COMPILE_FLAGS   - COMPILE_FLAGS required to compile aqt device driver.
# aqt_LINK_FLAGS      - LINK_FLAGS for dynamic aqt device driver.
# DRIVERS_LINK_FLAGS  - list of LINK_FLAGS for all static device drivers.
#

# Darwin-only device driver.
if(PLD_aqt AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
  set(PLD_aqt OFF CACHE BOOL "Enable aqt device" FORCE)
endif(PLD_aqt AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")

if(PLD_aqt)
  include(FindAQT)
  if(AQT_FOUND)
    message(STATUS "Found AQT: ${AQT_FRAMEWORK}")
    set(aqt_COMPILE_FLAGS "-ObjC")
    set(aqt_LINK_FLAGS "-framework AquaTerm -framework Foundation")
    set(DRIVERS_LINK_FLAGS ${DRIVERS_LINK_FLAGS} ${aqt_LINK_FLAGS})
  else(AQT_FOUND)
  set(PLD_aqt OFF CACHE BOOL "Enable aqt device" FORCE)
  endif(AQT_FOUND)
endif(PLD_aqt)