renamed project to amqpcpp for cmake (fixes #140)
This commit is contained in:
parent
e1f92ec2cc
commit
1e03b64cb4
|
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
project(amqp-cpp)
|
project(amqpcpp)
|
||||||
|
|
||||||
# ensure c++11 on all compilers
|
# ensure c++11 on all compilers
|
||||||
include(set_cxx_norm.cmake)
|
include(set_cxx_norm.cmake)
|
||||||
|
|
@ -27,14 +27,14 @@ add_subdirectory(include)
|
||||||
option(BUILD_SHARED "build shared library" OFF)
|
option(BUILD_SHARED "build shared library" OFF)
|
||||||
|
|
||||||
if(BUILD_SHARED)
|
if(BUILD_SHARED)
|
||||||
add_library(amqp-cpp SHARED ${SRCS})
|
add_library(amqpcpp SHARED ${SRCS})
|
||||||
set_target_properties(amqp-cpp PROPERTIES SOVERSION 2.7)
|
set_target_properties(amqpcpp PROPERTIES SOVERSION 2.7)
|
||||||
install(TARGETS amqp-cpp
|
install(TARGETS amqpcpp
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
add_library(amqp-cpp STATIC ${SRCS})
|
add_library(amqpcpp STATIC ${SRCS})
|
||||||
install(TARGETS amqp-cpp
|
install(TARGETS amqpcpp
|
||||||
ARCHIVE DESTINATION lib
|
ARCHIVE DESTINATION lib
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue