project (CBC)

FIND_PACKAGE(Boost COMPONENTS date_time filesystem thread
	program_options regex)

include_directories(
    ${CMAKE_CURRENT_BINARY_DIR}
	${Boost_INCLUDE_DIR}
	${Comparator_SOURCE_DIR}
	${Matrices_SOURCE_DIR}
)

if(NOT Boost_FOUND)
	MESSAGE(FATAL_ERROR "Boost not found!")
endif(NOT Boost_FOUND)

link_directories(
	${Matrices_BINARY_DIR}
	${Comparator_BINARY_DIR}
)

add_executable(cbc cbc.cpp clutowrapper.cpp kbest.cpp config.cpp)
target_link_libraries(cbc ${Boost_LIBRARIES})

target_link_libraries(cbc matrices comparator)
