Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
Export symbols and manual visibility for static members
  • Loading branch information
Ace314159 committed Nov 16, 2021
1 parent a900ef1 commit 4d826fd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ add_library(behavior_tree_editor SHARED
${APP_CPPS}
${FORMS_HEADERS}
)
set_target_properties(behavior_tree_editor PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
include(GenerateExportHeader)
generate_export_header(behavior_tree_editor)
target_include_directories(behavior_tree_editor PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
)

SET(GROOT_DEPENDENCIES QtNodeEditor )

Expand Down
4 changes: 3 additions & 1 deletion bt_editor/sidepanel_editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
#include <QTableWidgetItem>
#include "XML_utilities.hpp"

#include "behavior_tree_editor_export.h"

namespace Ui {
class SidepanelEditor;
}

class SidepanelEditor : public QFrame
class BEHAVIOR_TREE_EDITOR_EXPORT SidepanelEditor : public QFrame
{
Q_OBJECT

Expand Down
4 changes: 3 additions & 1 deletion bt_editor/sidepanel_replay.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
#include <QStandardItemModel>
#include "bt_editor_base.h"

#include "behavior_tree_editor_export.h"


namespace Ui {
class SidepanelReplay;
}

class SidepanelReplay : public QFrame
class BEHAVIOR_TREE_EDITOR_EXPORT SidepanelReplay : public QFrame
{
Q_OBJECT

Expand Down

0 comments on commit 4d826fd

Please sign in to comment.