Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Install qt-only executable.

  • Loading branch information...
commit f258e7aca6c19565fa4c297f4535676e505aefba 1 parent cf5ee95
@pcapriotti authored
Showing with 18 additions and 1 deletion.
  1. +6 −1 CMakeLists.txt
  2. +12 −0 main-qt.rb
View
7 CMakeLists.txt
@@ -7,13 +7,18 @@ add_subdirectory(lib)
add_subdirectory(translations)
configure_file(main.rb main.rb)
+configure_file(main-qt.rb main-qt.rb)
install(DIRECTORY lib DESTINATION ${DATA_INSTALL_DIR}/kaya
FILES_MATCHING PATTERN "*.rb"
PATTERN "plugins" EXCLUDE)
install(DIRECTORY lib/plugins DESTINATION ${DATA_INSTALL_DIR}/kaya/lib)
+
install(FILES ${PROJECT_BINARY_DIR}/main.rb
DESTINATION ${BIN_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
RENAME kaya)
-
+install(FILES ${PROJECT_BINARY_DIR}/main-qt.rb
+ DESTINATION ${BIN_INSTALL_DIR}
+ PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ RENAME kaya-qt)
View
12 main-qt.rb
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+# Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+$toolkit = :qt
+require '${DATA_INSTALL_DIR}/kaya/lib/kaya.rb'
+
+start_kaya if __FILE__ == $0
Please sign in to comment.
Something went wrong with that request. Please try again.