Simple Boost logging test program

This commit is contained in:
Bill Somerville 2020-11-13 13:16:43 +00:00
parent 6b78bf3bb6
commit 29b147eef0
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
2 changed files with 15 additions and 1 deletions

View File

@ -875,7 +875,7 @@ check_symbol_exists (rig_set_cache_timeout_ms "hamlib/rig.h" HAVE_HAMLIB_CACHING
# #
# Widgets finds its own dependencies. # 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) if (WIN32)
add_definitions (-DQT_NEEDS_QTMAIN) add_definitions (-DQT_NEEDS_QTMAIN)
@ -1094,6 +1094,9 @@ endif (${OPENMP_FOUND} OR APPLE)
if(WSJT_BUILD_UTILS) 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) add_executable (jt4sim lib/jt4sim.f90)
target_link_libraries (jt4sim wsjt_fort wsjt_cxx) target_link_libraries (jt4sim wsjt_fort wsjt_cxx)

11
WSJTXLogger_test/main.cpp Normal file
View File

@ -0,0 +1,11 @@
#include <cstdlib>
#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;
}