[Qt-creator] Add arbitrary file to cmake project

Bojan Petrović bojan85 at gmail.com
Sat Oct 20 16:09:06 CEST 2012


This works for me:

add_executable(myapp main.cpp asdf.txt)


On 20 October 2012 15:51, Uwe Fechner <u.fechner at tudelft.nl> wrote:

> Hello,
>
> I have a cmake project that builds a library.
>
> I would like to add:
> 1. a bash script file, that loads and executes the library
> 2. a readme.txt file
>
> to the project in such a way that I can easily edit these
> files from within qt creator.
>
> Is there a way to add these files to the CMakeLists.txt file so that
> they are displayed by qt creator in the cmake project?
>
> Best regards:
>
> Uwe Fechner
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20121020/04dcb455/attachment.html>


More information about the Qt-creator mailing list