Skip to content
Snippets Groups Projects
Commit 73e9d0df authored by Martin Killenberg's avatar Martin Killenberg
Browse files

adding the current path to the linker flags before the other link pathes so an...

adding the current path to the linker flags before the other link pathes so an installed library is not taken, but the one supposed to be tested
parent 34e9d338
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,8 @@ if(TESTING_IS_ENABLED)
get_filename_component(excutableName ${testExecutableSrcFile} NAME_WE)
# each test includes a DOOCS server
add_executable(${excutableName} ${testExecutableSrcFile})
set_target_properties(${excutableName} PROPERTIES COMPILE_FLAGS "${ChimeraTK-ControlSystemAdapter_CXX_FLAGS} ${DOOCS_CXX_FLAGS}")
set_target_properties(${excutableName} PROPERTIES LINK_FLAGS "${ChimeraTK-ControlSystemAdapter_LINKER_FLAGS} ${DOOCS_LINKER_FLAGS}")
set_target_properties(${excutableName} PROPERTIES COMPILE_FLAGS "${ChimeraTK-ControlSystemAdapter_CXX_FLAGS} ${DOOCS_CXX_FLAGS} ${doocs-server-test-helper_CXX_FLAGS}")
set_target_properties(${excutableName} PROPERTIES LINK_FLAGS "-Wl,-rpath=${CMAKE_BINARY_DIR},--enable-new-dtags ${ChimeraTK-ControlSystemAdapter_LINKER_FLAGS} ${DOOCS_LINKER_FLAGS} ${doocs-server-test-helper_LINKER_FLAGS}")
target_link_libraries(${excutableName} ${PROJECT_NAME} ${doocs-server-test-helper_LIBRARIES})
add_test(${excutableName} ${excutableName})
endforeach( testExecutableSrcFile )
......
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