mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-17 05:08:37 -04:00
Write a file Fortran code can use to prefix $cwd file paths
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user