Browse Source

Add Uranium CMake dir if it is set

Contributes to issue CURA-3487.
Ghostkeeper 8 years ago
parent
commit
d7f603517d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      CMakeLists.txt

+ 3 - 0
CMakeLists.txt

@@ -22,6 +22,9 @@ set(CURA_BUILDTYPE "" CACHE STRING "Build type of Cura, eg. 'PPA'")
 configure_file(${CMAKE_SOURCE_DIR}/cura.desktop.in ${CMAKE_BINARY_DIR}/cura.desktop @ONLY)
 configure_file(cura/CuraVersion.py.in CuraVersion.py @ONLY)
 
+if(NOT ${URANIUM_DIR} STREQUAL "")
+    set(CMAKE_MODULE_PATH "${URANIUM_DIR}/cmake")
+endif()
 if(NOT ${URANIUM_SCRIPTS_DIR} STREQUAL "")
     list(APPEND CMAKE_MODULE_PATH ${URANIUM_DIR}/cmake)
     include(UraniumTranslationTools)