libt2n-git Archives

Subject: C++ inter-process communication library branch, cmake-conversion, updated. v0.6-14-g34721cc

From: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 29 Aug 2011 15:26:47 +0200 (CEST)
The branch, cmake-conversion has been updated
       via  34721cc426d4664e002391ac8e7bd96215cd278f (commit)
      from  b24bd083fe58d644ba3b4e8db76636dddd842b9d (commit)


- Log -----------------------------------------------------------------
commit 34721cc426d4664e002391ac8e7bd96215cd278f
Author: Kristóf Katus <kristof.katus@xxxxxxxxxxxxx>
Date:   Fri Aug 26 11:37:10 2011 +0200

    Small corrections to Libt2n.cmake - linking the boost serialization library 
to the client libraries.

-----------------------------------------------------------------------

Summary of changes:
 codegen/Libt2n.cmake                  |   10 +++++++++-
 examples-codegen/cmake/CMakeLists.txt |    3 ++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/codegen/Libt2n.cmake b/codegen/Libt2n.cmake
index a31edee..f547fe9 100644
--- a/codegen/Libt2n.cmake
+++ b/codegen/Libt2n.cmake
@@ -1,8 +1,14 @@
-# Detect libt2n. Version of this file: 1.2
+# Version of this file: 1.3
+
+# Detect libt2n
 pkg_check_modules(LIBT2N REQUIRED libt2n)
 include_directories(${LIBT2N_INCLUDE_DIRS})
 link_directories(${LIBT2N_LIBRARY_DIRS})
 
+# Detect the boost serialization library
+find_package(Boost 1.34 COMPONENTS serialization REQUIRED)
+include_directories(${Boost_INCLUDE_DIRS})
+
 # Get locations from pkgconfig
 execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable libt2n_codegen 
libt2n
                                 OUTPUT_VARIABLE LIBT2N_CODEGEN
@@ -87,11 +93,13 @@ function(setup_libt2n)
         # Create shared client library
         add_library(${CMDGROUP} SHARED ${CMDGROUP}_client.cpp 
${CMDGROUP}_client.hxx)
         set_target_properties(${CMDGROUP} PROPERTIES VERSION ${VERSION} 
SOVERSION 1)
+       target_link_libraries(${CMDGROUP} ${Boost_SERIALIZATION_LIBRARIES})
         install(TARGETS ${CMDGROUP} LIBRARY DESTINATION lib COMPONENT 
sharedlibs)
 
         # Create static client library
         add_library(${CMDGROUP}-static STATIC ${CMDGROUP}_client.cpp 
${CMDGROUP}_client.hxx)
         set_target_properties(${CMDGROUP}-static PROPERTIES OUTPUT_NAME 
"${CMDGROUP}")
+       target_link_libraries(${CMDGROUP}-static 
${Boost_SERIALIZATION_LIBRARIES})
         install(TARGETS ${CMDGROUP}-static ARCHIVE DESTINATION lib COMPONENT 
staticlibs)
 
         # Prevent clobbering each other during the build
diff --git a/examples-codegen/cmake/CMakeLists.txt 
b/examples-codegen/cmake/CMakeLists.txt
index 60bb8d1..8ed2c7e 100644
--- a/examples-codegen/cmake/CMakeLists.txt
+++ b/examples-codegen/cmake/CMakeLists.txt
@@ -6,11 +6,12 @@ set(t2n_mydaemon_GROUP
     ${CMAKE_SOURCE_DIR}/src/t2n_mydaemon.cpp
 )
 include(${CMAKE_SOURCE_DIR}/codegen/Libt2n.cmake)
+# Or "include(Libt2n)" if Libt2n.cmake is already installed in 
/${CMAKE_ROOT}/Modules
 
 # Call setup_libt2n with the CMDGROUP name
 setup_libt2n(t2n_mydaemon)
 
-# 
------------------------------------------------------------------------------------------------------
+# 
--------------------------------------------------------------------------------
 
 set(keymaker_cpp_sources
     something.cpp


hooks/post-receive
-- 
C++ inter-process communication library

--
libt2n-git - see http://www.intra2net.com/en/developer/libt2n for details.
To unsubscribe send a mail to libt2n-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • C++ inter-process communication library branch, cmake-conversion, updated. v0.6-14-g34721cc, libt2n-git <=