summarylogtreecommitdiffstats
path: root/wsjtx.patch
blob: 66d8726d3d26bb1751ee6cb440ec876ededbccbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- CMakeLists.txt	2019-05-27 12:04:08.383328015 -0500
+++ CMakeLists.txt	2019-05-27 12:03:24.470182804 -0500
@@ -845,7 +845,7 @@
 # libhamlib setup
 #
 set (hamlib_STATIC 1)
-set (hamlib_LIBRARIES hamlib)
+find_package (hamlib 3 REQUIRED)
 find_program (RIGCTL_EXE rigctl)
 find_program (RIGCTLD_EXE rigctld)
 find_program (RIGCTLCOM_EXE rigctlcom)
@@ -1305,8 +1305,7 @@
       )
   endif ()
 endif ()
-find_package (Qt5SerialPort)
-target_link_libraries (wsjtx Qt5::SerialPort)
+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})
@@ -1327,8 +1326,7 @@
   )
 target_compile_definitions (wsjtx_udp-static PUBLIC UDP_STATIC_DEFINE)
 #qt5_use_modules (wsjtx_udp Network)
-target_link_libraries (wsjtx_udp-static Qt5::Network Qt5::Gui)
-
+qt5_use_modules (wsjtx_udp-static Network Gui)
 generate_export_header (wsjtx_udp-static BASE_NAME udp)
 
 add_executable (udp_daemon UDPExamples/UDPDaemon.cpp UDPExamples/udp_daemon.rc ${WSJTX_ICON_FILE})
@@ -1420,6 +1418,13 @@
   RENAME rigctld-wsjtx${CMAKE_EXECUTABLE_SUFFIX}
   )
 
+install (PROGRAMS
+  ${RIGCTLCOM_EXE}
+  DESTINATION ${CMAKE_INSTALL_BINDIR}
+  #COMPONENT runtime
+  RENAME rigctlcom-wsjtx${CMAKE_EXECUTABLE_SUFFIX}
+  )
+
 install (FILES
   README
   COPYING