Skip to content

Commit 4d826fd

Browse files
committed
Fix Windows build
Export symbols and manual visibility for static members
1 parent a900ef1 commit 4d826fd

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ add_library(behavior_tree_editor SHARED
144144
${APP_CPPS}
145145
${FORMS_HEADERS}
146146
)
147+
set_target_properties(behavior_tree_editor PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
148+
include(GenerateExportHeader)
149+
generate_export_header(behavior_tree_editor)
150+
target_include_directories(behavior_tree_editor PUBLIC
151+
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
152+
)
147153

148154
SET(GROOT_DEPENDENCIES QtNodeEditor )
149155

bt_editor/sidepanel_editor.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
#include <QTableWidgetItem>
88
#include "XML_utilities.hpp"
99

10+
#include "behavior_tree_editor_export.h"
11+
1012
namespace Ui {
1113
class SidepanelEditor;
1214
}
1315

14-
class SidepanelEditor : public QFrame
16+
class BEHAVIOR_TREE_EDITOR_EXPORT SidepanelEditor : public QFrame
1517
{
1618
Q_OBJECT
1719

bt_editor/sidepanel_replay.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
#include <QStandardItemModel>
88
#include "bt_editor_base.h"
99

10+
#include "behavior_tree_editor_export.h"
11+
1012

1113
namespace Ui {
1214
class SidepanelReplay;
1315
}
1416

15-
class SidepanelReplay : public QFrame
17+
class BEHAVIOR_TREE_EDITOR_EXPORT SidepanelReplay : public QFrame
1618
{
1719
Q_OBJECT
1820

0 commit comments

Comments
 (0)