Skip to content
Snippets Groups Projects
Commit 02983d3b authored by mirkowaechter's avatar mirkowaechter
Browse files

Boost unit test libs are only linked to tests

git-svn-id: http://svn.code.sf.net/p/simox/code/trunk@858 042f3d55-54a8-47e9-b7fb-15903f145c44
parent df183797
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,9 @@ MACRO(ADD_VR_TEST TEST_NAME)
INCLUDE_DIRECTORIES("${PROJECT_SOURCE_DIR}/..")
ADD_DEFINITIONS(${Simox_EXTERNAL_LIBRARY_FLAGS})
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK)
FIND_PACKAGE(Boost 1.46.0 COMPONENTS unit_test_framework REQUIRED)
ADD_EXECUTABLE(${TEST_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_NAME}.cpp)
TARGET_LINK_LIBRARIES(${TEST_NAME} VirtualRobot ${Simox_EXTERNAL_LIBRARIES})
TARGET_LINK_LIBRARIES(${TEST_NAME} VirtualRobot ${Simox_EXTERNAL_LIBRARIES} ${BOOST_LIBRARIES})
SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${Simox_TEST_DIR})
SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES FOLDER "VirtualRobot Tests")
ADD_TEST(NAME VirtualRobot_${TEST_NAME}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment