Commit af93922a authored by Ghislain MARY's avatar Ghislain MARY

Fix build of tester with CMake.

parent c17fd39e
......@@ -49,11 +49,7 @@ add_executable(belle_sip_tester ${TESTER_SOURCES})
if(NOT "${LINK_FLAGS_STR}" STREQUAL "")
set_target_properties(belle_sip_tester PROPERTIES LINK_FLAGS "${LINK_FLAGS_STR}")
endif()
if("${CMAKE_VERSION}" VERSION_GREATER "2.8.10")
target_include_directories(belle_sip_tester PUBLIC ${CUNIT_INCLUDE_DIR})
else()
include_directories(${CUNIT_INCLUDE_DIR})
endif()
target_include_directories(belle_sip_tester PUBLIC ${CUNIT_INCLUDE_DIR} PRIVATE common)
target_link_libraries(belle_sip_tester ${CUNIT_LIBRARIES} bellesip)
add_test(NAME belle_sip_tester COMMAND belle_sip_tester --verbose)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment