mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2025-09-06 08:52:05 +02:00
improve linking and installation
This commit is contained in:
parent
262533dae9
commit
40d974f804
9 changed files with 93 additions and 14 deletions
|
@ -15,16 +15,23 @@
|
|||
#* limitations under the License.
|
||||
#*****************************************************************************/
|
||||
|
||||
QT += core gui widgets
|
||||
QT += widgets
|
||||
TARGET = luaengine
|
||||
win32: TARGET = LuaEngine
|
||||
CONFIG += c++11
|
||||
|
||||
static: DEFINES += LUAENGINE_STATIC
|
||||
|
||||
# PROJECT PREFIX
|
||||
unix {
|
||||
isEmpty(LUAENGINE_PREFIX): LUAENGINE_PREFIX = /usr/local
|
||||
isEmpty(LUAENGINE_BINDIR): LUAENGINE_BINDIR = $$LUAENGINE_PREFIX/bin
|
||||
isEmpty(LUAENGINE_LIBDIR): LUAENGINE_LIBDIR = $$LUAENGINE_PREFIX/lib
|
||||
}
|
||||
|
||||
unix: LIBS += "-Wl,-rpath,\'$$LUAENGINE_LIBDIR\'" -L$$OUT_PWD/../luaengineos -lLuaEngineOS -L$$OUT_PWD/../luaengineio -lLuaEngineIO -L$$OUT_PWD/../luaenginegui -lLuaEngineGui -L$$OUT_PWD/../luaenginecore -lLuaEngine
|
||||
CONFIG(debug, debug|release): win32: LIBS += -L$$OUT_PWD/../luaengineos/debug -lLuaEngineOS -L$$OUT_PWD/../luaengineio/debug -lLuaEngineIO -L$$OUT_PWD/../luaenginegui/debug -lLuaEngineGui -L$$OUT_PWD/../luaenginecore/debug -lLuaEngine
|
||||
CONFIG(release, debug|release): win32: LIBS += -L$$OUT_PWD/../luaengineos/release -lLuaEngineOS -L$$OUT_PWD/../luaengineio/release -lLuaEngineIO -L$$OUT_PWD/../luaenginegui/release -lLuaEngineGui -L$$OUT_PWD/../luaenginecore/release -lLuaEngine
|
||||
unix: LIBS += -L$$OUT_PWD/../luaengineos -lLuaEngineOS -L$$OUT_PWD/../luaengineio -lLuaEngineIO -L$$OUT_PWD/../luaenginegui -lLuaEngineGui -L$$OUT_PWD/../luaenginecore -lLuaEngine
|
||||
|
||||
INCLUDEPATH += \
|
||||
../luaenginecore/lua \
|
||||
|
@ -35,3 +42,8 @@ INCLUDEPATH += \
|
|||
|
||||
SOURCES += \
|
||||
main.cpp
|
||||
|
||||
unix {
|
||||
target.path = $$LUAENGINE_BINDIR
|
||||
INSTALLS += target
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue