From 53353b28b8509c11309581c5b0a315bf78fe18b7 Mon Sep 17 00:00:00 2001 From: HanzZ Date: Tue, 18 Oct 2011 12:46:13 +0200 Subject: [PATCH] Added missing CMakeList.txt --- plugin/CMakeLists.txt | 1 + plugin/src/CMakeLists.txt | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 plugin/CMakeLists.txt create mode 100644 plugin/src/CMakeLists.txt diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt new file mode 100644 index 00000000..4b7537b5 --- /dev/null +++ b/plugin/CMakeLists.txt @@ -0,0 +1 @@ +ADD_SUBDIRECTORY(src) diff --git a/plugin/src/CMakeLists.txt b/plugin/src/CMakeLists.txt new file mode 100644 index 00000000..5995ea8f --- /dev/null +++ b/plugin/src/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 2.6) +FILE(GLOB SRC *.cpp *.h) +FILE(GLOB HEADERS ../include/transport/*.h) + +ADD_LIBRARY(transport-plugin SHARED ${HEADERS} ${SRC} ${PROTOBUF_SRC} ${PROTOBUF_HDRS} ../../src/memoryusage.cpp ../../include/transport/protocol.pb.cc) +ADD_DEPENDENCIES(transport-plugin pb) +ADD_DEFINITIONS(-fPIC) + +TARGET_LINK_LIBRARIES(transport-plugin ${PROTOBUF_LIBRARIES} ${LOG4CXX_LIBRARIES}) + +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)