--- CMakeLists.txt.orig +++ CMakeLists.txt @@ -96,6 +96,9 @@ message(FATAL_ERROR "CppUnit required to compile dvbs2") endif() +include(GrMiscUtils) +GR_LOGGING() + ######################################################################## # Setup the include and linker paths ######################################################################## @@ -107,12 +110,14 @@ ${Boost_INCLUDE_DIRS} ${CPPUNIT_INCLUDE_DIRS} ${GNURADIO_ALL_INCLUDE_DIRS} + ${LOG4CPP_INCLUDE_DIRS} ) link_directories( ${Boost_LIBRARY_DIRS} ${CPPUNIT_LIBRARY_DIRS} ${GNURADIO_RUNTIME_LIBRARY_DIRS} + ${LOG4CPP_LIBRARY_DIRS} ) # Set component parameters --- lib/CMakeLists.txt.orig +++ lib/CMakeLists.txt @@ -42,7 +42,7 @@ endif(NOT dvbs2_sources) add_library(gnuradio-dvbs2 SHARED ${dvbs2_sources}) -target_link_libraries(gnuradio-dvbs2 ${Boost_LIBRARIES} ${GNURADIO_ALL_LIBRARIES}) +target_link_libraries(gnuradio-dvbs2 ${Boost_LIBRARIES} ${GNURADIO_ALL_LIBRARIES} ${LOG4CPP_LIBRARIES}) set_target_properties(gnuradio-dvbs2 PROPERTIES DEFINE_SYMBOL "gnuradio_dvbs2_EXPORTS") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")