From 0c8281ed692ac907b2d0c2a11002e0928d02e908 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 30 May 2021 14:55:50 +0100 Subject: [PATCH] Only install MAP65 on MS Windows for now --- map65/CMakeLists.txt | 18 ++++++++++-------- map65/libm65/CMakeLists.txt | 12 +++++++----- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/map65/CMakeLists.txt b/map65/CMakeLists.txt index 3f0064939..2eba82efb 100644 --- a/map65/CMakeLists.txt +++ b/map65/CMakeLists.txt @@ -51,18 +51,20 @@ add_executable (map65 ${map65_CXXSRCS} ${map65_CSRCS} ${map65_GENUISRCS} map65.r target_include_directories (map65 PRIVATE ${CMAKE_SOURCE_DIR} ${FFTW3_INCLUDE_DIRS}) target_link_libraries (map65 wsjt_qt m65impl ${FFTW3_LIBRARIES} Qt5::Widgets Qt5::Network Portaudio::Portaudio Usb::Usb) -install ( - CODE "get_filename_component (_path \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/wsjtx_dir.txt\" REALPATH) +if (WIN32) + install ( + CODE "get_filename_component (_path \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/wsjtx_dir.txt\" REALPATH) if (WIN32) set (_separator \"\\\\\") else () set (_separator \"/\") endif () file (WRITE \"\${_path}\" \".\${_separator}\\n\")" - ) + ) -install ( - TARGETS map65 - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime - BUNDLE DESTINATION . COMPONENT runtime - ) + install ( + TARGETS map65 + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime + BUNDLE DESTINATION . COMPONENT runtime + ) +endif () \ No newline at end of file diff --git a/map65/libm65/CMakeLists.txt b/map65/libm65/CMakeLists.txt index 286259949..eff6dd9a8 100644 --- a/map65/libm65/CMakeLists.txt +++ b/map65/libm65/CMakeLists.txt @@ -138,8 +138,10 @@ target_link_libraries (mapsim m65impl ${FFTW3_LIBRARIES}) add_executable (synctest synctest.f90) target_link_libraries (synctest m65impl ${FFTW3_LIBRARIES}) -install ( - TARGETS m65 mapsim - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime - BUNDLE DESTINATION . COMPONENT runtime - ) +if (WIN32) + install ( + TARGETS m65 mapsim + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime + BUNDLE DESTINATION . COMPONENT runtime + ) +endif ()