Permalink
Browse files

Make Gnome Keyring an optional dependency.

  • Loading branch information...
1 parent f7d1038 commit 16e255b047e140fca29fea192792d9f3b639a607 @floppym floppym committed Feb 17, 2012
Showing with 13 additions and 14 deletions.
  1. +13 −14 remmina-plugins-gnome/CMakeLists.txt
@@ -17,21 +17,20 @@
# Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307, USA.
-set(REMMINA_PLUGINS_GNOME_SRCS
- src/gkeyring_plugin.c
- )
+find_suggested_package(GNOMEKEYRING)
+if(GNOMEKEYRING_FOUND)
+ set(REMMINA_PLUGINS_GNOME_SRCS
+ src/gkeyring_plugin.c
+ )
-add_library(remmina-plugins-gnome ${REMMINA_PLUGINS_GNOME_SRCS})
-set_target_properties(remmina-plugins-gnome PROPERTIES PREFIX "")
+ add_library(remmina-plugins-gnome ${REMMINA_PLUGINS_GNOME_SRCS})
+ set_target_properties(remmina-plugins-gnome PROPERTIES PREFIX "")
-include_directories(${GTK_INCLUDE_DIRS})
-target_link_libraries(remmina-plugins-gnome ${GTK_LIBRARY_DIRS})
+ include_directories(${GTK_INCLUDE_DIRS})
+ target_link_libraries(remmina-plugins-gnome ${GTK_LIBRARY_DIRS})
-find_required_package(GNOMEKEYRING)
-if(GNOMEKEYRING_FOUND)
- include_directories(${GNOMEKEYRING_INCLUDE_DIRS})
- target_link_libraries(remmina-plugins-gnome ${GNOMEKEYRING_LIBRARIES})
-endif()
-
-install(TARGETS remmina-plugins-gnome DESTINATION ${REMMINA_PLUGINDIR})
+ include_directories(${GNOMEKEYRING_INCLUDE_DIRS})
+ target_link_libraries(remmina-plugins-gnome ${GNOMEKEYRING_LIBRARIES})
+ install(TARGETS remmina-plugins-gnome DESTINATION ${REMMINA_PLUGINDIR})
+endif()

0 comments on commit 16e255b

Please sign in to comment.