How to put dynamic library project in one project
-
I think the simplest way to create a project in qt and load it into VS2019 is to create a subProject in Qt Creator.
Finally, what I want to do is manage the project that creates the executable file and the dynamic library project in one project.
@IknowQT Is there a question in your last post?
"New Subproject" is greyed out because Qt_libTEST is NOT a subdirs project!
You first need to create a subdirs project, then add your lib project as subproject there and then add your exe project as subproject.
You could also spend some time reading the link I gave you to understand how subdir projects work... -
Is there a way to put a dynamic library project in one project? Taking Visual Studio as an example, the main project and the library project can be used together in the project, but I wonder if it can be used in QT creator as well.
-
-
I think the simplest way to create a project in qt and load it into VS2019 is to create a subProject in Qt Creator.
Finally, what I want to do is manage the project that creates the executable file and the dynamic library project in one project.
@IknowQT Is there a question in your last post?
"New Subproject" is greyed out because Qt_libTEST is NOT a subdirs project!
You first need to create a subdirs project, then add your lib project as subproject there and then add your exe project as subproject.
You could also spend some time reading the link I gave you to understand how subdir projects work... -
@IknowQT Is there a question in your last post?
"New Subproject" is greyed out because Qt_libTEST is NOT a subdirs project!
You first need to create a subdirs project, then add your lib project as subproject there and then add your exe project as subproject.
You could also spend some time reading the link I gave you to understand how subdir projects work... -
Thank you. It worked out well.
Is there a flag that separates debug and release in the .pro file when building?@IknowQT Not sure I understand your question correctly. If you need to differentiate between debug and release inside your pro files, then yes, see https://doc.qt.io/qt-5/qmake-language.html
When building you just define whether you want to build in debug or release mode. -
@IknowQT Not sure I understand your question correctly. If you need to differentiate between debug and release inside your pro files, then yes, see https://doc.qt.io/qt-5/qmake-language.html
When building you just define whether you want to build in debug or release mode.I found a way to distinguish between release and debug in config.
CONFIG(debug, debug|release) { DESTDIR = $$PWD/../Depoly_Exec/debug } else { DESTDIR = $$PWD/../Depoly_Exec/release }
When built, exp,ilk,pdb files are also created, and these files don't need to be in the distribution folder, so I want to move only the dll file and the lib file to the distribution folder. What should I do?
-
I found a way to distinguish between release and debug in config.
CONFIG(debug, debug|release) { DESTDIR = $$PWD/../Depoly_Exec/debug } else { DESTDIR = $$PWD/../Depoly_Exec/release }
When built, exp,ilk,pdb files are also created, and these files don't need to be in the distribution folder, so I want to move only the dll file and the lib file to the distribution folder. What should I do?
@IknowQT said in How to put dynamic library project in one project:
What should I do?
Build in release mode.
In which mode did you build?
qmake PATH_TO_PROJECT.pro -spec linux-g++ -
@IknowQT said in How to put dynamic library project in one project:
What should I do?
Build in release mode.
In which mode did you build?
qmake PATH_TO_PROJECT.pro -spec linux-g++ -
@IknowQT said in How to put dynamic library project in one project:
I want to exclude files from being created
Then do so. What is the problem?