mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Simple Boost logging test program
This commit is contained in:
parent
6b78bf3bb6
commit
29b147eef0
@ -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)
|
||||
|
||||
|
11
WSJTXLogger_test/main.cpp
Normal file
11
WSJTXLogger_test/main.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user