Installation of Libt2n.cmake
authorKristóf Katus <kristof.katus@intra2net.com>
Thu, 25 Aug 2011 15:34:38 +0000 (17:34 +0200)
committerKristóf Katus <kristof.katus@intra2net.com>
Thu, 25 Aug 2011 15:34:38 +0000 (17:34 +0200)
codegen/CMakeLists.txt
codegen/Libt2n.cmake [moved from examples-codegen/cmake/Libt2n.cmake with 100% similarity]
examples-codegen/cmake/CMakeLists.txt
examples-codegen/example1/CMakeLists.txt
examples-codegen/example2/CMakeLists.txt
libt2n.spec.in

index 1b62402..55d5243 100644 (file)
@@ -13,3 +13,4 @@ target_link_libraries(libt2n-codegen ${XMLPP_LIBRARIES})
 install(TARGETS libt2n-codegen DESTINATION bin)
 install(FILES ${CPP_HEADERS} DESTINATION include)
 install(FILES clientlib.pc.in DESTINATION share/libt2n)
+install(FILES Libt2n.cmake DESTINATION ${CMAKE_ROOT}/Modules)
index deb1c63..60bb8d1 100644 (file)
@@ -5,7 +5,7 @@
 set(t2n_mydaemon_GROUP
     ${CMAKE_SOURCE_DIR}/src/t2n_mydaemon.cpp
 )
-include(Libt2n.cmake)
+include(${CMAKE_SOURCE_DIR}/codegen/Libt2n.cmake)
 
 # Call setup_libt2n with the CMDGROUP name
 setup_libt2n(t2n_mydaemon)
index 8231afa..eb0f0d9 100644 (file)
@@ -25,7 +25,7 @@ include(CPack)
 # for each command group list the files to parse for LIBT2N_EXPORT
 set(t2nexample_GROUP ${CMAKE_CURRENT_SOURCE_DIR}/t2nexample.cpp)
 # include CMake snippet doing all the magic
-include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/Libt2n.cmake)
+include(${CMAKE_SOURCE_DIR}/codegen/Libt2n.cmake)
 # command groups are listed here (seperated by spaces)
 setup_libt2n(t2nexample)
 
index 9308cbe..31cc66a 100644 (file)
@@ -35,7 +35,7 @@ set(other_GROUP
 #    ${CMAKE_CURRENT_SOURCE_DIR}/foo.hxx
 #)
 # include CMake snippet doing all the magic
-include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/Libt2n.cmake)
+include(${CMAKE_SOURCE_DIR}/codegen/Libt2n.cmake)
 # command groups are listed here (seperated by spaces)
 setup_libt2n(default other)
 
index c49047a..e2241b4 100644 (file)
@@ -17,7 +17,7 @@ C++ IPC library
 %package   devel
 Summary:   talk2neighbor - C++ IPC library
 Group:     Intranator/Development
-Requires:  libt2n = %{version} libgettext gccxml libxml++ boost-devel
+Requires:  libt2n = %{version} gccxml libxml++ boost-devel
 BuildPrereq: boost-devel
 
 %description devel
@@ -71,3 +71,4 @@ rm -fr $RPM_BUILD_ROOT
 %{prefix}/include/
 # %{prefix}/share/aclocal
 %{prefix}/share/libt2n
+%{prefix}/share/cmake/Modules/Libt2n.cmake