Hi, I've created a shared library with qt5 and that's fine. I want to export (copy) dll files and include files into another directory in my OS. I've done this:
BUILD_INCLUDE = myPath/include
BUILD_LIB = myPath/lib
target.path = $${BUILD_LIB}
INSTALLS += target
PRIVATE_FRAMEWORKS.files = $${HEADERS}
PRIVATE_FRAMEWORKS.path = $${BUILD_INCLUDE}
QMAKE_BUNDLE_DATA += PRIVATE_FRAMEWORKS
INSTALLS += PRIVATE_FRAMEWORKS
BUILD_INCLUDE = myPath/include
BUILD_LIB = myPath/lib
target.path = $${BUILD_LIB}
INSTALLS += target
PRIVATE_FRAMEWORKS.files = $${HEADERS}
PRIVATE_FRAMEWORKS.path = $${BUILD_INCLUDE}
QMAKE_BUNDLE_DATA += PRIVATE_FRAMEWORKS
INSTALLS += PRIVATE_FRAMEWORKS
To copy to clipboard, switch view to plain text mode
It is okay then!!! but then i need to copy to another direction too! but when i added some codes for another location just like above codes,the qmake didn't generate dll files for second direction i've provided. what am i missing? the include files generated fine
BUILD_INCLUDE2 = myPath2/include
BUILD_LIB2 = myPath2/lib
target.path = $${BUILD_LIB2 }
INSTALLS += target
PRIVATE_FRAMEWORKS2.files = $${HEADERS}
PRIVATE_FRAMEWORKS2.path = $${BUILD_INCLUDE2}
QMAKE_BUNDLE_DATA += PRIVATE_FRAMEWORKS2
INSTALLS += PRIVATE_FRAMEWORKS2
BUILD_INCLUDE2 = myPath2/include
BUILD_LIB2 = myPath2/lib
target.path = $${BUILD_LIB2 }
INSTALLS += target
PRIVATE_FRAMEWORKS2.files = $${HEADERS}
PRIVATE_FRAMEWORKS2.path = $${BUILD_INCLUDE2}
QMAKE_BUNDLE_DATA += PRIVATE_FRAMEWORKS2
INSTALLS += PRIVATE_FRAMEWORKS2
To copy to clipboard, switch view to plain text mode
And another thing is that qmake won't create lib files for both directions when i create a plugin project (it will creates lib files for shared lib but not plugin project)!! But it creates lib files in debug/release folder! What's wrong?
Bookmarks