Re: [osg-users] CMake 2.6.3 brings easier OSG integration out-of-the-box
Hi Philip, The release of CMake 2.6.3 includes a new find module which makes using the OSG from within a project of your own much easier to do. There is also version support available should you want to specify the minimum (or exact) version of the OSG that is needed to build your project. Very nice! I'll have to take this out for a spin on my personal projects :-) Great work, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] CMake 2.6.3 brings easier OSG integration out-of-the-box
On Mon, 2009-02-23 at 22:31 -0500, Philip Lowman wrote: The release of CMake 2.6.3 includes a new find module which makes using the OSG from within a project of your own much easier to do. There is also version support available should you want to specify the minimum (or exact) version of the OSG that is needed to build your project. Here's a 6 line hello world example. Replace foo.cpp with the OSG app of your choice and modify the find_package() line to contain the list of nodekits/libraries you require. CMakeLists.txt: = project(Foo) cmake_minimum_required(VERSION 2.6.3) find_package(OpenSceneGraph 2.8.0 REQUIRED osgUtil osgDB osgWhateverNodekitsYouNeed) include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS}) add_executable(foo foo.cpp) target_link_libraries(foo ${OPENSCENEGRAPH_LIBRARIES}) == If you need to set cmake_minimum_required to less than 2.6.3 please see the documentation for FindOpenSceneGraph.cmake as you will need to copy a few files from the 2.6.3 release of CMake into your CMake module path. This is quite awesome. :) -- Philip Lowman ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] CMake 2.6.3 brings easier OSG integration out-of-the-box
Nice! I must admit I had to tweak Findosg* (in 2.6.2) because it just hadn't the _DEBUG versions of the libs. Now I removed my custom finders and wrote CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR) :) ... Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ Le Tue, 24 Feb 2009 04:31:38 +0100, Philip Lowman phi...@yhbt.com a écrit: The release of CMake 2.6.3 includes a new find module which makes using the OSG from within a project of your own much easier to do. There is also version support available should you want to specify the minimum (or exact) version of the OSG that is needed to build your project. Here's a 6 line hello world example. Replace foo.cpp with the OSG app of your choice and modify the find_package() line to contain the list of nodekits/libraries you require. CMakeLists.txt: = project(Foo) cmake_minimum_required(VERSION 2.6.3) find_package(OpenSceneGraph 2.8.0 REQUIRED osgUtil osgDB osgWhateverNodekitsYouNeed) include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS}) add_executable(foo foo.cpp) target_link_libraries(foo ${OPENSCENEGRAPH_LIBRARIES}) == If you need to set cmake_minimum_required to less than 2.6.3 please see the documentation for FindOpenSceneGraph.cmake as you will need to copy a few files from the 2.6.3 release of CMake into your CMake module path. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] CMake 2.6.3 brings easier OSG integration out-of-the-box
The release of CMake 2.6.3 includes a new find module which makes using the OSG from within a project of your own much easier to do. There is also version support available should you want to specify the minimum (or exact) version of the OSG that is needed to build your project. Here's a 6 line hello world example. Replace foo.cpp with the OSG app of your choice and modify the find_package() line to contain the list of nodekits/libraries you require. CMakeLists.txt: = project(Foo) cmake_minimum_required(VERSION 2.6.3) find_package(OpenSceneGraph 2.8.0 REQUIRED osgUtil osgDB osgWhateverNodekitsYouNeed) include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS}) add_executable(foo foo.cpp) target_link_libraries(foo ${OPENSCENEGRAPH_LIBRARIES}) == If you need to set cmake_minimum_required to less than 2.6.3 please see the documentation for FindOpenSceneGraph.cmake as you will need to copy a few files from the 2.6.3 release of CMake into your CMake module path. -- Philip Lowman ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org