Hello,
I am writing an API at the moment and am doing so with some success. I can build it all fine, however i am wondering in my project file, is there a way to specify where the lib or application should be installed. So i don't have to specify the TARGET and build with super user permissions.
I want people to be able to complile my library anywhere with the following
qmake
make
sudo make install
qmake
make
sudo make install
To copy to clipboard, switch view to plain text mode
So yea, not sure how to specify the install path. Just as an example project file. I may have something like the following
TEMPLATE = lib
TARGET = example
DEPENDPATH += .
INCLUDEPATH += .
DESTDIR = build
VERSION = 1.0.0
MOC_DIR = mocs
OBJECTS_DIR = obj
# Input
HEADERS += example.h
SOURCES += example.cpp
TEMPLATE = lib
TARGET = example
DEPENDPATH += .
INCLUDEPATH += .
DESTDIR = build
VERSION = 1.0.0
MOC_DIR = mocs
OBJECTS_DIR = obj
# Input
HEADERS += example.h
SOURCES += example.cpp
To copy to clipboard, switch view to plain text mode
So the created .so is found in the build directory. So if i now execute make install i wish to install the .so into /usr/lib/ as libexample.so
Any advice
Cheers
Bookmarks