Browse Source

Add Uranium CMake dir if it is set

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

+ 3 - 0
CMakeLists.txt

@@ -20,6 +20,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 "")
     include(UraniumTranslationTools)
     # Extract Strings