diff options
| author | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
| commit | f647d78463c1250ce9c99af664615fafccf5e959 (patch) | |
| tree | 5b00428cef68aef1c9d407e2d4535687422419b6 /map65/CMakeLists.txt | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'map65/CMakeLists.txt')
| -rw-r--r--[-rwxr-xr-x] | map65/CMakeLists.txt | 153 |
1 files changed, 80 insertions, 73 deletions
diff --git a/map65/CMakeLists.txt b/map65/CMakeLists.txt index a6028df2..7de82d12 100755..100644 --- a/map65/CMakeLists.txt +++ b/map65/CMakeLists.txt @@ -1,74 +1,81 @@ -set (map65_CXXSRCS
- about.cpp
- astro.cpp
- bandmap.cpp
- devsetup.cpp
- displaytext.cpp
- getdev.cpp
- getfile.cpp
- main.cpp
- mainwindow.cpp
- messages.cpp
- meterwidget.cpp
- plotter.cpp
- set570.cpp
- signalmeter.cpp
- soundin.cpp
- soundout.cpp
- txtune.cpp
- widegraph.cpp
- )
-
-if (WIN32)
- set (map65_CXXSRCS ${map65_CXXSRCS} killbyname.cpp)
-endif (WIN32)
-
-set (map65_UISRCS
- about.ui
- astro.ui
- bandmap.ui
- devsetup.ui
- mainwindow.ui
- messages.ui
- txtune.ui
- widegraph.ui
-)
-
-set (map65_C_and_CXXSRCS
- ${map65_CSRCS}
- ${map65_CXXSRCS}
- )
-set_property (SOURCE ${map65_C_and_CXXSRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -include wsjtx_config.h")
-set_property (SOURCE ${map65_C_and_CXXSRCS} APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/wsjtx_config.h)
-
-# build the subdirectories
-add_subdirectory (libm65)
-
-# UI generation
-qt5_wrap_ui (map65_GENUISRCS ${map65_UISRCS})
-
-add_executable (map65 ${map65_CXXSRCS} ${map65_CSRCS} ${map65_GENUISRCS} map65.rc)
-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)
-
-if (WSJT_CREATE_WINMAIN)
- set_target_properties (map65 PROPERTIES WIN32_EXECUTABLE ON)
-endif (WSJT_CREATE_WINMAIN)
-
-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
- )
+set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +set (map65_CXXSRCS + about.cpp + astro.cpp + bandmap.cpp + cqdatasender.cpp + devsetup.cpp + displaytext.cpp + getdev.cpp + getfile.cpp + liveCQSender.cpp + main.cpp + mainwindow.cpp + messages.cpp + meterwidget.cpp + plotter.cpp + PSKReporter.cpp + Radio.cpp + set570.cpp + signalmeter.cpp + soundin.cpp + soundout.cpp + txtune.cpp + widegraph.cpp + ) + +if (WIN32) + set (map65_CXXSRCS ${map65_CXXSRCS} killbyname.cpp) +endif (WIN32) + +set (map65_UISRCS + about.ui + astro.ui + bandmap.ui + devsetup.ui + mainwindow.ui + messages.ui + txtune.ui + widegraph.ui +) + +set (map65_C_and_CXXSRCS + ${map65_CSRCS} + ${map65_CXXSRCS} + ) +set_property (SOURCE ${map65_C_and_CXXSRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -include wsjtx_config.h") +set_property (SOURCE ${map65_C_and_CXXSRCS} APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/wsjtx_config.h) + +# build the subdirectories +add_subdirectory (libm65) + +# UI generation +qt5_wrap_ui (map65_GENUISRCS ${map65_UISRCS}) + +add_executable (map65 ${map65_CXXSRCS} ${map65_CSRCS} ${map65_GENUISRCS} map65.rc) +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) + +if (WSJT_CREATE_WINMAIN) + set_target_properties (map65 PROPERTIES WIN32_EXECUTABLE ON) +endif (WSJT_CREATE_WINMAIN) + +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 + ) endif ()
\ No newline at end of file |
