From: Diego 'Flameeyes' Pettenò Date: Mon, 16 Jun 2008 14:21:06 +0000 (+0200) Subject: Provide an install for the built clients. X-Git-Tag: 0.3.0~379^2 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=4bee97e877d9ba4677ab90456377822da6203e29 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 --- 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)