I try to use add_library:
ADD_LIBRARY(Other
README Changelog
)
and the files appears in the Project tab, great!
But when I run CMake I get this error:
CMake Error: CMake can not determine linker language for target:Other
CMake Error: Cannot determine link language for target "Other".
I try to add EXCLUDE_FROM_ALL flag in the add_library, but nothing change...
Searching on google i found this other trick:
SET(OTHER
README
Changelog)
ADD_CUSTOM_TARGET(UtilityHeaders OTHER ${OTHER})
This one don't generate error from CMake but the files are not displayed
in project tab...
Any other ideas?
Stefano.
Il 22/08/2012 08:28, Campbell Barton ha scritto:
for CMake you can include non source files in add_library() they get
included in the project but not built.
You can use cmake's SOURCE_GROUP() to group files by name though
currently only msvc project files make use of this.
On Tue, Aug 21, 2012 at 5:01 PM, Stefano Cordibella
<[email protected]> wrote:
Hi all,
I am using QtCreator for editing Qt and C++ projects. I am also
moving from qmake to CMake for Qt project.
The Project outline is perfect when using qmake based project, but when
the current project is a CMake project there are less information on
this panel:
1) the header files are not showed, but this problem can be resolved
adding the header files to the source files' list,
2) useful files that in qmake are collected in OTHER_FILE variable
(README, Changelog, configuration, ...) are not showed.
Are there any plan to improve the project view for CMake projects?
There is any way to add other files to project outline like OTHER_FILE
for qmake in CMake projects?
Thanks in advance,
Stefano.
--
Dott. Stefano Cordibella
---------------------------------------------
EDALab - Networked Embedded Systems
C.S. Dept - University of Verona - IT
---------------------------------------------
email : [email protected]
skype : stefano.cordibella
tel. : +39 045 802 70 85
web : www.edalab.it
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Dott. Stefano Cordibella
---------------------------------------------
EDALab - Networked Embedded Systems
C.S. Dept - University of Verona - IT
---------------------------------------------
email : [email protected]
skype : stefano.cordibella
tel. : +39 045 802 70 85
web : www.edalab.it
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator