File: 0013-qcustomplot-link.patch

package info (click to toggle)
wsjtx-improved 2.8.0%2B250501%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 81,520 kB
  • sloc: cpp: 104,533; f90: 49,504; python: 27,241; ansic: 13,372; fortran: 2,382; makefile: 197; sh: 133
file content (38 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download
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
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -752,17 +752,12 @@ set (message_aggregator_STYLESHEETS
   UDPExamples/qss/default.qss
   )
 
-set (qcp_CXXSRCS
-  qcustomplot-source/qcustomplot.cpp
-  )
-
 set (all_CXXSRCS
   ${wsjt_CXXSRCS}
   ${fort_qt_CXXSRCS}
   ${wsjt_qt_CXXSRCS}
   ${wsjt_qtmm_CXXSRCS}
   ${wsjtx_CXXSRCS}
-  ${qcp_CXXSRCS}
   )
 
 set (all_C_and_CXXSRCS
@@ -1428,16 +1423,11 @@ endif (WIN32)
 # targets dependent on Qt
 #
 
-# 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 Hamlib::Hamlib Boost::log qcp Qt5::Widgets Qt5::Network Qt5::Sql Qt5::WebSockets)
+target_link_libraries (wsjt_qt Hamlib::Hamlib Boost::log QCustomPlot Qt5::Widgets Qt5::Network Qt5::Sql Qt5::WebSockets)
 if (WIN32)
   target_link_libraries (wsjt_qt Qt5::AxContainer Qt5::AxBase)
 endif (WIN32)