1
1
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
2
SET(COMMON_FILES common.h common.cc reader.h reader.cc unix_socket.h unix_socket.cc file.h file.cc introspection.h long_string.h long_string.cc mysql_client.h mysql_client.cc options.h options.cc query.h query.cc queue.h processor.h slow_query_log_parser.h slow_query_log_parser.cc worker.h worker.cc)
2
SET(COMMON_FILES common.h common.cc reader.h reader.cc unix_socket.h unix_socket.cc file.h file.cc introspection.h long_string.h long_string.cc mysql_client.h mysql_client.cc options.h options.cc query.h query.cc queue.h sheduler.h sheduler.cc supervisor.h supervisor.cc slow_query_log_parser.h slow_query_log_parser.cc worker.h worker.cc )
3
3
ADD_LIBRARY(common ${COMMON_FILES})
4
4
TARGET_LINK_LIBRARIES(common ${Boost_LIBRARIES} ${MYSQL_LIBRARIES} pthread)