diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 2a2740388f..b6a1f62803 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -95,6 +95,8 @@ set( KICOMMON_SRCS kicad_curl/kicad_curl.cpp kicad_curl/kicad_curl_easy.cpp + widgets/progress_reporter_base.cpp + advanced_config.cpp asset_archive.cpp array_axis.cpp @@ -309,7 +311,6 @@ set( COMMON_WIDGET_SRCS widgets/msgpanel.cpp widgets/number_badge.cpp widgets/paged_dialog.cpp - widgets/progress_reporter_base.cpp widgets/properties_panel.cpp widgets/search_pane.cpp widgets/search_pane_base.cpp diff --git a/include/progress_reporter.h b/include/progress_reporter.h index 73db3b4ab3..eac814b89e 100644 --- a/include/progress_reporter.h +++ b/include/progress_reporter.h @@ -27,13 +27,15 @@ #ifndef PROGRESS_REPORTER_H #define PROGRESS_REPORTER_H +#include + /** * A progress reporter interface for use in multi-threaded environments. The various advancement * and message methods can be called from sub-threads. The KeepRefreshing method *MUST* be called * only from the main thread (primarily a MSW requirement, which won't allow access to UI objects * allocated from a separate thread). */ -class PROGRESS_REPORTER +class KICOMMON_API PROGRESS_REPORTER { public: diff --git a/include/widgets/progress_reporter_base.h b/include/widgets/progress_reporter_base.h index 756f80f73e..4eb7f60019 100644 --- a/include/widgets/progress_reporter_base.h +++ b/include/widgets/progress_reporter_base.h @@ -34,7 +34,7 @@ /** * This implements all the tricky bits for thread safety, but the GUI is left to derived classes. */ -class PROGRESS_REPORTER_BASE : public PROGRESS_REPORTER +class KICOMMON_API PROGRESS_REPORTER_BASE : public PROGRESS_REPORTER { public: