From: Kristóf Katus Date: Thu, 25 Aug 2011 15:34:38 +0000 (+0200) Subject: Installation of Libt2n.cmake X-Git-Tag: latest_release~14 X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=commitdiff_plain;h=b24bd083fe58d644ba3b4e8db76636dddd842b9d Installation of Libt2n.cmake --- diff --git a/codegen/CMakeLists.txt b/codegen/CMakeLists.txt index 1b62402..55d5243 100644 --- a/codegen/CMakeLists.txt +++ b/codegen/CMakeLists.txt @@ -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) diff --git a/examples-codegen/cmake/Libt2n.cmake b/codegen/Libt2n.cmake similarity index 100% rename from examples-codegen/cmake/Libt2n.cmake rename to codegen/Libt2n.cmake diff --git a/examples-codegen/cmake/CMakeLists.txt b/examples-codegen/cmake/CMakeLists.txt index deb1c63..60bb8d1 100644 --- a/examples-codegen/cmake/CMakeLists.txt +++ b/examples-codegen/cmake/CMakeLists.txt @@ -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) diff --git a/examples-codegen/example1/CMakeLists.txt b/examples-codegen/example1/CMakeLists.txt index 8231afa..eb0f0d9 100644 --- a/examples-codegen/example1/CMakeLists.txt +++ b/examples-codegen/example1/CMakeLists.txt @@ -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) diff --git a/examples-codegen/example2/CMakeLists.txt b/examples-codegen/example2/CMakeLists.txt index 9308cbe..31cc66a 100644 --- a/examples-codegen/example2/CMakeLists.txt +++ b/examples-codegen/example2/CMakeLists.txt @@ -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) diff --git a/libt2n.spec.in b/libt2n.spec.in index c49047a..e2241b4 100644 --- a/libt2n.spec.in +++ b/libt2n.spec.in @@ -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