-
Notifications
You must be signed in to change notification settings - Fork 142
/
CMakeLists.txt
38 lines (32 loc) · 865 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 2.8.12)
project(amqpcpp)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_library(
amqpcpp
SHARED
src/AMQP.cpp
src/AMQPBase.cpp
src/AMQPException.cpp
src/AMQPMessage.cpp
src/AMQPExchange.cpp
src/AMQPQueue.cpp
include/AMQPcpp.h
)
target_include_directories(amqpcpp PUBLIC include/)
add_library(
amqpcpp-static
STATIC
src/AMQP.cpp
src/AMQPBase.cpp
src/AMQPException.cpp
src/AMQPMessage.cpp
src/AMQPExchange.cpp
src/AMQPQueue.cpp
include/AMQPcpp.h
)
target_include_directories(amqpcpp-static PUBLIC include/)
add_subdirectory(rabbitmq-c)
target_include_directories(rabbitmq PRIVATE rabbitmq-c/librabbitmq/)
target_link_libraries(amqpcpp rabbitmq ssl crypto)
target_link_libraries(amqpcpp-static rabbitmq ssl crypto)