File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1717# gepetto-viewer If not, see
1818# <http://www.gnu.org/licenses/>.
1919
20+ MACRO (ADD_TEST_CFLAGS target flag)
21+ SET_PROPERTY (TARGET ${target} APPEND_STRING PROPERTY COMPILE_FLAGS " ${flag} " )
22+ ENDMACRO (ADD_TEST_CFLAGS)
23+
2024ADD_EXECUTABLE (testing test .cpp)
2125TARGET_LINK_LIBRARIES (testing ${PROJECT_NAME} )
2226
2327ADD_UNIT_TEST(nodes nodes)
24- TARGET_LINK_LIBRARIES (nodes ${PROJECT_NAME} ${Boost_LIBRARIES} )
28+ ADD_TEST_CFLAGS(nodes "-DBOOST_TEST_DYN_LINK" )
29+ TARGET_LINK_LIBRARIES (nodes ${PROJECT_NAME} )
30+ TARGET_LINK_LIBRARIES (nodes ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} )
Original file line number Diff line number Diff line change 1818// <http://www.gnu.org/licenses/>.
1919
2020#define BOOST_TEST_MODULE nodes
21- #include < boost/test/included/unit_test.hpp>
21+ #include < boost/test/unit_test.hpp>
22+ #include < boost/utility/binary.hpp>
2223
2324#include < gepetto/viewer/node.h>
2425#include < gepetto/viewer/leaf-node-box.h>
You can’t perform that action at this time.
0 commit comments