This commit is contained in:
mfeemster 2016-01-04 16:51:23 -08:00
commit a8688e87b5
3 changed files with 15 additions and 4 deletions

View File

@ -1,7 +1,6 @@
VERSION = 0.9.9.2 VERSION = 0.9.9.2
# When this file is included: message(PWD: $$(PWD))
# - $$(PWD) is the project folder, e.g. ./Builds/QtCreator/Ember/
# TODO: win32 install dirs? # TODO: win32 install dirs?
@ -11,7 +10,16 @@ unix|macx {
SHARE_INSTALL_DIR = /usr/share/fractorium SHARE_INSTALL_DIR = /usr/share/fractorium
} }
EMBER_ROOT = ./../../../ # When loaded by QtCreator
EMBER_ROOT = $$(PWD)/../../..
# When compiling from project root
autobuild {
EMBER_ROOT = $$(PWD)/../..
}
message(EMBER_ROOT: $$EMBER_ROOT)
SRC_DIR = $$EMBER_ROOT/Source SRC_DIR = $$EMBER_ROOT/Source
SRC_COMMON_DIR = $$EMBER_ROOT/Source/EmberCommon SRC_COMMON_DIR = $$EMBER_ROOT/Source/EmberCommon
ASSETS_DIR = $$EMBER_ROOT/Data ASSETS_DIR = $$EMBER_ROOT/Data

View File

@ -1,5 +1,8 @@
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered CONFIG += ordered
CONFIG += autobuild
# message(PWD: $$(PWD))
LOCAL_LIB_DIR = $$(PWD)/Builds/lib LOCAL_LIB_DIR = $$(PWD)/Builds/lib
LOCAL_INCLUDE_DIR = $$(PWD)/Builds/include LOCAL_INCLUDE_DIR = $$(PWD)/Builds/include