diff options
Diffstat (limited to 'graphics/asymptote/cmake-scripts/gnu-install-macros.cmake')
-rw-r--r-- | graphics/asymptote/cmake-scripts/gnu-install-macros.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/asymptote/cmake-scripts/gnu-install-macros.cmake b/graphics/asymptote/cmake-scripts/gnu-install-macros.cmake new file mode 100644 index 0000000000..af678bc682 --- /dev/null +++ b/graphics/asymptote/cmake-scripts/gnu-install-macros.cmake @@ -0,0 +1,18 @@ +# Only run on unix-like systems, windows does not use gnu docpath/syspath locations + +if (UNIX) + include(GNUInstallDirs) + +if (CTAN_BUILD) + set(ASYMPTOTE_SYSDIR_VALUE "") +else() + set(ASYMPTOTE_SYSDIR_VALUE ${CMAKE_INSTALL_FULL_DATADIR}/asymptote) +endif() + + set(ASYMPTOTE_DOCDIR_VALUE ${CMAKE_INSTALL_FULL_DATADIR}/doc/asymptote) + + list(APPEND ASY_MACROS + ASYMPTOTE_SYSDIR="${ASYMPTOTE_SYSDIR_VALUE}" + ASYMPTOTE_DOCDIR="${ASYMPTOTE_DOCDIR_VALUE}" + ) +endif() |