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)
|