Boost

To initialize the BOOST_INC and and BOOST_LIB environment variables source the boost module (ask your local system administrator where to find it).

Log

To use the log module from boost add the following to your cmake file.

find_package(Threads REQUIRED)
 
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lrt")
 
include_directories($ENV{BOOST_INC})
 
target_link_libraries (${TARGET} ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(${TARGET} $ENV{BOOST_LIB}/libboost_random-gcc46-mt-d-1_54.a)
target_link_libraries(${TARGET} $ENV{BOOST_LIB}/libboost_log-gcc46-mt-d-1_54.a)
target_link_libraries(${TARGET} $ENV{BOOST_LIB}/libboost_log_setup-gcc46-mt-d-1_54.a)
target_link_libraries(${TARGET} $ENV{BOOST_LIB}/libboost_thread-gcc46-mt-d-1_54.a)
target_link_libraries(${TARGET} $ENV{BOOST_LIB}/libboost_system-gcc46-mt-d-1_54.a)
Log In