From 5074fc624f6b7a69f8784bdb922c55bdbfb9f314 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Mon, 16 Jun 2008 16:21:06 +0200 Subject: [PATCH] Provide an install for the built clients. Instead of having to install the files manually in the ebuild, with this patch it's possible to just call "make install" for them to be copied properly. Signed-off-by: Manuel Nickschas --- CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be095a94..bf34d35d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,3 +188,25 @@ if(APPLE) COMMAND ${CMAKE_SOURCE_DIR}/scripts/build/macosx_makebundle.py ${CMAKE_SOURCE_DIR} "Quassel" quassel) endif(APPLE) + +# Install rules +if(BUILD_CORE) + install(TARGETS quasselcore + RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +endif(BUILD_CORE) + +if(BUILD_QTCLIENT) + install(TARGETS quasselclient + RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) + + install(FILES quasselclient.desktop + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) +endif(BUILD_QTCLIENT) + +if(BUILD_MONO) + install(TARGETS quassel + RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) + + install(FILES quassel.desktop + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) +endif(BUILD_MONO) -- 2.20.1