mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-09-02 21:27:52 -04:00
------------------------------------------------------------------------ r8085 | k9an | 2017-09-13 01:46:16 +0100 (Wed, 13 Sep 2017) | 1 line Open up DT range to +/- 2.5 s for testing. ------------------------------------------------------------------------ r8086 | bsomervi | 2017-09-16 11:12:38 +0100 (Sat, 16 Sep 2017) | 1 line Do not allow window manager events to close the astronomical data window ------------------------------------------------------------------------ r8087 | bsomervi | 2017-09-16 21:27:05 +0100 (Sat, 16 Sep 2017) | 4 lines Fix regression in ADIF parser that caused failure with missing header Improved robustness of the ADIF parser and re-factored to more idiomatic C++. ------------------------------------------------------------------------ r8088 | bsomervi | 2017-09-16 21:27:13 +0100 (Sat, 16 Sep 2017) | 1 line Update band limits as per ADIF 3.0.6 specification ------------------------------------------------------------------------ r8089 | bsomervi | 2017-09-16 21:27:20 +0100 (Sat, 16 Sep 2017) | 1 line Use a single definition of band limits (Bands class) ------------------------------------------------------------------------ r8090 | bsomervi | 2017-09-16 21:27:33 +0100 (Sat, 16 Sep 2017) | 5 lines Add button to the decoded text window context menu to erase the contents Right-click either decoded text window to erase its contents. The "Erase" button on the main UI still operates as before although it is implemented differently now. ------------------------------------------------------------------------ r8091 | bsomervi | 2017-09-16 23:20:51 +0100 (Sat, 16 Sep 2017) | 1 line Correct the actions taken when clearing decodes windows ------------------------------------------------------------------------ r8092 | bsomervi | 2017-09-16 23:20:59 +0100 (Sat, 16 Sep 2017) | 8 lines Restore functionality of sending .WAV playback decodes to UDP Extended the Decode and WSPRDecode UDP messages with an "off air" boolean field indicating the decode was derived from a .WAV fle playback rather than an on air reception. Extended reference applications to use the new off air decode message field. ------------------------------------------------------------------------ r8093 | k9an | 2017-09-17 16:34:32 +0100 (Sun, 17 Sep 2017) | 1 line Experimental tweak to FT8 decoder. Try a second symbol metric if the first one fails - currently configured to use max-amplitude and max-log. ------------------------------------------------------------------------ r8094 | k9an | 2017-09-17 21:43:30 +0100 (Sun, 17 Sep 2017) | 1 line Restore the use of max-amplitude for ap passes. ------------------------------------------------------------------------ r8095 | k1jt | 2017-09-18 16:42:14 +0100 (Mon, 18 Sep 2017) | 2 lines Allow specialized use of "x2 Tone Spacing" in FT8 mode. ------------------------------------------------------------------------ r8096 | k1jt | 2017-09-18 16:47:29 +0100 (Mon, 18 Sep 2017) | 2 lines Allow X2 tone spacing also in JT9 (slow) modes. ------------------------------------------------------------------------ r8097 | k1jt | 2017-09-18 21:42:18 +0100 (Mon, 18 Sep 2017) | 2 lines Change CRLF line endings to *nix style. ------------------------------------------------------------------------ r8098 | k1jt | 2017-09-19 17:04:10 +0100 (Tue, 19 Sep 2017) | 2 lines Add a missing step to description of the Frequency Calibration procedure. ------------------------------------------------------------------------ r8099 | k1jt | 2017-09-20 17:31:04 +0100 (Wed, 20 Sep 2017) | 1 line Insert a link to FT8_Operating_Tips.pdf. ------------------------------------------------------------------------ r8100 | k1jt | 2017-09-20 20:11:04 +0100 (Wed, 20 Sep 2017) | 3 lines As an experiment, move "NA VHF Contest Mode" checkbox to main screen and query operator if d>10000 km. ------------------------------------------------------------------------ r8101 | k1jt | 2017-09-20 20:19:47 +0100 (Wed, 20 Sep 2017) | 2 lines Correct a tool-tip typo. ------------------------------------------------------------------------ r8102 | bsomervi | 2017-09-22 13:31:01 +0100 (Fri, 22 Sep 2017) | 1 line UI tweaks to improve portability between platforms and font size changes ------------------------------------------------------------------------ r8103 | bsomervi | 2017-09-22 16:36:24 +0100 (Fri, 22 Sep 2017) | 5 lines Extend UDP Reply message with keyboard modifiers This allows UDP servers to emulate keyboard modified double-clicks on decoded messages, E.g. ALT+double-click for replying to a CQ or QRZ call without changing ones Tx frequency offset. ------------------------------------------------------------------------ r8104 | bsomervi | 2017-09-22 16:49:42 +0100 (Fri, 22 Sep 2017) | 1 line Updated AD1C cty.dat file (21st Sept 2017) ------------------------------------------------------------------------ r8105 | k1jt | 2017-09-22 18:38:51 +0100 (Fri, 22 Sep 2017) | 2 lines Another attempt at eliminating confusion when NA VHF Contest Mode is in use. ------------------------------------------------------------------------ r8106 | k9an | 2017-09-22 21:36:52 +0100 (Fri, 22 Sep 2017) | 1 line Make sure that fastGrph is properly initialized. ------------------------------------------------------------------------ r8107 | bsomervi | 2017-09-22 23:08:41 +0100 (Fri, 22 Sep 2017) | 1 line Improve performance of the UDP reference application message_aggregator ------------------------------------------------------------------------ r8108 | bsomervi | 2017-09-22 23:08:49 +0100 (Fri, 22 Sep 2017) | 1 line Fix a regression in processing incoming Reply UDP messages ------------------------------------------------------------------------ r8109 | bsomervi | 2017-09-22 23:08:56 +0100 (Fri, 22 Sep 2017) | 4 lines Better handling of worked before and country name display Appended text is added at a fixed column unless the message overlaps in which case the appended information floats to thr right. ------------------------------------------------------------------------ r8110 | bsomervi | 2017-09-22 23:09:04 +0100 (Fri, 22 Sep 2017) | 4 lines Restore printing of MSK144 decode quality information Now that a way of dealing with worked before and country information without losing this information has been found. ------------------------------------------------------------------------ r8111 | bsomervi | 2017-09-22 23:09:11 +0100 (Fri, 22 Sep 2017) | 5 lines Fix an issue with truncated free text messages being generated This is an edge case when working a call like RI9F/GM4WJS where it is not possible to confirm receipt of the full compound callsign in a Tx5 73 message as "RI9F/GM4WJS 73" is 14 characters. ------------------------------------------------------------------------ r8112 | bsomervi | 2017-09-23 19:09:29 +0100 (Sat, 23 Sep 2017) | 1 line Tidy up some ugly code ------------------------------------------------------------------------ r8113 | bsomervi | 2017-09-23 19:09:37 +0100 (Sat, 23 Sep 2017) | 1 line Clean up some main window UI layout ------------------------------------------------------------------------ r8114 | k9an | 2017-09-23 20:39:42 +0100 (Sat, 23 Sep 2017) | 1 line Comment out some diagnostic writes. ------------------------------------------------------------------------ r8115 | k9an | 2017-09-23 20:56:45 +0100 (Sat, 23 Sep 2017) | 1 line Add some text for section 13.3 of the User Guide. ------------------------------------------------------------------------ r8116 | k9an | 2017-09-23 21:01:31 +0100 (Sat, 23 Sep 2017) | 1 line Minor change to new_features.adoc. ------------------------------------------------------------------------ r8117 | bsomervi | 2017-09-23 23:02:24 +0100 (Sat, 23 Sep 2017) | 1 line Minor additions to MSK144 phase eq docs ------------------------------------------------------------------------ r8118 | k9an | 2017-09-23 23:32:06 +0100 (Sat, 23 Sep 2017) | 1 line Fix up Table 2 caption. ------------------------------------------------------------------------ r8119 | bsomervi | 2017-09-24 22:14:10 +0100 (Sun, 24 Sep 2017) | 1 line Fix issues processing free text 73 messages ------------------------------------------------------------------------ r8120 | k1jt | 2017-09-25 18:02:52 +0100 (Mon, 25 Sep 2017) | 3 lines First tests of "RR73 NOW ..." and "NIL NOW ..." (i3bit=1, 2) messages in FT8. DO NOT USE THIS FEATURE ON THE AIR! ------------------------------------------------------------------------ r8121 | k1jt | 2017-09-25 20:21:25 +0100 (Mon, 25 Sep 2017) | 2 lines Make bDXped a member variable, default to false. ------------------------------------------------------------------------ r8122 | bsomervi | 2017-09-26 00:38:19 +0100 (Tue, 26 Sep 2017) | 1 line Fix regression in handling double-clicked CQ and QRZ calls ------------------------------------------------------------------------ r8123 | bsomervi | 2017-09-26 00:38:27 +0100 (Tue, 26 Sep 2017) | 1 line Fix a regression handling compound calls in 73 messages ------------------------------------------------------------------------ r8124 | k1jt | 2017-09-27 13:26:33 +0100 (Wed, 27 Sep 2017) | 2 lines Additions to Section 13.3 of WSJT-X User Guide: "Phase Equalkization". ------------------------------------------------------------------------ r8125 | k1jt | 2017-09-27 13:39:50 +0100 (Wed, 27 Sep 2017) | 31 lines Experimental new behavior for "Lock Tx=Rx" and for clicking on waterfall and decoded text. 1. Checkbox "Lock Tx=Rx" is now labeled "Lock Tx Freq", and its meaning is quite different. If checked, the audio Tx frequency cannot be changed. It's like the "Lock" function on some transceivers. 2. Clicking on the Wide Graph waterfall and on lines of decoded text now behave as follows: Click on Action --------------------------------------------------------------------- Waterfall: Click to set Rx frequency Shift-click to set Tx frequency Ctrl-click to set Rx and Tx frequencies If Lock Tx Freq is checked, Tx freq does not move Double-click to set Rx frequency and decode there Decoded Text: Double-click to copy transmitting callsign to DX Call and locator to DX Grid; change Rx frequency to decoded signal's frequency; generate standard messages. Tx frequency is not changed unless Ctrl is held down and Lock Tx Freq not checked. If this experimental behavior is adopted, some descriptions in the User Guide and Special Mouse Commands will need to be updated. 3. Starting to implement a new function on the Tools menu, "Solve for calibration parameters". This is not yet finished; DO NOT USE in its present form. ------------------------------------------------------------------------ r8126 | k1jt | 2017-09-27 13:50:21 +0100 (Wed, 27 Sep 2017) | 2 lines Add missing routine. ------------------------------------------------------------------------ r8127 | k1jt | 2017-09-28 02:35:09 +0100 (Thu, 28 Sep 2017) | 1 line Functional 'Solve for calibration parameters' on Tools menu. ------------------------------------------------------------------------ r8128 | k1jt | 2017-09-28 13:30:52 +0100 (Thu, 28 Sep 2017) | 1 line dummy ------------------------------------------------------------------------ r8129 | k9an | 2017-09-28 16:00:57 +0100 (Thu, 28 Sep 2017) | 1 line Correct a typo in the docs. ------------------------------------------------------------------------ r8130 | k1jt | 2017-09-28 16:05:41 +0100 (Thu, 28 Sep 2017) | 1 line Minor edits in User Guide. ------------------------------------------------------------------------ r8131 | k1jt | 2017-09-28 16:09:46 +0100 (Thu, 28 Sep 2017) | 3 lines Fix two ways that Loxk Tx Freq could be circumvented; display Echo Graph automatically when Echo mode is started; clean up display of FreqCal parameters. ------------------------------------------------------------------------ r8132 | k1jt | 2017-09-28 16:46:36 +0100 (Thu, 28 Sep 2017) | 2 lines Clean up the display of "Controls" checkbox on Wide Graph. ------------------------------------------------------------------------ r8133 | k1jt | 2017-09-28 16:55:24 +0100 (Thu, 28 Sep 2017) | 2 lines Display "NIL NOW ", etc., only for test cases. ------------------------------------------------------------------------ r8134 | k1jt | 2017-09-28 20:51:04 +0100 (Thu, 28 Sep 2017) | 2 lines Add some FreqCal info to User Guide. ------------------------------------------------------------------------ r8135 | k1jt | 2017-09-29 00:34:13 +0100 (Fri, 29 Sep 2017) | 1 line Move 'Controls' checkbox a few pixels to the right. ------------------------------------------------------------------------ r8136 | bsomervi | 2017-09-29 11:46:43 +0100 (Fri, 29 Sep 2017) | 1 line Fix accidental regression in UDP Reply message handling ------------------------------------------------------------------------ r8137 | bsomervi | 2017-09-29 11:57:22 +0100 (Fri, 29 Sep 2017) | 1 line Minor clarification for the User Guide waterfall controls description ------------------------------------------------------------------------ r8138 | k1jt | 2017-09-29 14:27:55 +0100 (Fri, 29 Sep 2017) | 2 lines Minor change to make shift/ctrl double-click logic more consistent. ------------------------------------------------------------------------ r8139 | k1jt | 2017-09-29 14:47:26 +0100 (Fri, 29 Sep 2017) | 1 line Remove a diagnostic qDebug(). ------------------------------------------------------------------------ r8140 | k1jt | 2017-09-29 14:59:16 +0100 (Fri, 29 Sep 2017) | 2 lines Additional instructions for using the FreqCal procedure. ------------------------------------------------------------------------ r8141 | k1jt | 2017-09-29 17:53:28 +0100 (Fri, 29 Sep 2017) | 2 lines Many updates to User Guide, mostly to reflect changes in "click behavior". ------------------------------------------------------------------------ r8142 | k1jt | 2017-09-29 17:53:57 +0100 (Fri, 29 Sep 2017) | 1 line Update mouse_sommands.txt. ------------------------------------------------------------------------ r8143 | k1jt | 2017-09-29 17:58:05 +0100 (Fri, 29 Sep 2017) | 3 lines Previous commit message should have mentioned a fix to "stdmsg.f90" that was preventing double-click on a JT65 "OOO" message from populating message fields. ------------------------------------------------------------------------ r8144 | k1jt | 2017-09-29 18:40:30 +0100 (Fri, 29 Sep 2017) | 2 lines Add an option to enforce simplex operation (moving both Tx and Rx frequency) when double-clicking on a decoded text line. ------------------------------------------------------------------------ r8145 | k1jt | 2017-09-30 14:56:33 +0100 (Sat, 30 Sep 2017) | 1 line Fix a regression that prevented double-click on call from working as in r8123. ------------------------------------------------------------------------ r8146 | k1jt | 2017-09-30 18:48:46 +0100 (Sat, 30 Sep 2017) | 21 lines Another try at optimizing the GUI for simplex and split behavior. Details below: 1. Checkbox "Double-click on call sets Tx and Rx freqs" has been removed from the Settings -> General tab. 2. Checkbox "Lock Tx Freq" on main window is relabled "Hold Tx Freq". 3. Behavior now defaults to the "simplex" behavior in use up to code revision r8123. In particular, double-clicking on decoded mesages that do not contain your own call moves both Rx and Tx frequencies. If the first callsign is your own call, only Rx freq moves. 4. If "Hold Tx Freq" is checked, double-clicking on decoded messages moves the Rx frequency; Tx frequency is moved only if CTRL was held down. 5. Clicking on the waterfall moves Rx and Tx frequencies as before: Rx only on a simple click, Tx only on SHIFT-click, and both on CTRL-click. This happens even if "Hold Tx Freq" is checked (which is why this box is no longer labeled "Lock Tx Freq"). ------------------------------------------------------------------------ r8147 | k1jt | 2017-09-30 20:25:01 +0100 (Sat, 30 Sep 2017) | 1 line Fix behavior with double-click on 'CQ <AA-ZZ> <call> <grid>.' ------------------------------------------------------------------------ r8148 | k1jt | 2017-10-01 13:35:43 +0100 (Sun, 01 Oct 2017) | 1 line Correct an improper disabling of TxFreqSpinBox. ------------------------------------------------------------------------ r8149 | k1jt | 2017-10-01 15:03:16 +0100 (Sun, 01 Oct 2017) | 1 line Update mouse_commands.txt and tool tips. ------------------------------------------------------------------------ r8150 | k1jt | 2017-10-01 15:58:10 +0100 (Sun, 01 Oct 2017) | 1 line Update 'blank line' band ID at 4*TRperiod/5. ------------------------------------------------------------------------ r8151 | bsomervi | 2017-10-01 22:43:59 +0100 (Sun, 01 Oct 2017) | 1 line Fix an invalid iterator increment when there are no FreqCal frequencies ------------------------------------------------------------------------ r8152 | bsomervi | 2017-10-01 22:44:07 +0100 (Sun, 01 Oct 2017) | 1 line Fix cty.dat lookups that were not honouring exact match flags ------------------------------------------------------------------------ r8153 | bsomervi | 2017-10-01 22:44:15 +0100 (Sun, 01 Oct 2017) | 6 lines Add "Apply" button to calibration solution message box Make calibration solution application iterative so that calibrations can be applied sequentially if desired. Tidy up calibration solution messages boxes and make i18n friendly. ------------------------------------------------------------------------ r8154 | k1jt | 2017-10-02 14:49:37 +0100 (Mon, 02 Oct 2017) | 2 lines Update User Guide and "mouse_commands". ------------------------------------------------------------------------ r8155 | k1jt | 2017-10-02 15:15:15 +0100 (Mon, 02 Oct 2017) | 2 lines Special DXpedition messages must not have the FreeText bit set. ------------------------------------------------------------------------ r8156 | k1jt | 2017-10-02 19:27:08 +0100 (Mon, 02 Oct 2017) | 2 lines Add more on Copyright protections. ------------------------------------------------------------------------ r8157 | k1jt | 2017-10-02 19:33:17 +0100 (Mon, 02 Oct 2017) | 2 lines Update the list of keyboard shortcuts. ------------------------------------------------------------------------ r8158 | k1jt | 2017-10-02 19:35:06 +0100 (Mon, 02 Oct 2017) | 2 lines Minor edits. ------------------------------------------------------------------------ r8159 | k1jt | 2017-10-03 02:23:24 +0100 (Tue, 03 Oct 2017) | 1 line Correct a misspelling; add quote marks; push 'About' to bottom of Tools menu. ------------------------------------------------------------------------ r8160 | k1jt | 2017-10-03 16:59:47 +0100 (Tue, 03 Oct 2017) | 2 lines Add KA9Q to the copyright notice. ------------------------------------------------------------------------ r8161 | k1jt | 2017-10-04 14:14:51 +0100 (Wed, 04 Oct 2017) | 2 lines Update an image; fix a typo. ------------------------------------------------------------------------ r8162 | k1jt | 2017-10-05 19:27:34 +0100 (Thu, 05 Oct 2017) | 2 lines Fix a bug involving "firstcall contains mycall" but not equal to mycall. ------------------------------------------------------------------------ r8163 | bsomervi | 2017-10-06 17:18:17 +0100 (Fri, 06 Oct 2017) | 1 line Add an accessor method to Configuration to get the current calibration parameters ------------------------------------------------------------------------ r8164 | bsomervi | 2017-10-06 17:18:25 +0100 (Fri, 06 Oct 2017) | 5 lines Rename the fmt.all calibration measurements file after accepting a solution This allows those who want to keep their calibration measurements after finding a solution to calibrate their station. The fmt.all file used to find and accept a solution is renamed to fmt.bak. ------------------------------------------------------------------------ r8165 | k1jt | 2017-10-13 15:36:10 +0100 (Fri, 13 Oct 2017) | 2 lines Update the Tool Tip displayed for Frequency Calibration parameters. ------------------------------------------------------------------------ r8166 | bsomervi | 2017-10-13 23:34:10 +0100 (Fri, 13 Oct 2017) | 1 line Fix an issue with editing IARU regions in the working frequencies table ------------------------------------------------------------------------ r8167 | bsomervi | 2017-10-13 23:34:21 +0100 (Fri, 13 Oct 2017) | 32 lines Improved frequency calibration Measure check box added to FreqCal mode, check to record to fmt.all with current calibration correction disabled, uncheck to see the impact of the current calibration parameters. The fmt.all file is now optionally renamed to fmt.bak when a calibration solution is accepted. This allows users to preserve an fmt.all file that they might have edited for best fit. A calibration procedure might proceed thus:- 1) select FreqCal mode, 2) step through suggested calibration test frequencies deleting those that have no usable signal, 3) enable "Menu->Tools->Execute frequency calibration cycle" and check that suitable signals are present, 4) select a suitable FTol and T/R period, 5) check "Measure" and let the cycle complete a few times to gather data, 6) uncheck "Measure" to complete the data capture, optionally tidy the fmt.all file with your favourite editor, 7) push "Menu->Tools->Solve for calibration parameters" and accept if you like what you see, 8) sit back and admire your accurately frequency calibrated station. ------------------------------------------------------------------------ r8168 | bsomervi | 2017-10-13 23:34:36 +0100 (Fri, 13 Oct 2017) | 4 lines Generic handling of keyboard modifiers via UDP and double-clicks This change opens up all keyboard modifier options to UDP Reply messages as well as double-clicks of decoded messages. ------------------------------------------------------------------------ r8169 | bsomervi | 2017-10-13 23:34:48 +0100 (Fri, 13 Oct 2017) | 3 lines User guide updates for frequency calibration mode Also some instances of non-italicized WSJT-X fixed. ------------------------------------------------------------------------ r8170 | k9an | 2017-10-14 02:02:38 +0100 (Sat, 14 Oct 2017) | 1 line Don't open the false_decodes.txt file. ------------------------------------------------------------------------ git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.8@8171 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
1716 lines
51 KiB
CMake
1716 lines
51 KiB
CMake
cmake_minimum_required (VERSION 2.8.10 FATAL_ERROR)
|
||
|
||
if (APPLE)
|
||
#
|
||
# The following variables define the portability and compatability attributes of the Mac OS X build
|
||
# they are choosen with care and should not be changed without good cause.
|
||
#
|
||
# Among other things these options are chosen to match the portability and compatability options of the
|
||
# Qt framework dylibs which can be checked as follows:
|
||
#
|
||
# otool -l <binary> | grep -A3 LC_VERSION_MIN_MACOSX
|
||
#
|
||
set (CMAKE_OSX_DEPLOYMENT_TARGET 10.9
|
||
CACHE STRING "Earliest version of OS X supported
|
||
|
||
Earliest version we can support with Qt 5.8, C++11 & libc++ is 10.9.
|
||
Do not override this if you intend to build an official deployable installer.")
|
||
set (CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
|
||
CACHE STRING "Mac OS X SDK to build with
|
||
|
||
Change this to the newest SDK available that you can install on your system (10.11 preferred).
|
||
Do not override this if you intend to build an official deployable installer.")
|
||
endif (APPLE)
|
||
|
||
project (wsjtx C CXX Fortran)
|
||
|
||
#
|
||
# CMake policies
|
||
#
|
||
if (POLICY CMP0020)
|
||
cmake_policy (SET CMP0020 NEW) # link to Qt winmain on Windows
|
||
endif (POLICY CMP0020)
|
||
|
||
if (POLICY CMP0043)
|
||
cmake_policy (SET CMP0043 NEW) # ignore COMPILE_DEFINITIONS_<CONFIG>
|
||
endif (POLICY CMP0043)
|
||
|
||
if (POLICY CMP0063)
|
||
cmake_policy (SET CMP0063 NEW) # honour visibility properties for all library types
|
||
endif (POLICY CMP0063)
|
||
|
||
include (${PROJECT_SOURCE_DIR}/CMake/VersionCompute.cmake)
|
||
message (STATUS "Building ${CMAKE_PROJECT_NAME}-${wsjtx_VERSION}")
|
||
|
||
#
|
||
# project information
|
||
#
|
||
set (PROJECT_NAME "WSJT-X")
|
||
set (PROJECT_VENDOR "Joe Taylor, K1JT")
|
||
set (PROJECT_CONTACT "Joe Taylor <k1jt@arrl.net>")
|
||
set (PROJECT_COPYRIGHT "Copyright (C) 2001-2017 by Joe Taylor, K1JT")
|
||
set (PROJECT_HOMEPAGE http://www.physics.princeton.edu/pulsar/K1JT/wsjtx.html)
|
||
set (PROJECT_MANUAL wsjtx-main)
|
||
set (PROJECT_MANUAL_DIRECTORY_URL http://www.physics.princeton.edu/pulsar/K1JT/wsjtx-doc/)
|
||
set (PROJECT_SAMPLES_URL http://downloads.sourceforge.net/project/wsjt/)
|
||
set (PROJECT_SAMPLES_UPLOAD_DEST frs.sourceforge.net:/home/frs/project/wsjt/)
|
||
set (PROJECT_SUMMARY_DESCRIPTION "${PROJECT_NAME} - Digital Modes for Weak Signal Communicaitons in Amateur Radio.")
|
||
set (PROJECT_DESCRIPTION "${PROJECT_SUMMARY_DESCRIPTION}
|
||
${PROJECT_NAME} is a computer program designed to facilitate basic amateur
|
||
radio communication using very weak signals. The first four letters in
|
||
the program name stand for `(W)eak (S)ignal communication by
|
||
K1(JT),` while the suffix `-X` indicates that ${PROJECT_NAME} started as
|
||
an extended and experimental branch of the program
|
||
WSJT.
|
||
.
|
||
${PROJECT_NAME} Version 1.8 offers nine different protocols or modes: FT8,
|
||
JT4, JT9, JT65, QRA64, ISCAT, MSK144, WSPR, and Echo.
|
||
The first five are designed for making reliable QSOs under extreme
|
||
weak-signal conditions. They use nearly identical message structure
|
||
and source encoding. JT65 and QRA64 were designed for EME
|
||
(`moonbounce`) on the VHF/UHF bands and have also proven very
|
||
effective for worldwide QRP communication on the HF bands. QRA64 has
|
||
a number of advantages over JT65, including better performance on the
|
||
very weakest signals. We imagine that over time it may replace JT65
|
||
for EME use. JT9 was originally designed for the LF, MF, and lower HF
|
||
bands. Its submode JT9A is 2 dB more sensitive than JT65 while using
|
||
less than 10% of the bandwidth. JT4 offers a wide variety of tone
|
||
spacings and has proven highly effective for EME on microwave bands up
|
||
to 24 GHz. These four `slow` modes use one-minute timed sequences
|
||
of alternating transmission and reception, so a minimal QSO takes four
|
||
to six minutes — two or three transmissions by each station, one
|
||
sending in odd UTC minutes and the other even. FT8 is operationally
|
||
similar but four times faster (15-second T/R sequences) and less
|
||
sensitive by a few dB. On the HF bands, world-wide QSOs are possible
|
||
with any of these modes using power levels of a few watts (or even
|
||
milliwatts) and compromise antennas. On VHF bands and higher, QSOs
|
||
are possible (by EME and other propagation types) at signal levels 10
|
||
to 15 dB below those required for CW.
|
||
.
|
||
ISCAT, MSK144, and optionally submodes JT9E-H are `fast`
|
||
protocols designed to take advantage of brief signal enhancements from
|
||
ionized meteor trails, aircraft scatter, and other types of scatter
|
||
propagation. These modes use timed sequences of 5, 10, 15, or 30 s
|
||
duration. User messages are transmitted repeatedly at high rate (up
|
||
to 250 characters per second, for MSK144) to make good use of the
|
||
shortest meteor-trail reflections or `pings`. ISCAT uses free-form
|
||
messages up to 28 characters long, while MSK144 uses the same
|
||
structured messages as the slow modes and optionally an abbreviated
|
||
format with hashed callsigns.
|
||
.
|
||
WSPR (pronounced `whisper`) stands for (W)eak (S)ignal
|
||
(P)ropagation (R)eporter. The WSPR protocol was designed for probing
|
||
potential propagation paths using low-power transmissions. WSPR
|
||
messages normally carry the transmitting station’s callsign, grid
|
||
locator, and transmitter power in dBm, and they can be decoded at
|
||
signal-to-noise ratios as low as -28 dB in a 2500 Hz bandwidth. WSPR
|
||
users with internet access can automatically upload reception
|
||
reports to a central database called wsprnet that provides a mapping
|
||
facility, archival storage, and many other features.
|
||
.
|
||
Echo mode allows you to detect and measure your own station's echoes
|
||
from the moon, even if they are far below the audible threshold.
|
||
.
|
||
${PROJECT_NAME} provides spectral displays for receiver passbands as wide as
|
||
5 kHz, flexible rig control for nearly all modern radios used by
|
||
amateurs, and a wide variety of special aids such as automatic Doppler
|
||
tracking for EME QSOs and Echo testing. The program runs equally well
|
||
on Windows, Macintosh, and Linux systems, and installation packages
|
||
are available for all three platforms.
|
||
.
|
||
Be sure to read the online ${PROJECT_NAME} User's Guide.")
|
||
|
||
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/Modules ${CMAKE_MODULE_PATH})
|
||
|
||
# make sure that the default configuration is a RELEASE
|
||
if (NOT CMAKE_BUILD_TYPE)
|
||
set (CMAKE_BUILD_TYPE RELEASE CACHE STRING
|
||
"Choose the type of build, options are: None Debug Release."
|
||
FORCE)
|
||
endif (NOT CMAKE_BUILD_TYPE)
|
||
if (CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]")
|
||
set (is_debug_build 1)
|
||
endif ()
|
||
|
||
|
||
#
|
||
# Options & features
|
||
#
|
||
# Some of these directly effect compilation by being defined in
|
||
# wsjtx_config.h.in which makes them available to the C/C++
|
||
# pre-processor.
|
||
#
|
||
include (CMakeDependentOption)
|
||
|
||
# Allow the developer to select if Dynamic or Static libraries are built
|
||
OPTION (BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
|
||
# Set the LIB_TYPE variable to STATIC
|
||
SET (LIB_TYPE STATIC)
|
||
if (BUILD_SHARED_LIBS)
|
||
# User wants to build Dynamic Libraries, so change the LIB_TYPE variable to CMake keyword 'SHARED'
|
||
set (LIB_TYPE SHARED)
|
||
endif (BUILD_SHARED_LIBS)
|
||
|
||
option (UPDATE_TRANSLATIONS "Update source translation translations/*.ts
|
||
files (WARNING: make clean will delete the source .ts files! Danger!)")
|
||
option (WSJT_SHARED_RUNTIME "Debugging option that allows running from a shared Cloud directory.")
|
||
option (WSJT_QDEBUG_TO_FILE "Redirect Qt debuging messages to a trace file.")
|
||
option (WSJT_TRACE_CAT "Debugging option that turns on CAT diagnostics.")
|
||
option (WSJT_TRACE_CAT_POLLS "Debugging option that turns on CAT diagnostics during polling.")
|
||
option (WSJT_HAMLIB_TRACE "Debugging option that turns on minimal Hamlib internal diagnostics.")
|
||
option (WSJT_SOFT_KEYING "Apply a ramp to CW keying envelope to reduce transients." ON)
|
||
option (WSJT_SKIP_MANPAGES "Skip *nix manpage generation.")
|
||
option (WSJT_GENERATE_DOCS "Generate documentation files." ON)
|
||
option (WSJT_RIG_NONE_CAN_SPLIT "Allow split operation with \"None\" as rig.")
|
||
|
||
CMAKE_DEPENDENT_OPTION (WSJT_HAMLIB_VERBOSE_TRACE "Debugging option that turns on full Hamlib internal diagnostics." OFF WSJT_HAMLIB_TRACE OFF)
|
||
CMAKE_DEPENDENT_OPTION (WSJT_QDEBUG_IN_RELEASE "Leave Qt debugging statements in Release configuration." OFF
|
||
"NOT is_debug_build" OFF)
|
||
CMAKE_DEPENDENT_OPTION (WSJT_ENABLE_EXPERIMENTAL_FEATURES "Enable features not fully ready for public releases." ON
|
||
is_debug_build OFF)
|
||
CMAKE_DEPENDENT_OPTION (WSJT_CREATE_WINMAIN
|
||
"The wsjtx target is normally built as GUI executable with a WinMain entry point on Windows,
|
||
if you want a console application instead then set this option to OFF.
|
||
|
||
If you just want to see the debug output from the application then the easiest way is to
|
||
attach a debugger which will then receive the console output inside its console." ON
|
||
"WIN32" OFF)
|
||
|
||
|
||
set (PROJECT_ARCHITECTURE "${CMAKE_SYSTEM_PROCESSOR}")
|
||
if (NOT PROJECT_ARCHITECTURE)
|
||
# This is supposed to happen already on Windows
|
||
set (PROJECT_ARCHITECTURE "$ENV{PROCESSOR_ARCHITECTURE}")
|
||
endif (NOT PROJECT_ARCHITECTURE)
|
||
message (STATUS "******************************************************")
|
||
message (STATUS "Building for for: ${CMAKE_SYSTEM_NAME}-${PROJECT_ARCHITECTURE}")
|
||
message (STATUS "******************************************************")
|
||
|
||
|
||
#
|
||
# install locations
|
||
#
|
||
|
||
if (APPLE)
|
||
set (CMAKE_INSTALL_BINDIR ${CMAKE_PROJECT_NAME}.app/Contents/MacOS)
|
||
set (CMAKE_INSTALL_DATAROOTDIR ${CMAKE_PROJECT_NAME}.app/Contents/Resources)
|
||
endif ()
|
||
|
||
include (GNUInstallDirs)
|
||
|
||
set (PLUGIN_DESTINATION ${CMAKE_INSTALL_LIBDIR}/plugins)
|
||
set (QT_CONF_DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||
if (WIN32)
|
||
set (PLUGIN_DESTINATION plugins)
|
||
elseif (APPLE)
|
||
set (PLUGIN_DESTINATION ${CMAKE_INSTALL_BINDIR}/../PlugIns)
|
||
set (QT_CONF_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR})
|
||
endif ()
|
||
|
||
set (WSJT_PLUGIN_DESTINATION ${PLUGIN_DESTINATION} CACHE PATH "Path for plugins")
|
||
set (WSJT_QT_CONF_DESTINATION ${QT_CONF_DESTINATION} CACHE PATH "Path for the qt.conf file")
|
||
|
||
|
||
#
|
||
# Project sources
|
||
#
|
||
set (wsjt_qt_CXXSRCS
|
||
qt_helpers.cpp
|
||
MessageBox.cpp
|
||
MetaDataRegistry.cpp
|
||
NetworkServerLookup.cpp
|
||
revision_utils.cpp
|
||
WFPalette.cpp
|
||
Radio.cpp
|
||
RadioMetaType.cpp
|
||
IARURegions.cpp
|
||
Bands.cpp
|
||
Modes.cpp
|
||
FrequencyList.cpp
|
||
StationList.cpp
|
||
FrequencyLineEdit.cpp
|
||
CandidateKeyFilter.cpp
|
||
ForeignKeyDelegate.cpp
|
||
LiveFrequencyValidator.cpp
|
||
GetUserId.cpp
|
||
TraceFile.cpp
|
||
AudioDevice.cpp
|
||
Transceiver.cpp
|
||
TransceiverBase.cpp
|
||
EmulateSplitTransceiver.cpp
|
||
TransceiverFactory.cpp
|
||
PollingTransceiver.cpp
|
||
HamlibTransceiver.cpp
|
||
HRDTransceiver.cpp
|
||
DXLabSuiteCommanderTransceiver.cpp
|
||
NetworkMessage.cpp
|
||
MessageClient.cpp
|
||
LettersSpinBox.cpp
|
||
HintedSpinBox.cpp
|
||
RestrictedSpinBox.cpp
|
||
HelpTextWindow.cpp
|
||
SampleDownloader.cpp
|
||
SampleDownloader/DirectoryDelegate.cpp
|
||
SampleDownloader/Directory.cpp
|
||
SampleDownloader/FileNode.cpp
|
||
SampleDownloader/RemoteFile.cpp
|
||
DisplayManual.cpp
|
||
MultiSettings.cpp
|
||
MaidenheadLocatorValidator.cpp
|
||
CallsignValidator.cpp
|
||
SplashScreen.cpp
|
||
EqualizationToolsDialog.cpp
|
||
DoubleClickablePushButton.cpp
|
||
DoubleClickableRadioButton.cpp
|
||
)
|
||
|
||
set (wsjt_qtmm_CXXSRCS
|
||
Audio/BWFFile.cpp
|
||
)
|
||
|
||
set (jt9_FSRCS
|
||
lib/jt9.f90
|
||
lib/jt9a.f90
|
||
)
|
||
|
||
set (jt9_CXXSRCS
|
||
lib/ipcomm.cpp
|
||
)
|
||
|
||
set (wsjtx_CXXSRCS
|
||
logbook/adif.cpp
|
||
logbook/countrydat.cpp
|
||
logbook/countriesworked.cpp
|
||
logbook/logbook.cpp
|
||
psk_reporter.cpp
|
||
Modulator.cpp
|
||
Detector.cpp
|
||
logqso.cpp
|
||
displaytext.cpp
|
||
decodedtext.cpp
|
||
getfile.cpp
|
||
soundout.cpp
|
||
soundin.cpp
|
||
meterwidget.cpp
|
||
signalmeter.cpp
|
||
plotter.cpp
|
||
widegraph.cpp
|
||
echograph.cpp
|
||
echoplot.cpp
|
||
fastgraph.cpp
|
||
fastplot.cpp
|
||
about.cpp
|
||
astro.cpp
|
||
messageaveraging.cpp
|
||
WsprTxScheduler.cpp
|
||
mainwindow.cpp
|
||
Configuration.cpp
|
||
main.cpp
|
||
wsprnet.cpp
|
||
WSPRBandHopping.cpp
|
||
)
|
||
|
||
set (wsjt_CXXSRCS
|
||
lib/crc10.cpp
|
||
lib/crc12.cpp
|
||
)
|
||
# deal with a GCC v6 UB error message
|
||
set_source_files_properties (
|
||
lib/crc10.cpp
|
||
lib/crc12.cpp
|
||
PROPERTIES COMPILE_FLAGS -fpermissive)
|
||
|
||
if (WIN32)
|
||
set (wsjt_CXXSRCS
|
||
${wsjt_CXXSRCS}
|
||
killbyname.cpp
|
||
)
|
||
|
||
set (wsjt_qt_CXXSRCS
|
||
${wsjt_qt_CXXSRCS}
|
||
OmniRigTransceiver.cpp
|
||
)
|
||
endif (WIN32)
|
||
|
||
set (wsjt_FSRCS
|
||
# put module sources first in the hope that they get rebuilt before use
|
||
lib/crc.f90
|
||
lib/fftw3mod.f90
|
||
lib/hashing.f90
|
||
lib/iso_c_utilities.f90
|
||
lib/jt4.f90
|
||
lib/jt4_decode.f90
|
||
lib/jt65_decode.f90
|
||
lib/jt65_mod.f90
|
||
lib/ft8_decode.f90
|
||
lib/jt9_decode.f90
|
||
lib/options.f90
|
||
lib/packjt.f90
|
||
lib/readwav.f90
|
||
lib/timer_C_wrapper.f90
|
||
lib/timer_impl.f90
|
||
lib/timer_module.f90
|
||
lib/wavhdr.f90
|
||
|
||
# remaining non-module sources
|
||
lib/addit.f90
|
||
lib/afc65b.f90
|
||
lib/afc9.f90
|
||
lib/ana64.f90
|
||
lib/ana932.f90
|
||
lib/analytic.f90
|
||
lib/astro.f90
|
||
lib/astrosub.f90
|
||
lib/astro0.f90
|
||
lib/avecho.f90
|
||
lib/averms.f90
|
||
lib/azdist.f90
|
||
lib/badmsg.f90
|
||
lib/fsk4hf/baseline.f90
|
||
lib/bpdecode40.f90
|
||
lib/bpdecode144.f90
|
||
lib/fsk4hf/bpdecode120.f90
|
||
lib/fsk4hf/bpdecode168.f90
|
||
lib/fsk4hf/bpdecode174.f90
|
||
lib/fsk4hf/bpdecode300.f90
|
||
lib/baddata.f90
|
||
lib/calibrate.f90
|
||
lib/ccf2.f90
|
||
lib/ccf65.f90
|
||
lib/fsk4hf/chkcrc10.f90
|
||
lib/fsk4hf/chkcrc12.f90
|
||
lib/fsk4hf/chkcrc12a.f90
|
||
lib/chkcall.f90
|
||
lib/chkhist.f90
|
||
lib/chkmsg.f90
|
||
lib/chkss2.f90
|
||
lib/coord.f90
|
||
lib/fsk4hf/cpolyfit.f90
|
||
lib/fsk4hf/cpolyfitw.f90
|
||
lib/db.f90
|
||
lib/decode4.f90
|
||
lib/decode65a.f90
|
||
lib/decode65b.f90
|
||
lib/decode9w.f90
|
||
lib/decoder.f90
|
||
lib/deep4.f90
|
||
lib/deg2grid.f90
|
||
lib/degrade_snr.f90
|
||
lib/demod64a.f90
|
||
lib/determ.f90
|
||
lib/downsam9.f90
|
||
lib/encode232.f90
|
||
lib/encode4.f90
|
||
lib/encode_msk40.f90
|
||
lib/encode_msk144.f90
|
||
lib/fsk4hf/encode120.f90
|
||
lib/fsk4hf/encode168.f90
|
||
lib/fsk4hf/encode174.f90
|
||
lib/fsk4hf/encode300.f90
|
||
lib/entail.f90
|
||
lib/ephem.f90
|
||
lib/extract.f90
|
||
lib/extract4.f90
|
||
lib/extractmessage144.f90
|
||
lib/fsk4hf/extractmessage168.f90
|
||
lib/fsk4hf/extractmessage174.f90
|
||
lib/fano232.f90
|
||
lib/fast9.f90
|
||
lib/fast_decode.f90
|
||
lib/fchisq.f90
|
||
lib/fchisq0.f90
|
||
lib/fchisq65.f90
|
||
lib/fil3.f90
|
||
lib/fil3c.f90
|
||
lib/fil4.f90
|
||
lib/fil6521.f90
|
||
lib/filbig.f90
|
||
lib/fitcal.f90
|
||
lib/fix_contest_msg.f90
|
||
lib/flat1.f90
|
||
lib/flat1a.f90
|
||
lib/flat1b.f90
|
||
lib/flat2.f90
|
||
lib/flat4.f90
|
||
lib/flat65.f90
|
||
lib/fmtmsg.f90
|
||
lib/foldspec9f.f90
|
||
lib/four2a.f90
|
||
lib/fqso_first.f90
|
||
lib/freqcal.f90
|
||
lib/fsk4hf/fsk4hf.f90
|
||
lib/fsk4hf/ft8apset.f90
|
||
lib/fsk4hf/ft8b.f90
|
||
lib/fsk4hf/ft8_downsample.f90
|
||
lib/fsk4hf/ft8sim.f90
|
||
lib/gen4.f90
|
||
lib/gen65.f90
|
||
lib/gen9.f90
|
||
lib/geniscat.f90
|
||
lib/fsk4hf/genfsk4hf.f90
|
||
lib/fsk4hf/genft8.f90
|
||
lib/genmsk144.f90
|
||
lib/genmsk40.f90
|
||
lib/fsk4hf/genmskhf.f90
|
||
lib/fsk4hf/genwsprlf.f90
|
||
lib/fsk4hf/genwspr_fsk8.f90
|
||
lib/fsk4hf/getfc1.f90
|
||
lib/fsk4hf/getfc2.f90
|
||
lib/fsk4hf/getfc1w.f90
|
||
lib/fsk4hf/getfc2w.f90
|
||
lib/genqra64.f90
|
||
lib/fsk4hf/genft8refsig.f90
|
||
lib/genwspr.f90
|
||
lib/geodist.f90
|
||
lib/getlags.f90
|
||
lib/getmet4.f90
|
||
lib/graycode.f90
|
||
lib/graycode65.f90
|
||
lib/grayline.f90
|
||
lib/grid2deg.f90
|
||
lib/hash.f90
|
||
lib/hint65.f90
|
||
lib/hspec.f90
|
||
lib/indexx.f90
|
||
lib/init_random_seed.f90
|
||
lib/interleave4.f90
|
||
lib/interleave63.f90
|
||
lib/interleave9.f90
|
||
lib/inter_wspr.f90
|
||
lib/iscat.f90
|
||
lib/jplsubs.f
|
||
lib/jt9fano.f90
|
||
lib/jtmsg.f90
|
||
lib/ldpcsim144.f90
|
||
lib/fsk4hf/ldpcsim120.f90
|
||
lib/fsk4hf/ldpcsim168.f90
|
||
lib/fsk4hf/ldpcsim174.f90
|
||
lib/fsk4hf/ldpcsim300.f90
|
||
lib/ldpcsim40.f90
|
||
lib/libration.f90
|
||
lib/lorentzian.f90
|
||
lib/lpf1.f90
|
||
lib/mixlpf.f90
|
||
lib/makepings.f90
|
||
lib/moondopjpl.f90
|
||
lib/morse.f90
|
||
lib/move.f90
|
||
lib/msk144d2.f90
|
||
lib/msk40decodeframe.f90
|
||
lib/msk144decodeframe.f90
|
||
lib/msk144sd.f90
|
||
lib/msk40spd.f90
|
||
lib/msk144spd.f90
|
||
lib/msk40sync.f90
|
||
lib/msk144sync.f90
|
||
lib/msk40_freq_search.f90
|
||
lib/msk144_freq_search.f90
|
||
lib/mskrtd.f90
|
||
lib/msk144signalquality.f90
|
||
lib/msk144sim.f90
|
||
lib/fsk4hf/mskhfsim.f90
|
||
lib/mskrtd.f90
|
||
lib/fsk4hf/msksoftsym.f90
|
||
lib/fsk4hf/msksoftsymw.f90
|
||
lib/fsk4hf/osd174.f90
|
||
lib/fsk4hf/osd300.f90
|
||
lib/pctile.f90
|
||
lib/peakdt9.f90
|
||
lib/peakup.f90
|
||
lib/polyfit.f90
|
||
lib/fsk4hf/polyfit4.f90
|
||
lib/prog_args.f90
|
||
lib/ps4.f90
|
||
lib/qra64a.f90
|
||
lib/refspectrum.f90
|
||
lib/savec2.f90
|
||
lib/sec_midn.f90
|
||
lib/setup65.f90
|
||
lib/sh65.f90
|
||
lib/sh65snr.f90
|
||
lib/slasubs.f
|
||
lib/sleep_msec.f90
|
||
lib/slope.f90
|
||
lib/smo.f90
|
||
lib/smo121.f90
|
||
lib/softsym.f90
|
||
lib/softsym9f.f90
|
||
lib/softsym9w.f90
|
||
lib/shell.f90
|
||
lib/fsk4hf/spec4.f90
|
||
lib/spec64.f90
|
||
lib/fsk4hf/spec8.f90
|
||
lib/spec9f.f90
|
||
lib/stdmsg.f90
|
||
lib/subtract65.f90
|
||
lib/fsk4hf/subtractft8.f90
|
||
lib/sun.f90
|
||
lib/symspec.f90
|
||
lib/symspec2.f90
|
||
lib/symspec65.f90
|
||
lib/sync4.f90
|
||
lib/sync64.f90
|
||
lib/sync65.f90
|
||
lib/fsk4hf/sync8.f90
|
||
lib/fsk4hf/sync8d.f90
|
||
lib/sync9.f90
|
||
lib/sync9f.f90
|
||
lib/sync9w.f90
|
||
lib/synciscat.f90
|
||
lib/timf2.f90
|
||
lib/to_contest_msg.f90
|
||
lib/tweak1.f90
|
||
lib/twkfreq.f90
|
||
lib/fsk4hf/twkfreq1.f90
|
||
lib/twkfreq65.f90
|
||
lib/unpackmsg144.f90
|
||
lib/update_recent_calls.f90
|
||
lib/update_hasharray.f90
|
||
lib/fsk4hf/watterson.f90
|
||
lib/wav11.f90
|
||
lib/wav12.f90
|
||
lib/xcor.f90
|
||
lib/xcor4.f90
|
||
lib/wqdecode.f90
|
||
lib/wqencode.f90
|
||
lib/fsk4hf/wspr_fsk8d.f90
|
||
lib/fsk4hf/wspr_fsk8_sim.f90
|
||
lib/fsk4hf/wspr_fsk8_wav.f90
|
||
lib/fsk4hf/wspr_fsk8_downsample.f90
|
||
lib/fsk4hf/wsprlfsim.f90
|
||
lib/wspr_downsample.f90
|
||
lib/zplot9.f90
|
||
)
|
||
|
||
set (ka9q_CSRCS
|
||
lib/ftrsd/decode_rs.c
|
||
lib/ftrsd/encode_rs.c
|
||
lib/ftrsd/init_rs.c
|
||
)
|
||
set_source_files_properties (${ka9q_CSRCS} PROPERTIES COMPILE_FLAGS -Wno-sign-compare)
|
||
|
||
set (qra_CSRCS
|
||
lib/qra/qra64/qra64.c
|
||
lib/qra/qra64/qra64_subs.c
|
||
lib/qra/qracodes/npfwht.c
|
||
lib/qra/qracodes/pdmath.c
|
||
lib/qra/qracodes/qra12_63_64_irr_b.c
|
||
lib/qra/qracodes/qra13_64_64_irr_e.c
|
||
lib/qra/qracodes/qracodes.c
|
||
lib/qra/qracodes/normrnd.c
|
||
)
|
||
|
||
set (wsjt_CSRCS
|
||
${ka9q_CSRCS}
|
||
lib/ftrsd/ftrsd2.c
|
||
lib/sgran.c
|
||
lib/golay24_table.c
|
||
lib/gran.c
|
||
lib/igray.c
|
||
lib/init_random_seed.c
|
||
lib/ldpc32_table.c
|
||
lib/wsprd/nhash.c
|
||
lib/tab.c
|
||
lib/tmoonsub.c
|
||
lib/usleep.c
|
||
lib/vit213.c
|
||
lib/wisdom.c
|
||
lib/wrapkarn.c
|
||
${ldpc_CSRCS}
|
||
${qra_CSRCS}
|
||
)
|
||
|
||
set (wsjt_qt_UISRCS
|
||
wf_palette_design_dialog.ui
|
||
)
|
||
|
||
set (wsprsim_CSRCS
|
||
lib/wsprd/wsprsim.c
|
||
lib/wsprd/wsprsim_utils.c
|
||
lib/wsprd/wsprd_utils.c
|
||
lib/wsprd/fano.c
|
||
lib/wsprd/tab.c
|
||
lib/wsprd/nhash.c
|
||
)
|
||
|
||
set (wsprd_CSRCS
|
||
lib/wsprd/wsprd.c
|
||
lib/wsprd/wsprsim_utils.c
|
||
lib/wsprd/wsprd_utils.c
|
||
lib/wsprd/fano.c
|
||
lib/wsprd/jelinek.c
|
||
lib/wsprd/tab.c
|
||
lib/wsprd/nhash.c
|
||
lib/init_random_seed.c
|
||
)
|
||
|
||
set (wsjtx_UISRCS
|
||
mainwindow.ui
|
||
about.ui
|
||
astro.ui
|
||
echograph.ui
|
||
fastgraph.ui
|
||
messageaveraging.ui
|
||
widegraph.ui
|
||
logqso.ui
|
||
Configuration.ui
|
||
)
|
||
|
||
set (UDP_library_CXXSRCS
|
||
Radio.cpp
|
||
RadioMetaType.cpp
|
||
NetworkMessage.cpp
|
||
MessageServer.cpp
|
||
)
|
||
|
||
set (UDP_library_HEADERS
|
||
Radio.hpp
|
||
MessageServer.hpp
|
||
${PROJECT_BINARY_DIR}/udp_export.h
|
||
)
|
||
|
||
set (message_aggregator_CXXSRCS
|
||
UDPExamples/MessageAggregator.cpp
|
||
UDPExamples/MessageAggregatorMainWindow.cpp
|
||
UDPExamples/DecodesModel.cpp
|
||
UDPExamples/BeaconsModel.cpp
|
||
UDPExamples/ClientWidget.cpp
|
||
)
|
||
|
||
set (message_aggregator_STYLESHEETS
|
||
UDPExamples/qss/default.qss
|
||
)
|
||
|
||
set (qcp_CXXSRCS
|
||
qcustomplot-source/qcustomplot.cpp
|
||
)
|
||
|
||
set (all_CXXSRCS
|
||
${wsjt_CXXSRCS}
|
||
${wsjt_qt_CXXSRCS}
|
||
${wsjt_qtmm_CXXSRCS}
|
||
${jt9_CXXSRCS}
|
||
${wsjtx_CXXSRCS}
|
||
${qcp_CXXSRCS}
|
||
)
|
||
|
||
set (all_C_and_CXXSRCS
|
||
${wsjt_CSRCS}
|
||
${wsprsim_CSRCS}
|
||
${wsprd_CSRCS}
|
||
${all_CXXSRCS}
|
||
)
|
||
|
||
set (TOP_LEVEL_RESOURCES
|
||
shortcuts.txt
|
||
mouse_commands.txt
|
||
prefixes.txt
|
||
cty.dat
|
||
icons/Darwin/wsjtx.iconset/icon_128x128.png
|
||
contrib/gpl-v3-logo.svg
|
||
artwork/splash.png
|
||
)
|
||
|
||
set (PALETTE_FILES
|
||
Palettes/Banana.pal
|
||
Palettes/Blue1.pal
|
||
Palettes/Blue2.pal
|
||
Palettes/Blue3.pal
|
||
Palettes/Brown.pal
|
||
Palettes/Cyan1.pal
|
||
Palettes/Cyan2.pal
|
||
Palettes/Cyan3.pal
|
||
Palettes/Default.pal
|
||
Palettes/Digipan.pal
|
||
Palettes/Fldigi.pal
|
||
Palettes/Gray1.pal
|
||
Palettes/Gray2.pal
|
||
Palettes/Green1.pal
|
||
Palettes/Green2.pal
|
||
Palettes/Jungle.pal
|
||
Palettes/Linrad.pal
|
||
Palettes/Negative.pal
|
||
Palettes/Orange.pal
|
||
Palettes/Pink.pal
|
||
Palettes/Rainbow.pal
|
||
Palettes/Scope.pal
|
||
Palettes/Sunburst.pal
|
||
Palettes/VK4BDJ.pal
|
||
Palettes/YL2KF.pal
|
||
Palettes/Yellow1.pal
|
||
Palettes/Yellow2.pal
|
||
Palettes/ZL1FZ.pal
|
||
)
|
||
|
||
if (APPLE)
|
||
set (WSJTX_ICON_FILE ${CMAKE_PROJECT_NAME}.icns)
|
||
set (ICONSRCS
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_16x16.png
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_16x16@2x.png
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_32x32.png
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_32x32@2x.png
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_128x128.png
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_128x128@2x.png
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_256x256.png
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_256x256@2x.png
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_512x512.png
|
||
icons/Darwin/${CMAKE_PROJECT_NAME}.iconset/icon_512x512@2x.png
|
||
)
|
||
add_custom_command (
|
||
OUTPUT ${WSJTX_ICON_FILE}
|
||
COMMAND iconutil -c icns --output "${CMAKE_BINARY_DIR}/${WSJTX_ICON_FILE}" "${CMAKE_SOURCE_DIR}/icons/Darwin/${CMAKE_PROJECT_NAME}.iconset"
|
||
DEPENDS ${ICONSRCS}
|
||
COMMENT "Building Icons"
|
||
)
|
||
endif (APPLE)
|
||
|
||
set_source_files_properties (${WSJTX_ICON_FILE} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||
|
||
if (WSJT_QDEBUG_IN_RELEASE)
|
||
# context info in Qt message handler in release configuration
|
||
set_property (DIRECTORY APPEND PROPERTY
|
||
COMPILE_DEFINITIONS $<$<NOT:$<CONFIG:Debug>>:QT_MESSAGELOGCONTEXT>
|
||
)
|
||
else (WSJT_QDEBUG_IN_RELEASE)
|
||
# disable Qt trace and warning messages from release configurations
|
||
set_property (DIRECTORY APPEND PROPERTY
|
||
COMPILE_DEFINITIONS $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG_OUTPUT;QT_NO_WARNING_OUTPUT>
|
||
)
|
||
endif (WSJT_QDEBUG_IN_RELEASE)
|
||
|
||
set_property (SOURCE ${all_C_and_CXXSRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -include wsjtx_config.h")
|
||
set_property (SOURCE ${all_C_and_CXXSRCS} APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/wsjtx_config.h)
|
||
|
||
if (WIN32)
|
||
# generate the OmniRig COM interface source
|
||
find_program (DUMPCPP dumpcpp)
|
||
if (DUMPCPP-NOTFOUND)
|
||
message (FATAL_ERROR "dumpcpp tool not found")
|
||
endif (DUMPCPP-NOTFOUND)
|
||
execute_process (
|
||
COMMAND ${DUMPCPP} -getfile {4FE359C5-A58F-459D-BE95-CA559FB4F270}
|
||
OUTPUT_VARIABLE AXSERVER
|
||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
)
|
||
string (STRIP "${AXSERVER}" AXSERVER)
|
||
if (NOT AXSERVER)
|
||
message (FATAL_ERROR "You need to install OmniRig on this computer")
|
||
endif (NOT AXSERVER)
|
||
string (REPLACE "\"" "" AXSERVER ${AXSERVER})
|
||
file (TO_CMAKE_PATH ${AXSERVER} AXSERVERSRCS)
|
||
endif (WIN32)
|
||
|
||
|
||
#
|
||
# decide on platform specifc packing and fixing up
|
||
#
|
||
if (APPLE)
|
||
set (WSJTX_BUNDLE_VERSION ${wsjtx_VERSION})
|
||
|
||
# make sure CMAKE_INSTALL_PREFIX ends in /
|
||
string (LENGTH "${CMAKE_INSTALL_PREFIX}" LEN)
|
||
math (EXPR LEN "${LEN} -1" )
|
||
string (SUBSTRING "${CMAKE_INSTALL_PREFIX}" ${LEN} 1 ENDCH)
|
||
if (NOT "${ENDCH}" STREQUAL "/")
|
||
set (CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/")
|
||
endif ()
|
||
endif (APPLE)
|
||
|
||
|
||
#
|
||
# find some useful tools
|
||
#
|
||
find_program(CTAGS ctags)
|
||
find_program(ETAGS etags)
|
||
|
||
#
|
||
# Boost
|
||
#
|
||
set (Boost_NO_SYSTEM_PATHS TRUE)
|
||
if (Boost_NO_SYSTEM_PATHS)
|
||
set (BOOST_ROOT ${PROJECT_SOURCE_DIR}/boost)
|
||
endif ()
|
||
find_package (Boost 1.63 REQUIRED)
|
||
if (Boost_FOUND)
|
||
include_directories (${Boost_INCLUDE_DIRS})
|
||
endif ()
|
||
|
||
#
|
||
# OpenMP
|
||
#
|
||
find_package (OpenMP)
|
||
|
||
#
|
||
# fftw3 single precision library
|
||
#
|
||
find_package (FFTW3 COMPONENTS double single threads REQUIRED)
|
||
|
||
#
|
||
# libhamlib setup
|
||
#
|
||
set (hamlib_STATIC 1)
|
||
find_package (hamlib 3 REQUIRED)
|
||
find_program (RIGCTL_EXE rigctl)
|
||
find_program (RIGCTLD_EXE rigctld)
|
||
|
||
message (STATUS "hamlib_INCLUDE_DIRS: ${hamlib_INCLUDE_DIRS}")
|
||
message (STATUS "hamlib_LIBRARIES: ${hamlib_LIBRARIES}")
|
||
message (STATUS "hamlib_LIBRARY_DIRS: ${hamlib_LIBRARY_DIRS}")
|
||
|
||
|
||
#
|
||
# Qt5 setup
|
||
#
|
||
|
||
# Widgets finds its own dependencies.
|
||
find_package (Qt5Widgets 5 REQUIRED)
|
||
find_package (Qt5Multimedia 5 REQUIRED)
|
||
find_package (Qt5PrintSupport 5 REQUIRED)
|
||
|
||
if (WIN32)
|
||
add_definitions (-DQT_NEEDS_QTMAIN)
|
||
find_package (Qt5AxContainer REQUIRED)
|
||
endif (WIN32)
|
||
|
||
#
|
||
# sub-directories
|
||
#
|
||
add_subdirectory (samples)
|
||
if (WSJT_GENERATE_DOCS)
|
||
add_subdirectory (doc)
|
||
endif (WSJT_GENERATE_DOCS)
|
||
|
||
|
||
#
|
||
# Library building setup
|
||
#
|
||
include (GenerateExportHeader)
|
||
set (CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||
set (CMAKE_C_VISIBILITY_PRESET hidden)
|
||
set (CMAKE_Fortran_VISIBILITY_PRESET hidden)
|
||
set (CMAKE_VISIBILITY_INLINES_HIDDEN ON)
|
||
#set (CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
|
||
|
||
|
||
#
|
||
# C & C++ setup
|
||
#
|
||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
|
||
|
||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fexceptions -frtti")
|
||
|
||
if (NOT APPLE)
|
||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pragmas")
|
||
if (${OPENMP_FOUND})
|
||
if (OpenMP_C_FLAGS)
|
||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_C_FLAGS}")
|
||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
|
||
endif ()
|
||
endif ()
|
||
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fdata-sections -ffunction-sections")
|
||
set (CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -fdata-sections -ffunction-sections")
|
||
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fdata-sections -ffunction-sections")
|
||
set (CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -fdata-sections -ffunction-sections")
|
||
endif (NOT APPLE)
|
||
|
||
if (WIN32)
|
||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
||
endif (WIN32)
|
||
if (APPLE AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
|
||
else ()
|
||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
|
||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=gnu++11 -pthread")
|
||
endif ()
|
||
|
||
|
||
#
|
||
# Fortran setup
|
||
#
|
||
set (General_FFLAGS "-Wall -Wno-conversion -fno-second-underscore")
|
||
|
||
# FFLAGS depend on the compiler
|
||
get_filename_component (Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME)
|
||
|
||
if (Fortran_COMPILER_NAME MATCHES "gfortran.*")
|
||
# gfortran
|
||
|
||
# CMake compiler test is supposed to do this but doesn't yet
|
||
if (CMAKE_OSX_DEPLOYMENT_TARGET)
|
||
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||
endif (CMAKE_OSX_DEPLOYMENT_TARGET)
|
||
if (CMAKE_OSX_SYSROOT)
|
||
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -isysroot ${CMAKE_OSX_SYSROOT}")
|
||
endif (CMAKE_OSX_SYSROOT)
|
||
|
||
set (CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -funroll-all-loops -fno-f2c ${General_FFLAGS}")
|
||
set (CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fbounds-check -fno-f2c ${General_FFLAGS}")
|
||
elseif (Fortran_COMPILER_NAME MATCHES "ifort.*")
|
||
# ifort (untested)
|
||
set (CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -f77rtl ${General_FFLAGS}")
|
||
set (CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -f77rtl ${General_FFLAGS}")
|
||
elseif (Fortran_COMPILER_NAME MATCHES "g77")
|
||
# g77
|
||
set (CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -funroll-all-loops -fno-f2c -m32 ${General_FFLAGS}")
|
||
set (CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fbounds-check -fno-f2c -m32 ${General_FFLAGS}")
|
||
else (Fortran_COMPILER_NAME MATCHES "gfortran.*")
|
||
message ("CMAKE_Fortran_COMPILER full path: " ${CMAKE_Fortran_COMPILER})
|
||
message ("Fortran compiler: " ${Fortran_COMPILER_NAME})
|
||
message ("No optimized Fortran compiler flags are known, we just try -O3...")
|
||
set (CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -O3 ${General_FFLAGS}")
|
||
set (CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fbounds-check ${General_FFLAGS}")
|
||
endif (Fortran_COMPILER_NAME MATCHES "gfortran.*")
|
||
|
||
|
||
#
|
||
# Linker setup
|
||
#
|
||
if (NOT APPLE)
|
||
set (CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -Wl,--gc-sections")
|
||
set (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL} -Wl,--gc-sections")
|
||
endif (NOT APPLE)
|
||
|
||
|
||
#
|
||
# setup and test Fortran C/C++ interaction
|
||
#
|
||
|
||
include (FortranCInterface)
|
||
FortranCInterface_VERIFY (CXX)
|
||
FortranCInterface_HEADER (FC.h MACRO_NAMESPACE "FC_" SYMBOL_NAMESPACE "FC_"
|
||
SYMBOLS
|
||
grayline
|
||
)
|
||
|
||
|
||
#
|
||
# sort out pre-requisites
|
||
#
|
||
|
||
#
|
||
# Setup RPATH so that built executable targets will run in both the
|
||
# build tree and the install location without having to set a
|
||
# (DYLD|LD)_LIBRARY_PATH override.
|
||
#
|
||
|
||
# use the full RPATH of the build tree
|
||
set (CMAKE_SKIP_BUILD_RPATH FALSE)
|
||
|
||
# when building, don't use the install RPATH, it will still be used
|
||
# later on in the install phase
|
||
set (CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
||
|
||
# set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
||
|
||
# add the automaticaly determined parts of the RPATH which point to
|
||
# directories outside of the build tree to the install RPATH
|
||
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||
|
||
# the RPATH to be used when installing, but only if it's not a system
|
||
# directory
|
||
# list (FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" isSystemDir)
|
||
# if ("${isSystemDir}" STREQUAL "-1")
|
||
# set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
||
# endif ("${isSystemDir}" STREQUAL "-1")
|
||
|
||
set (QT_NEED_RPATH FALSE)
|
||
if (NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib64" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib64")
|
||
set (QT_NEED_RPATH TRUE)
|
||
endif ()
|
||
|
||
#
|
||
# stuff only qmake can tell us
|
||
#
|
||
get_target_property (QMAKE_EXECUTABLE Qt5::qmake LOCATION)
|
||
function (QUERY_QMAKE VAR RESULT)
|
||
exec_program (${QMAKE_EXECUTABLE} ARGS "-query ${VAR}" RETURN_VALUE return_code OUTPUT_VARIABLE output)
|
||
if (NOT return_code)
|
||
file (TO_CMAKE_PATH "${output}" output)
|
||
set (${RESULT} ${output} PARENT_SCOPE)
|
||
endif (NOT return_code)
|
||
message (STATUS "Asking qmake for ${RESULT} and got ${output}")
|
||
endfunction (QUERY_QMAKE)
|
||
|
||
query_qmake (QT_INSTALL_PLUGINS QT_PLUGINS_DIR)
|
||
query_qmake (QT_INSTALL_IMPORTS QT_IMPORTS_DIR)
|
||
query_qmake (QT_HOST_DATA QT_DATA_DIR)
|
||
set (QT_MKSPECS_DIR ${QT_DATA_DIR}/mkspecs)
|
||
|
||
# Tell CMake to run moc when necessary
|
||
set (CMAKE_AUTOMOC ON)
|
||
include_directories (${CMAKE_CURRENT_BINARY_DIR})
|
||
|
||
# don't use Qt "keywords" signal, slot, emit in generated files to
|
||
# avoid compatability issue with other libraries
|
||
# ADD_DEFINITIONS (-DQT_NO_KEYWORDS)
|
||
# ADD_DEFINITIONS (-DUNICODE) #as per qmake
|
||
|
||
# As moc files are generated in the binary dir, tell CMake to always
|
||
# look for includes there:
|
||
set (CMAKE_INCLUDE_CURRENT_DIR ON)
|
||
|
||
# project definitions
|
||
add_definitions (-DQT5 -DCMAKE_BUILD -DBIGSYM=1)
|
||
if (CMAKE_HOST_UNIX)
|
||
add_definitions (-DUNIX)
|
||
elseif (CMAKE_HOST_WIN32)
|
||
add_definitions (-DWIN32)
|
||
endif ()
|
||
|
||
#
|
||
# source navigation
|
||
#
|
||
set (sources
|
||
${CMAKE_SOURCE_DIR}/*
|
||
${CMAKE_SOURCE_DIR}/logbook/*
|
||
${CMAKE_SOURCE_DIR}/lib/*
|
||
)
|
||
add_custom_target (ctags COMMAND ${CTAGS} -o ${CMAKE_SOURCE_DIR}/tags -R ${sources})
|
||
add_custom_target (etags COMMAND ${ETAGS} -o ${CMAKE_SOURCE_DIR}/TAGS -R ${sources})
|
||
|
||
|
||
# embedded resources
|
||
function (add_resources resources path)
|
||
foreach (resource_file_ ${ARGN})
|
||
get_filename_component (name_ ${resource_file_} NAME)
|
||
file (TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${resource_file_} source_)
|
||
file (TO_NATIVE_PATH ${path}/${name_} dest_)
|
||
set (resources_ "${resources_}\n <file alias=\"${dest_}\">${source_}</file>")
|
||
set (${resources} ${${resources}}${resources_} PARENT_SCOPE)
|
||
endforeach (resource_file_ ${ARGN})
|
||
endfunction (add_resources resources path)
|
||
|
||
add_resources (wsjtx_RESOURCES "" ${TOP_LEVEL_RESOURCES})
|
||
add_resources (wsjtx_RESOURCES /Palettes ${PALETTE_FILES})
|
||
|
||
configure_file (wsjtx.qrc.in wsjtx.qrc @ONLY)
|
||
|
||
|
||
# UI generation
|
||
qt5_wrap_ui (wsjt_qt_GENUISRCS ${wsjt_qt_UISRCS})
|
||
qt5_wrap_ui (wsjtx_GENUISRCS ${wsjtx_UISRCS})
|
||
|
||
# Resource generation
|
||
qt5_add_resources (wsjtx_RESOURCES_RCC ${CMAKE_BINARY_DIR}/wsjtx.qrc)
|
||
|
||
# AX COM servers
|
||
if (WIN32)
|
||
include (QtAxMacros)
|
||
wrap_ax_server (GENAXSRCS ${AXSERVERSRCS})
|
||
endif (WIN32)
|
||
|
||
|
||
#
|
||
# targets
|
||
#
|
||
|
||
# build a library of package functionality (without and optionally with OpenMP support)
|
||
add_library (wsjt_cxx STATIC ${wsjt_CSRCS} ${wsjt_CXXSRCS})
|
||
|
||
# build an OpenMP variant of the Fortran library routines
|
||
add_library (wsjt_fort STATIC ${wsjt_FSRCS})
|
||
target_link_libraries (wsjt_fort ${FFTW3_LIBRARIES})
|
||
if (${OPENMP_FOUND} OR APPLE)
|
||
add_library (wsjt_fort_omp STATIC ${wsjt_FSRCS})
|
||
target_link_libraries (wsjt_fort_omp ${FFTW3_LIBRARIES})
|
||
if (OpenMP_C_FLAGS)
|
||
set_target_properties (wsjt_fort_omp
|
||
PROPERTIES
|
||
COMPILE_FLAGS "${OpenMP_C_FLAGS}"
|
||
)
|
||
endif ()
|
||
set_target_properties (wsjt_fort_omp
|
||
PROPERTIES
|
||
Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp
|
||
)
|
||
file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp)
|
||
if (APPLE)
|
||
# On Mac we don't have working OpenMP support in the C/C++
|
||
# compilers so we have to manually set the correct flags to get
|
||
# OpenMP support in jt9.
|
||
target_compile_options (wsjt_fort_omp
|
||
PRIVATE
|
||
$<$<COMPILE_LANGUAGE:Fortran>:-fopenmp> # assumes GNU style Fortran compiler
|
||
)
|
||
endif (APPLE)
|
||
endif (${OPENMP_FOUND} OR APPLE)
|
||
|
||
# build a library for the QCustomPlot widget
|
||
add_library (qcp STATIC ${qcp_CXXSRCS})
|
||
target_include_directories (qcp PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/qcustomplot-source>)
|
||
target_link_libraries (qcp Qt5::Widgets Qt5::PrintSupport)
|
||
|
||
# build a library of package Qt functionality
|
||
add_library (wsjt_qt STATIC ${wsjt_qt_CXXSRCS} ${wsjt_qt_GENUISRCS} ${GENAXSRCS})
|
||
# set wsjtx_udp exports to static variants
|
||
target_compile_definitions (wsjt_qt PUBLIC UDP_STATIC_DEFINE)
|
||
target_link_libraries (wsjt_qt qcp Qt5::Widgets Qt5::Network)
|
||
target_include_directories (wsjt_qt BEFORE PRIVATE ${hamlib_INCLUDE_DIRS})
|
||
if (WIN32)
|
||
target_link_libraries (wsjt_qt Qt5::AxContainer Qt5::AxBase)
|
||
endif (WIN32)
|
||
|
||
add_library (wsjt_qtmm STATIC ${wsjt_qtmm_CXXSRCS} ${wsjt_qtmm_GENUISRCS})
|
||
target_link_libraries (wsjt_qtmm Qt5::Multimedia)
|
||
|
||
add_executable (jt4sim lib/jt4sim.f90 wsjtx.rc)
|
||
target_link_libraries (jt4sim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (jt65sim lib/jt65sim.f90 wsjtx.rc)
|
||
target_link_libraries (jt65sim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (qra64sim lib/qra/qra64/qra64sim.f90 wsjtx.rc)
|
||
target_link_libraries (qra64sim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (jt9sim lib/jt9sim.f90 wsjtx.rc)
|
||
target_link_libraries (jt9sim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (allsim lib/allsim.f90 wsjtx.rc)
|
||
target_link_libraries (allsim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (jt65code lib/jt65code.f90 wsjtx.rc)
|
||
target_link_libraries (jt65code wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (qra64code lib/qra64code.f90 wsjtx.rc)
|
||
target_link_libraries (qra64code wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (jt9code lib/jt9code.f90 wsjtx.rc)
|
||
target_link_libraries (jt9code wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (wsprcode lib/wsprcode/wsprcode.f90 lib/wsprcode/nhash.c
|
||
wsjtx.rc)
|
||
target_link_libraries (wsprcode wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (wsprd ${wsprd_CSRCS})
|
||
target_include_directories (wsprd PRIVATE ${FFTW3_INCLUDE_DIRS})
|
||
target_link_libraries (wsprd ${FFTW3_LIBRARIES})
|
||
|
||
add_executable (wsprsim ${wsprsim_CSRCS})
|
||
|
||
add_executable (jt4code lib/jt4code.f90 wsjtx.rc)
|
||
target_link_libraries (jt4code wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (msk144code lib/msk144code.f90 wsjtx.rc)
|
||
target_link_libraries (msk144code wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (jt65 lib/jt65.f90 lib/jt65_test.f90 wsjtx.rc)
|
||
target_link_libraries (jt65 wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (ldpcsim40 lib/ldpcsim40.f90 wsjtx.rc)
|
||
target_link_libraries (ldpcsim40 wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (ldpcsim120 lib/fsk4hf/ldpcsim120.f90 wsjtx.rc)
|
||
target_link_libraries (ldpcsim120 wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (ldpcsim300 lib/fsk4hf/ldpcsim300.f90 wsjtx.rc)
|
||
target_link_libraries (ldpcsim300 wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (ldpcsim144 lib/ldpcsim144.f90 wsjtx.rc)
|
||
target_link_libraries (ldpcsim144 wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (ldpcsim168 lib/fsk4hf/ldpcsim168.f90 wsjtx.rc)
|
||
target_link_libraries (ldpcsim168 wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (fsk4hf lib/fsk4hf/fsk4hf.f90 wsjtx.rc)
|
||
target_link_libraries (fsk4hf wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (ft8sim lib/fsk4hf/ft8sim.f90 wsjtx.rc)
|
||
target_link_libraries (ft8sim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (wsprlfsim lib/fsk4hf/wsprlfsim.f90 wsjtx.rc)
|
||
target_link_libraries (wsprlfsim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (wspr_fsk8d lib/fsk4hf/wspr_fsk8d.f90 wsjtx.rc)
|
||
target_link_libraries (wspr_fsk8d wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (wspr_fsk8_sim lib/fsk4hf/wspr_fsk8_sim.f90 wsjtx.rc)
|
||
target_link_libraries (wspr_fsk8_sim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (mskhfsim lib/fsk4hf/mskhfsim.f90 wsjtx.rc)
|
||
target_link_libraries (mskhfsim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (msk144sd lib/msk144sd.f90 wsjtx.rc)
|
||
target_link_libraries (msk144sd wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (msk144sim lib/msk144sim.f90 wsjtx.rc)
|
||
target_link_libraries (msk144sim wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (msk144d2 lib/msk144d2.f90 wsjtx.rc)
|
||
target_link_libraries (msk144d2 wsjt_fort wsjt_cxx)
|
||
|
||
add_executable (fmtave lib/fmtave.f90 wsjtx.rc)
|
||
|
||
add_executable (fcal lib/fcal.f90 wsjtx.rc)
|
||
|
||
add_executable (fmeasure lib/fmeasure.f90 wsjtx.rc)
|
||
|
||
add_executable (jt9 ${jt9_FSRCS} ${jt9_CXXSRCS} wsjtx.rc)
|
||
if (${OPENMP_FOUND} OR APPLE)
|
||
if (APPLE)
|
||
# On Mac we don't have working OpenMP support in the C/C++
|
||
# compilers so we have to manually set the correct linking flags
|
||
# and libraries to get OpenMP support in jt9.
|
||
set_target_properties (jt9
|
||
PROPERTIES
|
||
Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp
|
||
LINK_LIBRARIES "gomp;gcc_s.1" # assume GNU libgcc OpenMP
|
||
)
|
||
target_compile_options (jt9
|
||
PRIVATE
|
||
$<$<COMPILE_LANGUAGE:Fortran>:-fopenmp> # assumes GNU style Fortran compiler
|
||
)
|
||
else (APPLE)
|
||
if (OpenMP_C_FLAGS)
|
||
set_target_properties (jt9
|
||
PROPERTIES
|
||
COMPILE_FLAGS "${OpenMP_C_FLAGS}"
|
||
LINK_FLAGS "${OpenMP_C_FLAGS}"
|
||
)
|
||
endif ()
|
||
set_target_properties (jt9
|
||
PROPERTIES
|
||
Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp
|
||
)
|
||
endif (APPLE)
|
||
if (WIN32)
|
||
# set_target_properties (jt9 PROPERTIES
|
||
# LINK_FLAGS -Wl,--stack,16777216
|
||
# )
|
||
endif ()
|
||
target_link_libraries (jt9 wsjt_fort_omp wsjt_cxx Qt5::Core)
|
||
else (${OPENMP_FOUND} OR APPLE)
|
||
target_link_libraries (jt9 wsjt_fort wsjt_cxx Qt5::Core)
|
||
endif (${OPENMP_FOUND} OR APPLE)
|
||
|
||
# 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_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_COPYRIGHT "${PROJECT_COPYRIGHT}"
|
||
MACOSX_BUNDLE_GUI_IDENTIFIER "org.k1jt.wsjtx"
|
||
)
|
||
|
||
target_include_directories (wsjtx PRIVATE ${FFTW3_INCLUDE_DIRS})
|
||
if (APPLE)
|
||
target_link_libraries (wsjtx wsjt_fort wsjt_cxx wsjt_qt wsjt_qtmm ${hamlib_LIBRARIES} ${FFTW3_LIBRARIES})
|
||
else ()
|
||
target_link_libraries (wsjtx wsjt_fort_omp wsjt_cxx wsjt_qt wsjt_qtmm ${hamlib_LIBRARIES} ${FFTW3_LIBRARIES})
|
||
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 ()
|
||
qt5_use_modules (wsjtx SerialPort) # not sure why the interface link library syntax above doesn't work
|
||
|
||
# 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})
|
||
#target_include_directories (wsjtx_udp
|
||
# INTERFACE
|
||
# $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/wsjtx>
|
||
# )
|
||
target_include_directories (wsjtx_udp-static
|
||
INTERFACE
|
||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/wsjtx>
|
||
)
|
||
#set_target_properties (wsjtx_udp PROPERTIES
|
||
# PUBLIC_HEADER "${UDP_library_HEADERS}"
|
||
# )
|
||
set_target_properties (wsjtx_udp-static PROPERTIES
|
||
OUTPUT_NAME wsjtx_udp
|
||
)
|
||
target_compile_definitions (wsjtx_udp-static PUBLIC UDP_STATIC_DEFINE)
|
||
#qt5_use_modules (wsjtx_udp Network)
|
||
qt5_use_modules (wsjtx_udp-static Network)
|
||
generate_export_header (wsjtx_udp-static BASE_NAME udp)
|
||
|
||
add_executable (udp_daemon UDPExamples/UDPDaemon.cpp UDPExamples/udp_daemon.rc ${WSJTX_ICON_FILE})
|
||
target_link_libraries (udp_daemon wsjtx_udp-static)
|
||
|
||
add_resources (message_aggregator_RESOURCES /qss ${message_aggregator_STYLESHEETS})
|
||
configure_file (UDPExamples/message_aggregator.qrc.in message_aggregator.qrc @ONLY)
|
||
qt5_add_resources (message_aggregator_RESOURCES_RCC ${CMAKE_CURRENT_BINARY_DIR}/message_aggregator.qrc)
|
||
add_executable (message_aggregator
|
||
${message_aggregator_CXXSRCS}
|
||
${WSJTX_ICON_FILE}
|
||
UDPExamples/message_aggregator.rc
|
||
${message_aggregator_RESOURCES_RCC}
|
||
)
|
||
target_link_libraries (message_aggregator Qt5::Widgets wsjtx_udp-static)
|
||
|
||
if (WSJT_CREATE_WINMAIN)
|
||
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}
|
||
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||
# ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||
# PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wsjtx
|
||
# )
|
||
# install (TARGETS wsjtx_udp-static EXPORT udp-static
|
||
# DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||
# )
|
||
|
||
# install (EXPORT udp NAMESPACE wsjtx::
|
||
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/wsjtx
|
||
# )
|
||
# install (EXPORT udp-static NAMESPACE wsjtx::
|
||
# 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 jt65code qra64code qra64sim jt9code jt4code
|
||
msk144code wsprd wspr_fsk8d fmtave fcal fmeasure
|
||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||
)
|
||
|
||
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 (FILES
|
||
README
|
||
COPYING
|
||
AUTHORS
|
||
THANKS
|
||
NEWS
|
||
INSTALL
|
||
BUGS
|
||
DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
||
#COMPONENT runtime
|
||
)
|
||
|
||
install (FILES
|
||
contrib/Ephemeris/JPLEPH
|
||
DESTINATION ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}
|
||
#COMPONENT runtime
|
||
)
|
||
|
||
#
|
||
# Mac installer files
|
||
#
|
||
if (APPLE)
|
||
install (FILES
|
||
Darwin/ReadMe.txt
|
||
Darwin/sysctl.conf
|
||
DESTINATION .
|
||
#COMPONENT runtime
|
||
)
|
||
endif (APPLE)
|
||
|
||
|
||
#
|
||
# uninstall support
|
||
#
|
||
configure_file (
|
||
"${CMAKE_CURRENT_SOURCE_DIR}/CMake/cmake_uninstall.cmake.in"
|
||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||
@ONLY)
|
||
add_custom_target (uninstall
|
||
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
||
|
||
|
||
# creates svnversion.h using cmake script
|
||
add_custom_target (revisiontag
|
||
COMMAND ${CMAKE_COMMAND} -D SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -D OUTPUT_DIR=${PROJECT_BINARY_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/CMake/getsvn.cmake
|
||
COMMENT "Generating Subversion revision information"
|
||
VERBATIM
|
||
)
|
||
# explicitly say that the wsjt_qt depends on custom target, this is
|
||
# done indirectly so that the revisiontag target gets built exactly
|
||
# once per build
|
||
add_dependencies(wsjt_qt revisiontag)
|
||
|
||
|
||
#
|
||
# versioning and configuration
|
||
#
|
||
configure_file (
|
||
"${CMAKE_CURRENT_SOURCE_DIR}/wsjtx_config.h.in"
|
||
"${CMAKE_CURRENT_BINARY_DIR}/wsjtx_config.h"
|
||
)
|
||
|
||
|
||
if (NOT WIN32 AND NOT APPLE)
|
||
# install a desktop file so wsjtx appears in the application start
|
||
# menu with an icon
|
||
install (
|
||
FILES wsjtx.desktop message_aggregator.desktop
|
||
DESTINATION share/applications
|
||
#COMPONENT runtime
|
||
)
|
||
install (
|
||
FILES icons/Unix/wsjtx_icon.png
|
||
DESTINATION share/pixmaps
|
||
#COMPONENT runtime
|
||
)
|
||
endif (NOT WIN32 AND NOT APPLE)
|
||
|
||
|
||
#
|
||
# bundle fixup only done in Release or MinSizeRel configurations
|
||
#
|
||
if (NOT is_debug_build)
|
||
|
||
get_target_property (QtCore_location Qt5::Core LOCATION)
|
||
get_filename_component (QtCore_location ${QtCore_location} PATH)
|
||
list (APPEND fixup_library_dirs ${QtCore_location})
|
||
|
||
if (APPLE)
|
||
set (CMAKE_POSTFLIGHT_SCRIPT
|
||
"${wsjtx_BINARY_DIR}/postflight.sh")
|
||
set (CMAKE_POSTUPGRADE_SCRIPT
|
||
"${wsjtx_BINARY_DIR}/postupgrade.sh")
|
||
configure_file ("${wsjtx_SOURCE_DIR}/Darwin/postflight.sh.in"
|
||
"${CMAKE_POSTFLIGHT_SCRIPT}")
|
||
configure_file ("${wsjtx_SOURCE_DIR}/Darwin/postupgrade.sh.in"
|
||
"${CMAKE_POSTUPGRADE_SCRIPT}")
|
||
endif ()
|
||
|
||
if (APPLE OR WIN32)
|
||
# install rules for including 3rd party libs such as Qt
|
||
|
||
# install a qt.conf file
|
||
install (CODE "
|
||
get_filename_component (the_qt_conf \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${WSJT_QT_CONF_DESTINATION}/qt.conf\" REALPATH)
|
||
file (WRITE \"\${the_qt_conf}\"
|
||
\"[Paths]
|
||
\")
|
||
"
|
||
#COMPONENT runtime
|
||
)
|
||
|
||
# if a system Qt is used (e.g. installed in /usr/lib/), it will not be included in the installation
|
||
set (fixup_exe "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/${CMAKE_PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX}")
|
||
|
||
#get_filename_component (hamlib_lib_dir ${hamlib_LIBRARIES} PATH)
|
||
|
||
if (APPLE)
|
||
# install required Qt plugins
|
||
install (
|
||
DIRECTORY
|
||
${QT_PLUGINS_DIR}/platforms
|
||
${QT_PLUGINS_DIR}/audio
|
||
${QT_PLUGINS_DIR}/accessible
|
||
${QT_PLUGINS_DIR}/imageformats
|
||
DESTINATION ${WSJT_PLUGIN_DESTINATION}
|
||
CONFIGURATIONS Release MinSizeRel
|
||
#COMPONENT runtime
|
||
FILES_MATCHING PATTERN "*${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||
PATTERN "*minimal*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
PATTERN "*offscreen*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
PATTERN "*quick*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
PATTERN "*_debug${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
)
|
||
# install (
|
||
# DIRECTORY
|
||
# ${QT_PLUGINS_DIR}/platforms
|
||
# ${QT_PLUGINS_DIR}/audio
|
||
# ${QT_PLUGINS_DIR}/accessible
|
||
# DESTINATION ${WSJT_PLUGIN_DESTINATION}
|
||
# CONFIGURATIONS Debug
|
||
# #COMPONENT runtime
|
||
# FILES_MATCHING PATTERN "*_debug${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||
# PATTERN "*minimal*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
# PATTERN "*offscreen*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
# PATTERN "*quick*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
# )
|
||
|
||
# add plugins path for Mac Bundle
|
||
install (CODE "
|
||
get_filename_component (the_qt_conf \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${WSJT_QT_CONF_DESTINATION}/qt.conf\" REALPATH)
|
||
file (APPEND \"\${the_qt_conf}\"
|
||
\"Plugins = PlugIns
|
||
\")
|
||
"
|
||
#COMPONENT runtime
|
||
)
|
||
endif (APPLE)
|
||
|
||
if (WIN32)
|
||
# DLL directory
|
||
#set (hamlib_lib_dir ${hamlib_lib_dir}/../bin)
|
||
|
||
get_filename_component (fftw_lib_dir ${FFTW3F_LIBRARY} PATH)
|
||
list (APPEND fixup_library_dirs ${fftw_lib_dir})
|
||
|
||
# install required Qt plugins
|
||
install (
|
||
DIRECTORY
|
||
${QT_PLUGINS_DIR}/platforms
|
||
${QT_PLUGINS_DIR}/accessible
|
||
${QT_PLUGINS_DIR}/audio
|
||
${QT_PLUGINS_DIR}/imageformats
|
||
DESTINATION ${WSJT_PLUGIN_DESTINATION}
|
||
CONFIGURATIONS Release MinSizeRel
|
||
#COMPONENT runtime
|
||
FILES_MATCHING PATTERN "*${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||
PATTERN "*minimal*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
PATTERN "*offscreen*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
PATTERN "*quick*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
PATTERN "*d${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
)
|
||
# install (
|
||
# DIRECTORY
|
||
# ${QT_PLUGINS_DIR}/platforms
|
||
# ${QT_PLUGINS_DIR}/accessible
|
||
# ${QT_PLUGINS_DIR}/audio
|
||
# DESTINATION ${WSJT_PLUGIN_DESTINATION}
|
||
# CONFIGURATIONS Debug
|
||
# #COMPONENT runtime
|
||
# FILES_MATCHING PATTERN "*d${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||
# PATTERN "*minimal*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
# PATTERN "*offscreen*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
# PATTERN "*quick*${CMAKE_SHARED_LIBRARY_SUFFIX}" EXCLUDE
|
||
# )
|
||
|
||
# add plugins path for WIN32
|
||
file (RELATIVE_PATH _plugins_path "${CMAKE_INSTALL_PREFIX}/${WSJT_QT_CONF_DESTINATION}" "${CMAKE_INSTALL_PREFIX}/${WSJT_PLUGIN_DESTINATION}")
|
||
install (CODE "
|
||
get_filename_component (the_qt_conf \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${WSJT_QT_CONF_DESTINATION}/qt.conf\" REALPATH)
|
||
file (APPEND \"\${the_qt_conf}\"
|
||
\"Plugins = ${_plugins_path}
|
||
\")
|
||
"
|
||
#COMPONENT runtime
|
||
)
|
||
|
||
set (gp_tool "objdump") # we want MinGW tool - not MSVC (See GetPrerequisites.cmake)
|
||
endif (WIN32)
|
||
|
||
#list (APPEND fixup_library_dirs ${hamlib_lib_dir})
|
||
list (APPEND fixup_library_dirs ${hamlib_LIBRARY_DIRS})
|
||
|
||
install (CODE "
|
||
get_filename_component (the_path \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${WSJT_PLUGIN_DESTINATION}\" REALPATH)
|
||
file (GLOB_RECURSE QTPLUGINS \"\${the_path}/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
|
||
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/Modules ${CMAKE_MODULE_PATH})
|
||
include (BundleUtilities)
|
||
set (BU_CHMOD_BUNDLE_ITEMS ON)
|
||
set (gp_tool ${gp_tool})
|
||
# canonicalize path in install context
|
||
get_filename_component (the_exe ${fixup_exe} REALPATH)
|
||
fixup_bundle (\"\${the_exe}\" \"\${QTPLUGINS}\" \"${fixup_library_dirs}\")"
|
||
#COMPONENT runtime
|
||
)
|
||
endif (APPLE OR WIN32)
|
||
|
||
endif (NOT is_debug_build)
|
||
|
||
|
||
#
|
||
# packaging
|
||
#
|
||
set (CPACK_MONOLITHIC_INSTALL 1)
|
||
set (CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
|
||
set (CPACK_PACKAGE_VERSION_MAJOR ${WSJTX_VERSION_MAJOR})
|
||
set (CPACK_PACKAGE_VERSION_MINOR ${WSJTX_VERSION_MINOR})
|
||
set (CPACK_PACKAGE_VERSION_PATCH ${WSJTX_VERSION_PATCH})
|
||
|
||
if (WIN32)
|
||
set (CPACK_GENERATOR "NSIS")
|
||
elseif (APPLE)
|
||
set (CPACK_GENERATOR "DragNDrop")
|
||
else ()
|
||
find_program (DPKG_BUILDER dpkg-buildpackage DOC "Debian package builder")
|
||
if (DPKG_BUILDER)
|
||
#
|
||
# Derive the correct filename for a Debian package because the DEB
|
||
# generator doesn't do this correctly at present.
|
||
#
|
||
find_program (DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
|
||
if (DPKG_PROGRAM)
|
||
execute_process (
|
||
COMMAND ${DPKG_PROGRAM} --print-architecture
|
||
OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE
|
||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
)
|
||
else (DPKG_PROGRAM)
|
||
set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE noarch)
|
||
endif (DPKG_PROGRAM)
|
||
|
||
list (APPEND CPACK_GENERATOR "DEB")
|
||
endif (DPKG_BUILDER)
|
||
|
||
find_program (RPMBUILDER rpmbuild DOC "RPM package builder")
|
||
if (RPMBUILDER)
|
||
list (APPEND CPACK_GENERATOR "RPM")
|
||
endif (RPMBUILDER)
|
||
endif ()
|
||
|
||
set (CPACK_DEBIAN_PACKAGE_DESCRIPTION "${PROJECT_DESCRIPTION}")
|
||
set (CPACK_DEBIAN_PACKAGE_HOMEPAGE "${PROJECT_HOMEPAGE}")
|
||
set (CPACK_DEBIAN_PACKAGE_DEPENDS "libgfortran3 (>=4.8.2), libqt5serialport5 (>=5.2), libqt5multimedia5-plugins (>=5.2), libqt5widgets5 (>=5.2), libusb-1.0-0, libudev1, libc6 (>=2.19)")
|
||
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
||
|
||
set (CPACK_RPM_PACKAGE_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
|
||
set (CPACK_RPM_PACKAGE_REQUIRES "qt5-qtserialport >= 5.2, qt5-qtmultimedia >= 5.2, qt5-qtsvg, libusb, systemd-udev, glibc >= 2, libgfortran >= 4.8.2")
|
||
set (CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION /usr/share/pixmaps /usr/share/applications /usr/share/man /usr/share/man1)
|
||
|
||
configure_file ("${PROJECT_SOURCE_DIR}/CMakeCPackOptions.cmake.in"
|
||
"${PROJECT_BINARY_DIR}/CMakeCPackOptions.cmake" @ONLY)
|
||
set (CPACK_PROJECT_CONFIG_FILE "${PROJECT_BINARY_DIR}/CMakeCPackOptions.cmake")
|
||
|
||
include (CPack)
|