Commit 5fd21aba authored by Ghislain MARY's avatar Ghislain MARY

Change the CMake target name of the bctoolbox_tester executable to prevent...

Change the CMake target name of the bctoolbox_tester executable to prevent confusion the library target name.
parent 8d6a1dce
......@@ -29,12 +29,13 @@ if(CUNIT_FOUND)
string(REPLACE ";" " " LINK_FLAGS_STR "${LINK_FLAGS}")
add_executable(bctoolbox_tester ${TESTER_SOURCES})
add_executable(bctoolbox_tester_exe ${TESTER_SOURCES})
if(NOT "${LINK_FLAGS_STR}" STREQUAL "")
set_target_properties(bctoolbox_tester PROPERTIES LINK_FLAGS "${LINK_FLAGS_STR}")
set_target_properties(bctoolbox_tester_exe PROPERTIES LINK_FLAGS "${LINK_FLAGS_STR}")
endif()
target_include_directories(bctoolbox_tester PUBLIC ${BCTOOLBOX_TESTER_INCLUDE_DIRS})
target_link_libraries(bctoolbox_tester ${BCTOOLBOX_TESTER_LIBRARIES} bctoolbox bctoolbox-tester)
set_target_properties(bctoolbox_tester PROPERTIES XCODE_ATTRIBUTE_WARNING_CFLAGS "")
set_target_properties(bctoolbox_tester_exe PROPERTIES OUTPUT_NAME bctoolbox_tester)
target_include_directories(bctoolbox_tester_exe PUBLIC ${BCTOOLBOX_TESTER_INCLUDE_DIRS})
target_link_libraries(bctoolbox_tester_exe ${BCTOOLBOX_TESTER_LIBRARIES} bctoolbox bctoolbox-tester)
set_target_properties(bctoolbox_tester_exe PROPERTIES XCODE_ATTRIBUTE_WARNING_CFLAGS "")
add_test(NAME bctoolbox_tester COMMAND bctoolbox_tester --verbose)
endif()
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