Skip to content

Commit 3ff114c

Browse files
committed
example for system-wide library done
1 parent f32c2e9 commit 3ff114c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ target_link_libraries(btpp ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
9797
######################################################
9898
install(TARGETS btpp
9999
EXPORT btpp-targets
100-
DESTINATION lib/btpp
100+
DESTINATION lib
101101
)
102102

103-
install(FILES ${BTHeadLibrary} DESTINATION include/)
103+
#install(FILES ${BTHeadLibrary} DESTINATION include/)
104104

105105

include/tree_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ namespace BT
146146
virtual int DrawType() = 0;
147147
virtual void ResetColorState() = 0;
148148
virtual int Depth() = 0;
149+
bool is_halted();
149150

150151

151152
//Getters and setters
@@ -166,7 +167,6 @@ namespace BT
166167

167168
NodeType get_type();
168169

169-
bool is_halted();
170170
};
171171
}
172172

src/tree_node.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,12 @@ std::string BT::TreeNode::get_name()
9595
return name_;
9696
}
9797

98-
9998
BT::NodeType BT::TreeNode::get_type()
10099
{
101100
return type_;
102101
}
103102

104103
bool BT::TreeNode::is_halted()
105104
{
106-
return get_status()==BT::HALTED;
105+
return get_status() == BT::HALTED;
107106
}

0 commit comments

Comments
 (0)