2020-05-27 22:45:27 +00:00
|
|
|
diff -ur wsjtx-orig/CMake/Modules/Findhamlib.cmake wsjtx/CMake/Modules/Findhamlib.cmake
|
2020-07-21 20:51:12 +00:00
|
|
|
--- wsjtx-orig/CMake/Modules/Findhamlib.cmake 2020-07-21 21:10:43.124810140 +0200
|
|
|
|
+++ wsjtx/CMake/Modules/Findhamlib.cmake 2020-07-21 21:11:03.368019114 +0200
|
2020-05-25 18:30:53 +00:00
|
|
|
@@ -85,4 +85,4 @@
|
|
|
|
# Handle the QUIETLY and REQUIRED arguments and set HAMLIB_FOUND to
|
|
|
|
# TRUE if all listed variables are TRUE
|
|
|
|
include (FindPackageHandleStandardArgs)
|
|
|
|
-find_package_handle_standard_args (hamlib DEFAULT_MSG hamlib_INCLUDE_DIRS hamlib_LIBRARIES hamlib_LIBRARY_DIRS)
|
|
|
|
+find_package_handle_standard_args (hamlib DEFAULT_MSG hamlib_INCLUDE_DIRS hamlib_LIBRARIES)
|
2020-05-27 22:45:27 +00:00
|
|
|
diff -ur wsjtx-orig/CMakeLists.txt wsjtx/CMakeLists.txt
|
2020-07-21 20:51:12 +00:00
|
|
|
--- wsjtx-orig/CMakeLists.txt 2020-07-21 21:10:43.124810140 +0200
|
|
|
|
+++ wsjtx/CMakeLists.txt 2020-07-21 22:14:04.454639589 +0200
|
|
|
|
@@ -871,7 +871,7 @@
|
2020-05-25 18:30:53 +00:00
|
|
|
#
|
|
|
|
# libhamlib setup
|
|
|
|
#
|
|
|
|
-set (hamlib_STATIC 1)
|
|
|
|
+set (hamlib_STATIC 0)
|
|
|
|
find_package (hamlib 3 REQUIRED)
|
|
|
|
find_program (RIGCTL_EXE rigctl)
|
|
|
|
find_program (RIGCTLD_EXE rigctld)
|
2020-07-21 20:51:12 +00:00
|
|
|
@@ -1348,53 +1348,10 @@
|
2020-05-27 22:45:27 +00:00
|
|
|
|
2020-05-25 18:30:53 +00:00
|
|
|
endif(WSJT_BUILD_UTILS)
|
2020-05-27 22:45:27 +00:00
|
|
|
|
|
|
|
-# build the main application
|
|
|
|
-add_executable (wsjtx MACOSX_BUNDLE
|
|
|
|
- ${wsjtx_CXXSRCS}
|
|
|
|
- ${wsjtx_GENUISRCS}
|
|
|
|
- wsjtx.rc
|
|
|
|
- ${WSJTX_ICON_FILE}
|
|
|
|
- ${wsjtx_RESOURCES_RCC}
|
|
|
|
- )
|
|
|
|
-
|
|
|
|
if (WSJT_CREATE_WINMAIN)
|
|
|
|
set_target_properties (wsjtx PROPERTIES WIN32_EXECUTABLE ON)
|
|
|
|
endif (WSJT_CREATE_WINMAIN)
|
|
|
|
|
|
|
|
-set_target_properties (wsjtx PROPERTIES
|
|
|
|
- MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Darwin/Info.plist.in"
|
|
|
|
- MACOSX_BUNDLE_INFO_STRING "${WSJTX_DESCRIPTION_SUMMARY}"
|
|
|
|
- MACOSX_BUNDLE_ICON_FILE "${WSJTX_ICON_FILE}"
|
|
|
|
- MACOSX_BUNDLE_BUNDLE_VERSION ${wsjtx_VERSION}
|
|
|
|
- MACOSX_BUNDLE_SHORT_VERSION_STRING "v${wsjtx_VERSION}"
|
|
|
|
- MACOSX_BUNDLE_LONG_VERSION_STRING "Version ${wsjtx_VERSION}"
|
|
|
|
- MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_NAME}"
|
|
|
|
- MACOSX_BUNDLE_BUNDLE_EXECUTABLE_NAME "${PROJECT_NAME}"
|
|
|
|
- MACOSX_BUNDLE_COPYRIGHT "${PROJECT_COPYRIGHT}"
|
|
|
|
- MACOSX_BUNDLE_GUI_IDENTIFIER "org.k1jt.wsjtx"
|
|
|
|
- )
|
|
|
|
-
|
|
|
|
-target_include_directories (wsjtx PRIVATE ${FFTW3_INCLUDE_DIRS})
|
|
|
|
-if (APPLE)
|
2020-07-21 20:51:12 +00:00
|
|
|
- target_link_libraries (wsjtx Qt5::SerialPort wsjt_fort wsjt_cxx wsjt_qt wsjt_qtmm ${hamlib_LIBRARIES} ${FFTW3_LIBRARIES})
|
2020-05-27 22:45:27 +00:00
|
|
|
-else ()
|
2020-07-21 20:51:12 +00:00
|
|
|
- target_link_libraries (wsjtx Qt5::SerialPort wsjt_fort_omp wsjt_cxx wsjt_qt wsjt_qtmm ${hamlib_LIBRARIES} ${FFTW3_LIBRARIES})
|
2020-05-27 22:45:27 +00:00
|
|
|
- if (OpenMP_C_FLAGS)
|
|
|
|
- set_target_properties (wsjtx PROPERTIES
|
|
|
|
- COMPILE_FLAGS "${OpenMP_C_FLAGS}"
|
|
|
|
- LINK_FLAGS "${OpenMP_C_FLAGS}"
|
|
|
|
- )
|
|
|
|
- endif ()
|
|
|
|
- set_target_properties (wsjtx PROPERTIES
|
|
|
|
- Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp
|
|
|
|
- )
|
|
|
|
- if (WIN32)
|
|
|
|
- set_target_properties (wsjtx PROPERTIES
|
|
|
|
- LINK_FLAGS -Wl,--stack,16777216
|
|
|
|
- )
|
|
|
|
- endif ()
|
|
|
|
-endif ()
|
|
|
|
-
|
|
|
|
# make a library for WSJT-X UDP servers
|
|
|
|
# add_library (wsjtx_udp SHARED ${UDP_library_CXXSRCS})
|
|
|
|
add_library (wsjtx_udp-static STATIC ${UDP_library_CXXSRCS})
|
2020-07-21 20:51:12 +00:00
|
|
|
@@ -1437,24 +1394,9 @@
|
2020-05-27 22:45:27 +00:00
|
|
|
set_target_properties (message_aggregator PROPERTIES WIN32_EXECUTABLE ON)
|
|
|
|
endif (WSJT_CREATE_WINMAIN)
|
|
|
|
|
|
|
|
-if (UNIX)
|
|
|
|
- if (NOT WSJT_SKIP_MANPAGES)
|
|
|
|
- add_subdirectory (manpages)
|
|
|
|
- add_dependencies (wsjtx manpages)
|
|
|
|
- endif (NOT WSJT_SKIP_MANPAGES)
|
|
|
|
- if (NOT APPLE)
|
|
|
|
- add_subdirectory (debian)
|
|
|
|
- add_dependencies (wsjtx debian)
|
|
|
|
- endif (NOT APPLE)
|
|
|
|
-endif (UNIX)
|
|
|
|
-
|
|
|
|
#
|
|
|
|
# installation
|
|
|
|
#
|
|
|
|
-install (TARGETS wsjtx
|
|
|
|
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
|
|
|
- BUNDLE DESTINATION . COMPONENT runtime
|
|
|
|
- )
|
|
|
|
|
|
|
|
# install (TARGETS wsjtx_udp EXPORT udp
|
|
|
|
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
2020-07-21 20:51:12 +00:00
|
|
|
@@ -1473,12 +1415,7 @@
|
2020-05-27 22:45:27 +00:00
|
|
|
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/wsjtx
|
|
|
|
# )
|
|
|
|
|
|
|
|
-install (TARGETS udp_daemon message_aggregator
|
|
|
|
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
|
|
|
- BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
|
|
|
- )
|
|
|
|
-
|
|
|
|
-install (TARGETS jt9 wsprd fmtave fcal fmeasure
|
|
|
|
+install (TARGETS jt9 wsprd
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
|
|
|
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
|
|
|
)
|
2020-07-21 20:51:12 +00:00
|
|
|
@@ -1491,39 +1428,6 @@
|
2020-05-27 22:45:27 +00:00
|
|
|
)
|
|
|
|
endif(WSJT_BUILD_UTILS)
|
|
|
|
|
2020-05-25 18:30:53 +00:00
|
|
|
-install (PROGRAMS
|
|
|
|
- ${RIGCTL_EXE}
|
|
|
|
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
- #COMPONENT runtime
|
|
|
|
- RENAME rigctl-wsjtx${CMAKE_EXECUTABLE_SUFFIX}
|
|
|
|
- )
|
|
|
|
-
|
|
|
|
-install (PROGRAMS
|
|
|
|
- ${RIGCTLD_EXE}
|
|
|
|
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
- #COMPONENT runtime
|
|
|
|
- RENAME rigctld-wsjtx${CMAKE_EXECUTABLE_SUFFIX}
|
|
|
|
- )
|
|
|
|
-
|
|
|
|
-install (PROGRAMS
|
|
|
|
- ${RIGCTLCOM_EXE}
|
|
|
|
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
- #COMPONENT runtime
|
|
|
|
- RENAME rigctlcom-wsjtx${CMAKE_EXECUTABLE_SUFFIX}
|
|
|
|
- )
|
2020-05-27 22:45:27 +00:00
|
|
|
-
|
|
|
|
-install (FILES
|
|
|
|
- README
|
|
|
|
- COPYING
|
|
|
|
- AUTHORS
|
|
|
|
- THANKS
|
|
|
|
- NEWS
|
|
|
|
- INSTALL
|
|
|
|
- BUGS
|
|
|
|
- DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
|
|
|
- #COMPONENT runtime
|
|
|
|
- )
|
2020-05-25 18:30:53 +00:00
|
|
|
-
|
|
|
|
install (FILES
|
2020-05-27 22:45:27 +00:00
|
|
|
contrib/Ephemeris/JPLEPH
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}
|
|
|
|
Only in wsjtx: .idea
|