[Development] build [any] qt-based project ising cmake , outside of qtcreator
Kevin Kofler
kevin.kofler at chello.at
Fri Nov 25 22:08:04 CET 2016
Ernst Maurer wrote:
> just faced with a requirement to build qt/cmake based project from command
> line or another IDE, and could not. what is a qtcreator magic which helps
> to do this successfully?
This is really a question for qt-interest (about developing WITH Qt), not
qt-devel (about developing FOR Qt).
> it looks like cmake can't find all required .cmake scripts, I don't see
> the instructions to set the paths to all .cmake scripts for required
> modules.
It is clear from your output:
> cmake.exe -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles"
> C:\dev\workspace\algolist.v2
that you are using Windows, which does not use a standardized path
hierarchy. This problem does not occur on operating systems using the
Filesystem Hierarchy Standard (FHS). On Windows, you have to tell CMake
where to find the *Config.cmake files, and the error message tells you how
to do it:
> Could not find a package configuration file provided by "Qt5Widgets"
> with any of the following names:
>
> Qt5WidgetsConfig.cmake
> qt5widgets-config.cmake
>
> Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
> "Qt5Widgets_DIR" to a directory containing one of the above files. If
> "Qt5Widgets" provides a separate development package or SDK, be sure it has
> been installed.
so why are you even asking here? Your post contains the answer.
Kevin Kofler
More information about the Development
mailing list