Files
@ ab20eefd6f16
Branch filter:
Location: libtransport.git/plugin/src/CMakeLists.txt - annotation
ab20eefd6f16
1.3 KiB
text/plain
Downgraded PQXX API used due to the 2.6 series on most modern linux distros.
Implemented most of the other functions.
Implemented most of the other functions.
53353b28b850 53353b28b850 53353b28b850 53353b28b850 81beee07a288 81beee07a288 81beee07a288 81beee07a288 81beee07a288 53353b28b850 7f06cbad05fa 4aebd62cdd94 4aebd62cdd94 4aebd62cdd94 4aebd62cdd94 4aebd62cdd94 4aebd62cdd94 4aebd62cdd94 4aebd62cdd94 4aebd62cdd94 4aebd62cdd94 53353b28b850 53353b28b850 53353b28b850 53353b28b850 53353b28b850 53353b28b850 53353b28b850 53353b28b850 53353b28b850 | cmake_minimum_required(VERSION 2.6)
FILE(GLOB SRC *.cpp *.h)
FILE(GLOB HEADERS ../include/transport/*.h)
if (NOT WIN32)
ADD_LIBRARY(transport-plugin SHARED ${HEADERS} ${SRC} ${PROTOBUF_SRC} ${PROTOBUF_HDRS} ../../src/memoryusage.cpp ${CMAKE_CURRENT_BINARY_DIR}/../../include/transport/protocol.pb.cc)
else()
ADD_LIBRARY(transport-plugin STATIC ${HEADERS} ${SRC} ${PROTOBUF_SRC} ${PROTOBUF_HDRS} ../../src/memoryusage.cpp ${CMAKE_CURRENT_BINARY_DIR}/../../include/transport/protocol.pb.cc)
endif()
ADD_DEPENDENCIES(transport-plugin pb)
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/../../include/transport/protocol.pb.cc PROPERTIES GENERATED 1)
if (CMAKE_COMPILER_IS_GNUCXX)
ADD_DEFINITIONS(-fPIC)
endif()
if (NOT WIN32)
TARGET_LINK_LIBRARIES(transport-plugin ${PROTOBUF_LIBRARIES} ${LOG4CXX_LIBRARIES})
else()
TARGET_LINK_LIBRARIES(transport-plugin ${PROTOBUF_LIBRARIES} ${LOG4CXX_LIBRARIES} ws2_32.lib)
endif()
SET_TARGET_PROPERTIES(transport-plugin PROPERTIES
VERSION ${TRANSPORT_VERSION} SOVERSION ${TRANSPORT_VERSION}
)
INSTALL(TARGETS transport-plugin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
#CONFIGURE_FILE(transport.pc.in "${CMAKE_CURRENT_BINARY_DIR}/transport.pc")
#INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/transport.pc" DESTINATION lib/pkgconfig)
|