Merge pull request #201 from i-rinat/master
Simplify inclusion as a subproject
This commit is contained in:
commit
49491e177a
|
|
@ -27,7 +27,7 @@ set (CMAKE_CXX_STANDARD 11)
|
||||||
# ------------------------------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# set include/ as include directory
|
# set include/ as include directory
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/include)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||||
|
|
||||||
# macro that adds a list of provided source files to a list called SRCS.
|
# macro that adds a list of provided source files to a list called SRCS.
|
||||||
# if variable SRCS does not yet exist, it is created.
|
# if variable SRCS does not yet exist, it is created.
|
||||||
|
|
@ -69,7 +69,7 @@ endif()
|
||||||
# ------------------------------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# set output directory
|
# set output directory
|
||||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
|
set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
||||||
|
|
||||||
if(AMQP-CPP_BUILD_SHARED)
|
if(AMQP-CPP_BUILD_SHARED)
|
||||||
# create shared lib
|
# create shared lib
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ On Windows you are required to define `NOMINMAX` when compiling code that includ
|
||||||
## Using cmake
|
## Using cmake
|
||||||
|
|
||||||
The CMake file supports both building and installing. You can choose not to use
|
The CMake file supports both building and installing. You can choose not to use
|
||||||
the install functionality, and instead manually use the build output at `bin/`. Keep
|
the install functionality, and instead manually use the build output at `build/bin/`. Keep
|
||||||
in mind that the TCP module is only supported for Linux. An example install method
|
in mind that the TCP module is only supported for Linux. An example install method
|
||||||
would be:
|
would be:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue