QtCreator: How to start building multiple cmake sub-projects?
-
I have a large cmake project with multiple subprojects, among them multiple executables.
In Visual Studio, I can multi-select projects (within a solution) and build all of them
How do I do the same in Creator? At the moment, I have to build the first subproject, wait for it to be done, then build the next...
-
I have a large cmake project with multiple subprojects, among them multiple executables.
In Visual Studio, I can multi-select projects (within a solution) and build all of them
How do I do the same in Creator? At the moment, I have to build the first subproject, wait for it to be done, then build the next...
@Asperamanca how does your cmakelist file look like ?
did you add the projects as sub directories ?
e.g.add_subdirectory( project1 ) add_subdirectory( project2 ) add_subdirectory( project3 ) target_link_libraries( project1 PRIVATE project2 project3 ) target_link_libraries( project2 PRIVATE project3 )
-
@Asperamanca how does your cmakelist file look like ?
did you add the projects as sub directories ?
e.g.add_subdirectory( project1 ) add_subdirectory( project2 ) add_subdirectory( project3 ) target_link_libraries( project1 PRIVATE project2 project3 ) target_link_libraries( project2 PRIVATE project3 )
@J-Hilk
The executables are added using add_executable.
They become visible as top-level nodes in the projects tree, and I can right-click and build each of them individually. -
@J-Hilk
The executables are added using add_executable.
They become visible as top-level nodes in the projects tree, and I can right-click and build each of them individually.Currently you cannot do it in project outline, to select targets and then issue a Build operation for the selected targets.
By default the all target is selected for building a project (including subprojects).
But you can choose just to build only a selection.
-
Currently you cannot do it in project outline, to select targets and then issue a Build operation for the selected targets.
By default the all target is selected for building a project (including subprojects).
But you can choose just to build only a selection.
@cristian-adam
That would be excellent. But strangely, I only see the "Details" on Windows, but not on in the Linux Environment where I would need it. There, the build steps is only one line, and instead of the "Details" button, I have a stop sign.(Even after restarting Creator and re-loading the project).
Any idea?
-
@cristian-adam
That would be excellent. But strangely, I only see the "Details" on Windows, but not on in the Linux Environment where I would need it. There, the build steps is only one line, and instead of the "Details" button, I have a stop sign.(Even after restarting Creator and re-loading the project).
Any idea?
@Asperamanca
Solved. Screen resolution was too small for the details window, so it didn't allow me to open it, apparently. -