2021-02-15 21:45:20 +03:00
|
|
|
#
|
|
|
|
# Installation script to create symlinks for the FLTK project using CMake
|
|
|
|
#
|
|
|
|
# Copyright 1998-2021 by Bill Spitzak and others.
|
|
|
|
#
|
|
|
|
# This library is free software. Distribution and use rights are outlined in
|
|
|
|
# the file "COPYING" which should have been included with this file. If this
|
|
|
|
# file is missing or damaged, see the license at:
|
|
|
|
#
|
|
|
|
# https://www.fltk.org/COPYING.php
|
|
|
|
#
|
|
|
|
# Please see the following page on how to report bugs and issues:
|
|
|
|
#
|
|
|
|
# https://www.fltk.org/bugs.php
|
2010-11-30 13:34:43 +03:00
|
|
|
|
2021-02-15 21:45:20 +03:00
|
|
|
# On UNIX create backward compatibility symlinks
|
2024-02-13 16:47:28 +03:00
|
|
|
if(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/Fl)
|
2021-02-15 21:45:20 +03:00
|
|
|
EXECUTE_PROCESS(
|
|
|
|
COMMAND ln -s FL Fl
|
|
|
|
WORKING_DIRECTORY $ENV{DESTDIR}@PREFIX_INCLUDE@
|
|
|
|
)
|
2024-02-13 16:47:28 +03:00
|
|
|
endif(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/Fl)
|
2010-11-30 13:34:43 +03:00
|
|
|
|
2024-02-13 16:47:28 +03:00
|
|
|
file(GLOB FLTK_HEADER_FILES $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/*.H)
|
2024-02-07 20:30:11 +03:00
|
|
|
foreach(file ${FLTK_HEADER_FILES})
|
2021-02-15 21:45:20 +03:00
|
|
|
GET_FILENAME_COMPONENT(nameWE ${file} NAME_WE)
|
2024-02-13 16:47:28 +03:00
|
|
|
if(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/${nameWE}.h)
|
2021-02-15 21:45:20 +03:00
|
|
|
EXECUTE_PROCESS(
|
|
|
|
COMMAND ln -s ${nameWE}.H ${nameWE}.h
|
|
|
|
WORKING_DIRECTORY $ENV{DESTDIR}@PREFIX_INCLUDE@/FL
|
|
|
|
)
|
2024-02-13 16:47:28 +03:00
|
|
|
endif(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/${nameWE}.h)
|
2024-02-07 20:30:11 +03:00
|
|
|
endforeach(file)
|