Cleaned up RabbitMQ component building.

This commit is contained in:
Markus Makela
2014-09-16 11:34:05 +03:00
parent 98671de7f3
commit fdf1271138
3 changed files with 35 additions and 20 deletions

View File

@ -1,8 +1,12 @@
if(BUILD_RABBITMQ)
add_library(mqfilter SHARED mqfilter.c)
target_link_libraries(mqfilter utils query_classifier log_manager rabbitmq)
install(TARGETS mqfilter DESTINATION modules)
endif(BUILD_RABBITMQ)
if(RABBITMQ_LIB AND RABBITMQ_HEADERS)
add_library(mqfilter SHARED mqfilter.c)
target_link_libraries(mqfilter utils query_classifier log_manager rabbitmq)
install(TARGETS mqfilter DESTINATION modules)
else()
message(ERROR "Error: Cannot find the required librabbitmq-c locations, please check that you have them configured correctly.")
endif()
endif()
add_library(regexfilter SHARED regexfilter.c)
target_link_libraries(regexfilter utils log_manager)