Provide an install for the built clients.
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Mon, 16 Jun 2008 14:21:06 +0000 (16:21 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 16 Jun 2008 14:30:38 +0000 (16:30 +0200)
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 <sputnick@quassel-irc.org>
CMakeLists.txt

index be095a9..bf34d35 100644 (file)
@@ -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)