summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorOrochimarufan <orochimarufan.x3@gmail.com>2013-02-21 21:55:35 +0100
committerOrochimarufan <orochimarufan.x3@gmail.com>2013-02-21 21:55:35 +0100
commitd891032219c3faaa13a9d9a4d52659866e6773da (patch)
treed34a691a8f45f8d5b8a05471b1a1fd79a904bb79 /CMakeLists.txt
parentca1fd44637ad5ce9ec287ff71addd38e98f66f4f (diff)
downloadMultiMC-d891032219c3faaa13a9d9a4d52659866e6773da.tar
MultiMC-d891032219c3faaa13a9d9a4d52659866e6773da.tar.gz
MultiMC-d891032219c3faaa13a9d9a4d52659866e6773da.tar.lz
MultiMC-d891032219c3faaa13a9d9a4d52659866e6773da.tar.xz
MultiMC-d891032219c3faaa13a9d9a4d52659866e6773da.zip
use QtCreator's $QTPATH in CMake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 88e7e4d4..86619f0d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -264,6 +264,10 @@ ADD_DEPENDENCIES(MultiMC MultiMCLauncher libmmcutil libmmcsettings libmmcinst)
################################ INSTALLATION AND PACKAGING ################################
+# use QtCreator's QTDIR var
+IF(DEFINED ENV{QTDIR})
+ SET(Qt5_DIR $ENV{QTDIR})
+ENDIF()
######## Plugin and library folders ########
@@ -280,7 +284,7 @@ ENDIF()
IF(APPLE)
SET(PLUGIN_DEST_DIR MultiMC.app/Contents/MacOS)
SET(QTCONF_DEST_DIR MultiMC.app/Contents/Resources)
- SET(APPS "\${CMAKE_INSTALL_PREFIX}/MultiMC.app")
+ SET(APPS "\${CMAKE_INSTALL_PREFIX}/MultiMC.app")
ENDIF()
SET(QT_PLUGINS_DIR ${Qt5_DIR}/plugins)