endif()
endif(BUILD_USB_SUPPORT)
-add_library("TransportManager" ${SOURCES})
+add_library(${target} ${SOURCES})
if (BUILD_USB_SUPPORT)
if (CMAKE_SYSTEM_NAME STREQUAL "QNX")
endif(BUILD_USB_SUPPORT)
if (BUILD_AVAHI_SUPPORT)
- target_link_libraries ("TransportManager" avahi-common)
+ target_link_libraries(${target} avahi-common)
endif()
-target_link_libraries ("TransportManager" log4cxx)
-if (BUILD_BT_SUPPORT)
- target_link_libraries("TransportManager" bluetooth)
+
+if(ENABLE_LOG)
+ add_dependencies(${target} liblog4cxx)
+ target_link_libraries(${target} log4cxx -L${LOG4CXX_LIBS_DIRECTORY})
endif()
-if( BUILD_SHARED_LIBS )
- install (FILES ${CMAKE_CURRENT_BINARY_DIR}/libTransportManager.so DESTINATION lib)
+if (BUILD_BT_SUPPORT)
+ target_link_libraries(${target} bluetooth)
endif()