Cleaned up RabbitMQ component building.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user