Browse Source

* add rpath to tools

master
Alex 'AdUser' Z 7 years ago
parent
commit
f2f40d86a0
  1. 5
      src/CMakeLists.txt

5
src/CMakeLists.txt

@ -9,8 +9,6 @@ if (WITH_CSOCKET)
endif () endif ()
add_executable("f2b" ${SOURCES}) add_executable("f2b" ${SOURCES})
set_target_properties("f2b" PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}/${CNAME}")
install(TARGETS "f2b" RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}) install(TARGETS "f2b" RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR})
if (WITH_CLIENT) if (WITH_CLIENT)
@ -39,6 +37,9 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries("f2b-backend-test" "dl") target_link_libraries("f2b-backend-test" "dl")
endif () endif ()
set_target_properties("f2b" "f2b-source-test" "f2b-filter-test" "f2b-backend-test"
PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}/${CNAME}")
install(TARGETS "f2b-source-test" "f2b-filter-test" "f2b-backend-test" install(TARGETS "f2b-source-test" "f2b-filter-test" "f2b-backend-test"
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

Loading…
Cancel
Save