2010-11-30 13:34:43 +03:00
|
|
|
|
|
|
|
# On unix create backward compatibility symlinks
|
2015-02-16 17:30:27 +03:00
|
|
|
if(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/Fl)
|
2010-11-30 13:34:43 +03:00
|
|
|
EXECUTE_PROCESS(COMMAND ln -s FL Fl
|
2015-02-16 17:30:27 +03:00
|
|
|
WORKING_DIRECTORY $ENV{DESTDIR}@PREFIX_INCLUDE@
|
2010-11-30 13:34:43 +03:00
|
|
|
)
|
2015-02-16 17:30:27 +03:00
|
|
|
endif(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/Fl)
|
2010-11-30 13:34:43 +03:00
|
|
|
|
2015-02-16 17:30:27 +03:00
|
|
|
file(GLOB FLTK_HEADER_FILES $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/*.H)
|
2010-11-30 13:34:43 +03:00
|
|
|
foreach(file ${FLTK_HEADER_FILES})
|
|
|
|
GET_FILENAME_COMPONENT(nameWE ${file} NAME_WE)
|
2015-02-16 17:30:27 +03:00
|
|
|
if(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/${nameWE}.h)
|
2010-11-30 13:34:43 +03:00
|
|
|
EXECUTE_PROCESS(COMMAND ln -s ${nameWE}.H ${nameWE}.h
|
2015-02-16 17:30:27 +03:00
|
|
|
WORKING_DIRECTORY $ENV{DESTDIR}@PREFIX_INCLUDE@/FL
|
2010-11-30 13:34:43 +03:00
|
|
|
)
|
2015-02-16 17:30:27 +03:00
|
|
|
endif(NOT EXISTS $ENV{DESTDIR}@PREFIX_INCLUDE@/FL/${nameWE}.h)
|
2010-11-30 13:34:43 +03:00
|
|
|
endforeach(file)
|