Guest User

Untitled

a guest
May 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.57 KB | None | 0 0
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 026691d..2d4febf 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -6,6 +6,7 @@ option(USE_GCONF_BACKEND "Detect and use gconf backend if available." OFF)
  6.  option(USE_CAMERA_SUPPORT "Detect and use camera support if available." ON)
  7.  option(USE_NLS "Build Native Language Support (using gettext)" ON)
  8.  option(USE_FLICKR "Enable Flickr support" ON)
  9. +option(USE_500PX "Enable 500px export support" ON)
  10.  option(USE_KWALLET "Build kwallet password storage backend" ON)
  11.  option(USE_GNOME_KEYRING "Build gnome-keyring password storage backend" ON)
  12.  option(USE_UNITY "Use libunity to report progress in the launcher" OFF)
  13.  
  14. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
  15. index 16fc0da..d76f9b9 100644
  16. --- a/src/CMakeLists.txt
  17. +++ b/src/CMakeLists.txt
  18. @@ -157,6 +157,15 @@ if(USE_FLICKR)
  19.    endif(FLICKCURL_FOUND)
  20.  endif(USE_FLICKR)
  21.  
  22. +if(USE_500PX)
  23. +  find_package(OAuth)
  24. +  if(OAuth_FOUND)
  25. +    include_directories(${OAuth_INCLUDE_DIRS})
  26. +    list(APPEND LIBS ${OAuth_LIBRARIES})
  27. +    add_definitions(${OAuth_DEFINITIONS})
  28. +  endif(OAuth_FOUND)
  29. +endif(USE_500PX)
  30.  
  31. index c602c3e..511e276 100644
  32. --- a/src/imageio/storage/CMakeLists.txt
  33. +++ b/src/imageio/storage/CMakeLists.txt
  34. @@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 2.6)
  35.  include_directories("${CMAKE_CURRENT_BINARY_DIR}/../../" "${CMAKE_CURRENT_SOURCE_DIR}")
  36.  set(MODULES disk picasa email gallery)
  37.  
  38. +if(OAuth_FOUND)
  39. +       list(APPEND MODULES fhpx)
  40. +endif(OAuth_FOUND)
  41. +
  42.  if(FLICKCURL_FOUND)
  43.         list(APPEND MODULES flickr)
  44.  endif(FLICKCURL_FOUND)
Add Comment
Please, Sign In to add comment