Hello,

Am 11.09.2011 09:57, schrieb Durk Talsma:
[..] I hope that FlightGear will behave nicely with the
xinerama xserver configuration, because I'm running kde4, which
apparently doesn't like multiple monitor configurations that much
I'm using a double monitor setup here with 11.4/KDE4 configured via xrandr without any problems, so that looks stable by now.

I'm also taking this opportunity to try out a few new things. A
couple of years ago I had already switched from emacs to kdevelop for
editing, but now with cmake, it looks like it's also very easy to
generate kdevelop compatible project files. Maybe that was already
possible with autoconf, but I never really tried it.
one problem I noticed with that is that the headers aren't added to the project in SimGear. At least Codeblocks is not able to add them automatically parsing the includes, so the attached patch does that explicitly. This allows things like "jump to definition" also for header-only classes, which up to now produces errors. Apart from that, I'm doing fairly well with the generated CB projects. Haven't tried kdevelop, though.

While we're at it, FindOpenSceneGraph.cmake claims it was added in CMake 2.6.3, while SimGear's CMakeList only has cmake_minimum_required(VERSION 2.6) , so this should be updated (maybe directly to 2.8?).

Yet another thing: when trying to build with CMAKE_BUILD_TYPE RelWithDebInfo or MinSizeRel, the FlightGear build will fail unless you have SimGear libraries in Release configuration still around (against which it will link, but not against the matching configuration). This is because SelectLibraryConfigurations.cmake only knows about Debug and Release. Fixing this might however be a bit tricky, and I don't know how many people are actually going to use these build types. Maybe a warning about an unsupported build type is sufficient. As a fallback it is always possible to alter CMAKE_CXX_FLAGS directly.

Best regards,
        Andreas


commit 8334007d6a1f7b9831fd1fd8813dc6752f042c10
Author: Andreas Gaeb <a.g...@web.de>
Date:   Fri Sep 9 21:28:37 2011 +0200

    Add headers to library components
    
    so that they get included into the IDE project files

diff --git a/CMakeModules/SimGearComponent.cmake b/CMakeModules/SimGearComponent.cmake
index 3eb5740..7dbf5f1 100644
--- a/CMakeModules/SimGearComponent.cmake
+++ b/CMakeModules/SimGearComponent.cmake
@@ -14,7 +14,7 @@ macro(simgear_component name includePath sources headers)
         
     else()
         set(libName "sg${name}")
-        add_library(${libName} STATIC ${sources} )
+        add_library(${libName} STATIC ${sources} ${headers})
 
         install (TARGETS ${libName} ARCHIVE DESTINATION lib${LIB_SUFFIX})
         install (FILES ${headers}  DESTINATION include/simgear/${includePath})
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to