Blob Blame History Raw
diff -up ./cmake/SearchForStuff.cmake.fedora ./cmake/SearchForStuff.cmake
--- ./cmake/SearchForStuff.cmake.fedora	2018-11-19 17:34:10.000000000 -0500
+++ ./cmake/SearchForStuff.cmake	2019-02-04 20:53:15.293222760 -0500
@@ -502,6 +502,13 @@ if (PKG_CONFIG_FOUND)
   endif ()
 
   ########################################
+  # Find SkyX
+  pkg_check_modules(SKYX SKYX)
+  if (NOT SKYX_FOUND)
+    BUILD_WARNING("SkyX not found, using private copy of SkyX")
+  endif()
+
+  ########################################
   # Find Player
   pkg_check_modules(PLAYER playercore>=3.0 playerc++ playerwkb)
   if (NOT PLAYER_FOUND)
@@ -795,7 +802,7 @@ endif()
 ########################################
 # Find QWT (QT graphing library)
 find_path(QWT_INCLUDE_DIR NAMES qwt.h PATHS
-  /usr/include
+  /usr/include/qt5
   /usr/local/include
   /usr/local/lib/qwt.framework/Headers
   ${QWT_WIN_INCLUDE_DIR}
diff -up ./gazebo/rendering/Camera.cc.fedora ./gazebo/rendering/Camera.cc
--- ./gazebo/rendering/Camera.cc.fedora	2018-11-19 17:34:12.000000000 -0500
+++ ./gazebo/rendering/Camera.cc	2019-02-04 20:52:55.797154299 -0500
@@ -36,7 +36,7 @@
   #include "gazebo/common/win_dirent.h"
 #endif
 
-#include "gazebo/rendering/skyx/include/SkyX.h"
+#include "SkyX.h"
 
 #include "gazebo/common/Assert.hh"
 #include "gazebo/common/Events.hh"
diff -up ./gazebo/rendering/CMakeLists.txt.fedora ./gazebo/rendering/CMakeLists.txt
--- ./gazebo/rendering/CMakeLists.txt.fedora	2018-11-19 17:34:12.000000000 -0500
+++ ./gazebo/rendering/CMakeLists.txt	2019-02-04 20:52:55.797154299 -0500
@@ -3,10 +3,15 @@ include (${gazebo_cmake_dir}/GazeboUtils
 include_directories(SYSTEM
   ${OGRE_INCLUDE_DIRS}
   ${TBB_INCLUDEDIR}
-  skyx
-  skyx/include
 )
 
+if (SKYX_FOUND)
+  include_directories(SYSTEM ${SKYX_INCLUDE_DIRS})
+else()
+  include_directories(skyx skyx/include)
+endif()
+
+
 if (WIN32)
   include_directories(${libdl_include_dir})
 endif()
@@ -146,7 +151,10 @@ if (${OGRE_VERSION} VERSION_GREATER 1.7.
 endif()
 
 add_subdirectory(selection_buffer)
+
+if (NOT SKYX_FOUND)
 add_subdirectory(skyx)
+endif()
 
 if (HAVE_OCULUS)
   set (sources ${sources}
@@ -229,6 +237,10 @@ target_link_libraries(gazebo_rendering
   ${IGNITION-MSGS_LIBRARIES}
 )
 
+if (SKYX_FOUND)
+  target_link_libraries(gazebo_rendering ${SKYX_LIBRARIES})
+endif()
+
 if (HAVE_OCULUS)
   target_link_libraries(gazebo_rendering ${OculusVR_LIBRARIES})
 endif()