On Thu, Mar 10, 2011 at 11:11 AM, Nils Jeisecke <[email protected]> wrote:
> Hi!
>
> I'm using Qt Creator with cmake for plain C projects. Works great
> though sometimes code navigation and "Find Usage" do not work 100%
> correctly for c code.
>
> You could use this minimal cmake file as a reference:
>
> project(Demo)
> set(DEMO_SRCS demo.c)
> add_executable(demo ${DEMO_SRCS})
>
> Nils
Nils, you may have this problems if you don't include the headers in
cmake files, for building you dont need to but for MSVC and QtCreator
its worth manually including header files.
So:
project(Demo)
set(DEMO_SRCS demo.c demo.h)
add_executable(demo ${DEMO_SRCS})
Example on larger project:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/blender/nodes/CMakeLists.txt
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator