Commit f79bfff7 authored by fmg005's avatar fmg005

search for log4cpp library if required

parent d53d5bbe
......@@ -30,6 +30,14 @@ find_library(CONFIG++_LIBRARY NAMES libconfig++.a PATH /usr/lib/)
#-----------------------------------------------------------------------------------
find_library(LOG4CPP_LIBRARY NAMES liblog4cpp.a PATH /usr/lib/)
if (LOG4CPP_LIBRARY-FOUND)
set(log4cpp_lib "${LOG4CPP_LIBRARY}")
else()
set(log4cpp_lib)
endif()
#----------------------------------------------------------------------------------
#prosim depends on pulse this will call will give you access to pulse directories
#needed by prosim
find_package(Pulse REQUIRED NO_MODULE)
......@@ -75,6 +83,7 @@ target_link_libraries(prosim debug "${Pulse_DEBUG_LIBS}")
target_link_libraries(prosim optimized
${Pulse_LIBS}
${CONFIG++_LIBRARY}
${log4cpp_lib}
libserial)
install(TARGETS prosim DESTINATION ${Pulse_INSTALL}/bin)
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