diff --git a/CMakeLists.txt b/CMakeLists.txt index 95215c546..9df058a87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -875,7 +875,7 @@ check_symbol_exists (rig_set_cache_timeout_ms "hamlib/rig.h" HAVE_HAMLIB_CACHING # # Widgets finds its own dependencies. -find_package (Qt5 COMPONENTS Widgets SerialPort Multimedia PrintSupport Sql LinguistTools REQUIRED) +find_package (Qt5 COMPONENTS Core Network Widgets SerialPort Multimedia PrintSupport Sql LinguistTools REQUIRED) if (WIN32) add_definitions (-DQT_NEEDS_QTMAIN) @@ -1094,6 +1094,9 @@ endif (${OPENMP_FOUND} OR APPLE) if(WSJT_BUILD_UTILS) +add_executable (WSJTXLogging_test WSJTXLogger_test/main.cpp WSJTXLogging.cpp Logger.cpp) +target_link_libraries (WSJTXLogging_test Qt5::Core Qt5::Network Boost::log_setup) + add_executable (jt4sim lib/jt4sim.f90) target_link_libraries (jt4sim wsjt_fort wsjt_cxx) diff --git a/WSJTXLogger_test/main.cpp b/WSJTXLogger_test/main.cpp new file mode 100644 index 000000000..7a0837083 --- /dev/null +++ b/WSJTXLogger_test/main.cpp @@ -0,0 +1,11 @@ +#include +#include "Logger.hpp" +#include "WSJTXLogging.hpp" + +int main(int /*argc*/, char */*argv*/[]) +{ + WSJTXLogging lg; + LOG_INFO ("Program start up"); + LOG_INFO ("Program close down"); + return EXIT_SUCCESS; +}