Write a file Fortran code can use to prefix $cwd file paths

This commit is contained in:
Bill Somerville 2021-04-24 01:03:13 +01:00
parent 34580f3a5b
commit 4a7d5b8602
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ qt5_wrap_ui (map65_GENUISRCS ${map65_UISRCS})
add_executable (map65 ${map65_CXXSRCS} ${map65_CSRCS} ${map65_GENUISRCS} map65.rc)
target_link_libraries (map65 m65impl ${FFTW3_LIBRARIES} Qt5::Widgets Qt5::Network Portaudio::Portaudio Usb::Usb)
install (
CODE "file (TO_NATIVE_PATH \"/\" _separator)
get_filename_component (_path \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/wsjtx_dir.txt\" REALPATH)
file (WRITE \"\${_path}\" \".\${_separator}\\n\")"
)
install (
TARGETS map65
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime