2021-04-09 12:47:49 -04:00
|
|
|
set (map65_CXXSRCS
|
2014-03-10 12:16:14 -04:00
|
|
|
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)
|
2021-04-09 12:47:49 -04:00
|
|
|
set (map65_CXXSRCS ${map65_CXXSRCS} killbyname.cpp)
|
2014-03-10 12:16:14 -04:00
|
|
|
endif (WIN32)
|
|
|
|
|
2021-04-09 12:47:49 -04:00
|
|
|
set (map65_UISRCS
|
2014-03-10 12:16:14 -04:00
|
|
|
about.ui
|
|
|
|
astro.ui
|
|
|
|
bandmap.ui
|
|
|
|
devsetup.ui
|
|
|
|
mainwindow.ui
|
|
|
|
messages.ui
|
|
|
|
txtune.ui
|
|
|
|
widegraph.ui
|
|
|
|
)
|
|
|
|
|
2021-04-11 10:29:15 -04:00
|
|
|
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)
|
|
|
|
|
2014-03-10 12:16:14 -04:00
|
|
|
# build the subdirectories
|
|
|
|
add_subdirectory (libm65)
|
|
|
|
|
|
|
|
# UI generation
|
2021-04-09 12:47:49 -04:00
|
|
|
qt5_wrap_ui (map65_GENUISRCS ${map65_UISRCS})
|
2014-03-10 12:16:14 -04:00
|
|
|
|
2021-04-09 12:47:49 -04:00
|
|
|
add_executable (map65 ${map65_CXXSRCS} ${map65_CSRCS} ${map65_GENUISRCS} map65.rc)
|
2021-05-13 07:44:32 -04:00
|
|
|
target_include_directories (map65 PRIVATE ${CMAKE_SOURCE_DIR} ${FFTW3_INCLUDE_DIRS})
|
2021-04-30 17:51:09 -04:00
|
|
|
target_link_libraries (map65 wsjt_qt m65impl ${FFTW3_LIBRARIES} Qt5::Widgets Qt5::Network Portaudio::Portaudio Usb::Usb)
|
2014-03-10 12:16:14 -04:00
|
|
|
|
2021-05-30 09:55:50 -04:00
|
|
|
if (WIN32)
|
|
|
|
install (
|
|
|
|
CODE "get_filename_component (_path \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/wsjtx_dir.txt\" REALPATH)
|
2021-05-05 12:04:02 -04:00
|
|
|
if (WIN32)
|
|
|
|
set (_separator \"\\\\\")
|
|
|
|
else ()
|
|
|
|
set (_separator \"/\")
|
|
|
|
endif ()
|
|
|
|
file (WRITE \"\${_path}\" \".\${_separator}\\n\")"
|
2021-05-30 09:55:50 -04:00
|
|
|
)
|
2021-04-23 20:03:13 -04:00
|
|
|
|
2021-05-30 09:55:50 -04:00
|
|
|
install (
|
|
|
|
TARGETS map65
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
|
|
|
BUNDLE DESTINATION . COMPONENT runtime
|
|
|
|
)
|
|
|
|
endif ()
|