blob: b87b4c3c8c26df17b1236b3359dd58c923d39776 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
cmake_minimum_required(VERSION 3.9)
project(PLplotDriver NONE)
include(ExternalProject)
include(${CMAKE_CURRENT_SOURCE_DIR}/../Home.cmake)
set(PLplot_PREFIX "${HOME}/.cmake/Contracts/PLplot")
file(REMOVE_RECURSE "${PLplot_PREFIX}")
separate_arguments(PLplot_CMAKE_ARGS UNIX_COMMAND "${PLplot_CMAKE_FLAGS}")
if(NOT PLplot_GIT_TAG)
set(PLplot_GIT_TAG "plplot-5.13.0")
endif()
ExternalProject_Add(PLplot
GIT_REPOSITORY "https://git.code.sf.net/p/plplot/plplot.git"
GIT_TAG "${PLplot_GIT_TAG}"
PREFIX "${PLplot_PREFIX}"
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
${PLplot_CMAKE_ARGS}
)
|