Compare commits
2 Commits
OpenSceneG
...
OpenSceneG
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2f01f0ead | ||
|
|
1d9eab8406 |
11
.codedocs
@@ -1,11 +0,0 @@
|
|||||||
# CodeDocs.xyz Configuration File
|
|
||||||
|
|
||||||
DOXYFILE = doc/Doxyfiles/doxyfile.cmake
|
|
||||||
|
|
||||||
PROJECT_NUMBER =
|
|
||||||
PROJECT_LOGO = examples/osgAndroidExampleGLES1/res/drawable-hdpi/osg.png
|
|
||||||
INPUT = include
|
|
||||||
STRIP_FROM_PATH = include/
|
|
||||||
HTML_FOOTER =
|
|
||||||
SEARCHENGINE = YES
|
|
||||||
|
|
||||||
105
.gitignore
vendored
@@ -1,105 +0,0 @@
|
|||||||
doc/all_Doxyfile
|
|
||||||
doc/auto_Doxyfile
|
|
||||||
doc/core_Doxyfile
|
|
||||||
doc/openscenegraph.doxyfile
|
|
||||||
doc/openthreads.doxyfile
|
|
||||||
|
|
||||||
doc/OpenSceneGraphReferenceDocs/
|
|
||||||
doc/OpenThreadsReferenceDocs/
|
|
||||||
doc/*.chm
|
|
||||||
|
|
||||||
CMakeDoxyfile.in
|
|
||||||
CMakeDoxygenDefaults.cmake
|
|
||||||
|
|
||||||
cmake_uninstall.cmake
|
|
||||||
|
|
||||||
include/OpenThreads/Config
|
|
||||||
include/OpenThreads/Version
|
|
||||||
include/osg/Config
|
|
||||||
include/osg/GL
|
|
||||||
include/osg/Version
|
|
||||||
include/osgQt/Version
|
|
||||||
src/osgQt/__
|
|
||||||
|
|
||||||
lib/
|
|
||||||
bin/
|
|
||||||
|
|
||||||
*.pc
|
|
||||||
*.conf
|
|
||||||
CMakeCache.txt
|
|
||||||
CMakeFiles
|
|
||||||
CMakeScripts
|
|
||||||
Makefile
|
|
||||||
cmake_install.cmake
|
|
||||||
install_manifest*.txt
|
|
||||||
|
|
||||||
|
|
||||||
# Compiled Object files
|
|
||||||
*.slo
|
|
||||||
*.lo
|
|
||||||
*.o
|
|
||||||
*.obj
|
|
||||||
|
|
||||||
# Precompiled Headers
|
|
||||||
*.gch
|
|
||||||
*.pch
|
|
||||||
|
|
||||||
# Compiled Dynamic libraries
|
|
||||||
*.so
|
|
||||||
*.dylib
|
|
||||||
*.dll
|
|
||||||
|
|
||||||
# Fortran module files
|
|
||||||
*.mod
|
|
||||||
|
|
||||||
# Compiled Static libraries
|
|
||||||
*.lai
|
|
||||||
*.la
|
|
||||||
*.a
|
|
||||||
*.lib
|
|
||||||
|
|
||||||
# Executables
|
|
||||||
*.exe
|
|
||||||
*.out
|
|
||||||
*.app
|
|
||||||
|
|
||||||
# Automatically generated Package files
|
|
||||||
packaging/cmake/*
|
|
||||||
configure/*
|
|
||||||
|
|
||||||
# Platform Specifics - auto generated files
|
|
||||||
PlatformSpecifics/Windows/*.rc
|
|
||||||
|
|
||||||
# Visual studio - project files
|
|
||||||
*.sln
|
|
||||||
*.suo
|
|
||||||
*.vcxproj
|
|
||||||
*.vcxproj.filters
|
|
||||||
*.vcxproj.user
|
|
||||||
|
|
||||||
# Visual Studio - Build Results
|
|
||||||
[Dd]ebug/
|
|
||||||
[Rr]elease/
|
|
||||||
[Mm]in[Ss]ize[Rr]el/
|
|
||||||
[Rr]el[Ww]ith[Dd]eb[Ii]nfo/
|
|
||||||
|
|
||||||
# Visual Studio - Browsing Database File
|
|
||||||
*.sdf
|
|
||||||
*.opensdf
|
|
||||||
|
|
||||||
# Visual Studio - Cache/Options Directory
|
|
||||||
.vs/
|
|
||||||
|
|
||||||
#osx xcode
|
|
||||||
DerivedData/
|
|
||||||
*.DS_Store
|
|
||||||
*.build
|
|
||||||
*.xcodeproj
|
|
||||||
|
|
||||||
#CPACK related files
|
|
||||||
CPackConfig-*.cmake
|
|
||||||
_CPack_Packages/
|
|
||||||
|
|
||||||
#packages
|
|
||||||
*.tar.gz
|
|
||||||
*.zip
|
|
||||||
68
.travis.yml
@@ -1,68 +0,0 @@
|
|||||||
env:
|
|
||||||
global:
|
|
||||||
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
||||||
# via the "travis encrypt" command using the project repo's public key
|
|
||||||
- secure: "0ROQiFbsZo33ce2v5VjBxNljemh/HU70ntSSPygYwaDFymubts/62SixXVkbKNIFdrs3uYD6qeA/eMmpqXxLcs+PXNq5NrH7eSWw9oDIKMhq3NQH/IZLdRfXwihHimZ1qEs/TXyWlT2aC4rpBi1py3cJeTh1aBMlz4V/nm16iRAgc596ThNTuPDHa0F9/gZnwccI/Rr9VpiYn7vEBbuY9lYr43D0G3NuuQyvvlHShroH09fh6KyFOWIY38AQtnuVGNC1fIiAUk7TUqDqSBwhIrUV5saHbP0kca6DP32REkv//h4JwM76UHv+ntVEoK/UiztJHMkrw71gXYTyvIvlDBpT+IDoeIwUW2QFNQ5zJZI7FM8k0+oeK+F7k/mkffDzr1zww/PQoxqFBF0PoxAni/L9qkA4X2o1A6mRDbe9besp2LQG6Vniwj3bHpCId2QiiMrANVg0EAqkcL2mVFEaqZsh90qCkr1UDq4WQoYbXh0Fy3UnQpbuxDvCME8u03lwuv6ds/SBxc5cgKv7oWXgezaDg7/OCR+0lIAGuLqmNRD8Xw7a0WZGmSbYCHIZmeyFja2KuUvMiVCt8+QsyZr3e523DwBwnSj1BIYFRstMaSEJgu9B8rfTRRllOOKJXCQtdFVuGu8VI6PniSAkI6c535yOWzsuS8HwIkN2ll+Wn7E="
|
|
||||||
|
|
||||||
language: cpp
|
|
||||||
cache: ccache
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
fast_finish: true
|
|
||||||
include:
|
|
||||||
#Linux build
|
|
||||||
- os: linux
|
|
||||||
dist: trusty
|
|
||||||
language: cpp
|
|
||||||
env:
|
|
||||||
# - CMAKECMD_ARGS="-DBUILD_OSG_EXAMPLES=ON -DBUILD_OSG_PLUGINS_BY_DEFAULT=ON -DBUILD_OSG_APPLICATIONS=ON"
|
|
||||||
- CMAKECMD_ARGS="-DBUILD_OSG_EXAMPLES=OFF -DBUILD_OSG_PLUGINS_BY_DEFAULT=ON -DBUILD_OSG_APPLICATIONS=ON"
|
|
||||||
#- LLVM_VERSION=3.8
|
|
||||||
sudo: false
|
|
||||||
cache:
|
|
||||||
apt: true
|
|
||||||
ccache: true
|
|
||||||
compiler:
|
|
||||||
#- clang
|
|
||||||
- gcc
|
|
||||||
addons:
|
|
||||||
coverity_scan:
|
|
||||||
project:
|
|
||||||
name: "openscenegraph/OpenSceneGraph"
|
|
||||||
description: "OpenSceneGraph build"
|
|
||||||
notification_email: robert@openscenegraph.com
|
|
||||||
build_command_prepend: "cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_OSG_DEPRECATED_SERIALIZERS=OFF -DBUILD_OSG_EXAMPLES=OFF ."
|
|
||||||
build_command: "make -j 4"
|
|
||||||
branch_pattern: coverity_scan
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
#- llvm-toolchain-precise-3.8
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
#- clang-3.8
|
|
||||||
- g++
|
|
||||||
- cmake
|
|
||||||
|
|
||||||
# # OSX build
|
|
||||||
# - os: osx
|
|
||||||
# before_install:
|
|
||||||
# - brew update
|
|
||||||
# install:
|
|
||||||
# - brew install ccache
|
|
||||||
# - export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
|
||||||
# env:
|
|
||||||
# - CMAKECMD_ARGS="-DBUILD_OSG_EXAMPLES=OFF -DBUILD_OSG_PLUGINS_BY_DEFAULT=ON -DBUILD_OSG_APPLICATIONS=ON"
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# - os: osx
|
|
||||||
# before_install:
|
|
||||||
# - brew update
|
|
||||||
# install:
|
|
||||||
# - brew install ccache
|
|
||||||
# - export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
|
||||||
# env:
|
|
||||||
# - CMAKECMD_ARGS="-DBUILD_OSG_EXAMPLES=ON -DBUILD_OSG_PLUGINS_BY_DEFAULT=OFF -DBUILD_OSG_APPLICATIONS=OFF -DBUILD_OSG_DEPRECATED_SERIALIZERS=OFF"
|
|
||||||
|
|
||||||
script:
|
|
||||||
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then mkdir build && cd build && travis_wait 60 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../product $CMAKECMD_ARGS ../ ; fi
|
|
||||||
- if [ -f CMakeCache.txt ]; then make -j4 ; fi
|
|
||||||
543
AUTHORS.txt
@@ -1,576 +1,287 @@
|
|||||||
OpenSceneGraph Library 3.6.4
|
OpenSceneGraph Library 2.2.0
|
||||||
|
|
||||||
570 Contributors:
|
281 Contributors:
|
||||||
|
|
||||||
Firstname Surname
|
Firstname Surname
|
||||||
-----------------
|
-----------------
|
||||||
Robert Osfield
|
Robert Osfield
|
||||||
Don Burns
|
Don Burns
|
||||||
Stephan Huber
|
|
||||||
Paul Martz
|
|
||||||
Laurens Voerman
|
|
||||||
Farshid Lashkari
|
|
||||||
Mathias Fr<46>hlich
|
|
||||||
Marco Jez
|
Marco Jez
|
||||||
Wang Rui
|
|
||||||
Jean-S<>bastien Guay
|
|
||||||
Ulrich Hertlein
|
|
||||||
Mike Weiblen
|
Mike Weiblen
|
||||||
Sukender
|
|
||||||
Eric Wing
|
Eric Wing
|
||||||
Cedric Pinson
|
|
||||||
Brede Johansen
|
Brede Johansen
|
||||||
Bob Kuehne
|
|
||||||
Wojciech Lewandowski
|
|
||||||
Michael Platings
|
|
||||||
Geoff Michel
|
Geoff Michel
|
||||||
Eric Sokolowsky
|
Paul Martz
|
||||||
David Callu
|
Farshid Lashkari
|
||||||
Colin McDonald
|
Stephan Huber
|
||||||
Trajce Nikolov
|
Bob Kuehne
|
||||||
Tim Moore
|
|
||||||
Martin Lavery
|
Martin Lavery
|
||||||
Mattias Helsing
|
Ulrich Hertlein
|
||||||
Jannik Heller
|
Eric Sokolowsky
|
||||||
Jason Beverage
|
|
||||||
Tree
|
Tree
|
||||||
Pjotr Svetachov
|
|
||||||
Luigi Calori
|
|
||||||
Alberto Luaces
|
|
||||||
Mike Wittman
|
Mike Wittman
|
||||||
Jan Peciva
|
Luigi Calori
|
||||||
Chris Hanson
|
Trajce Nikolov
|
||||||
Roland Smeenk
|
|
||||||
Roger James
|
|
||||||
Jeremy Moles
|
|
||||||
Andy Skinner
|
|
||||||
J.P. Delport
|
|
||||||
Magnus Kessler
|
|
||||||
David Fries
|
|
||||||
Tom Jolley
|
|
||||||
Paul Melis
|
|
||||||
Jordi Torres
|
|
||||||
Luc Frauciel
|
|
||||||
Aurelien Albert
|
|
||||||
Torben Dannhauer
|
|
||||||
Pavel Moloshtan
|
Pavel Moloshtan
|
||||||
Brad Christiansen
|
Tom Jolley
|
||||||
Terry Welsh
|
Mathias Fr<46>hlich
|
||||||
Olaf Flebbe
|
|
||||||
Mathieu Marache
|
|
||||||
Lionel Lagarde
|
|
||||||
Jason Daly
|
|
||||||
Art Tevs
|
|
||||||
Philip Lowman
|
|
||||||
Per Fahlberg
|
|
||||||
Norman Vine
|
Norman Vine
|
||||||
Chris Denham
|
David Callu
|
||||||
Sherman Wilcox
|
|
||||||
Serge Lages
|
|
||||||
Romano Jos<6F> Magacho da Silva
|
|
||||||
Mourad Boufarguine
|
|
||||||
Alberto Farre
|
Alberto Farre
|
||||||
Glenn Waldron
|
Roger James
|
||||||
Andr<EFBFBD> Garneau
|
Andr<EFBFBD> Garneau
|
||||||
Adrian Egli
|
|
||||||
Sebastian Messerschmidt
|
|
||||||
Randall Hopper
|
|
||||||
Kristofer Tingdahl
|
|
||||||
Jan Ciger
|
|
||||||
Ruben Lopez
|
Ruben Lopez
|
||||||
Robert Michael
|
Randall Hopper
|
||||||
|
Olaf Flebbe
|
||||||
Gideon May
|
Gideon May
|
||||||
Don Tidrow
|
Don Tidrow
|
||||||
Stephane Lamoliatte
|
Romano Jos<6F> Magacho da Silva
|
||||||
Michael Gronager
|
Michael Gronager
|
||||||
Martin Naylor
|
|
||||||
Joakim Simonsson
|
|
||||||
David Spilling
|
|
||||||
Daniel Sj<53>lie
|
Daniel Sj<53>lie
|
||||||
Bryan Thrall
|
Colin McDonald
|
||||||
Andreas Ekstrand
|
Chris Hanson
|
||||||
Rafa Gaitan
|
Jean-Sebastien Guay
|
||||||
Mike Connell
|
David Spilling
|
||||||
Konstantin Matveyev
|
Andy Skinner
|
||||||
Fabien Lavignotte
|
Per Fahlberg
|
||||||
Thomas Hogarth
|
|
||||||
Riccardo Corsi
|
|
||||||
Melchior Franz
|
|
||||||
Johannes Baeuerle
|
|
||||||
Ravi Mathur
|
|
||||||
Neil Hughes
|
|
||||||
Martin Beckett
|
|
||||||
Marc Helbling
|
|
||||||
Joran Jessurun
|
Joran Jessurun
|
||||||
Gino van den Bergen
|
Frederic Marmond
|
||||||
David Guthrie
|
David Fries
|
||||||
Csaba Halasz
|
|
||||||
Cory Riddell
|
|
||||||
Chuck Seberino
|
|
||||||
Boris Bralo
|
Boris Bralo
|
||||||
Yefei He
|
Yefei He
|
||||||
Sondra Iverson
|
Sondra Iverson
|
||||||
Simon Julier
|
|
||||||
Rune Schmidt Jensen
|
Rune Schmidt Jensen
|
||||||
Ralf Habacker
|
Neil Salter
|
||||||
Rainer Oder
|
Mike Connell
|
||||||
Nico Kruithof
|
Jeremy Moles
|
||||||
Martin Aumueller
|
Jason Daly
|
||||||
Mario Valle
|
Jason Beverage
|
||||||
Lukasz Izdebski
|
Ben Discoe
|
||||||
Jorge Izquierdo Ciges
|
|
||||||
Gordon Tomlinson
|
|
||||||
Frederic Marmond
|
|
||||||
Frederic Bouvier
|
|
||||||
Carlo Camporesi
|
|
||||||
Bj<EFBFBD>rn Blissing
|
|
||||||
Alexander Sinditskiy
|
|
||||||
Vladimir Chebaev
|
|
||||||
Thibault Genessay
|
|
||||||
Sasa Bistrovic
|
Sasa Bistrovic
|
||||||
Raymond de Vries
|
Rainer Oder
|
||||||
Neil Groves
|
Paul Melis
|
||||||
Mikhail Izmestev
|
Martin Naylor
|
||||||
|
Martin Aumueller
|
||||||
Markus Trenkwalder
|
Markus Trenkwalder
|
||||||
Loic Dachary
|
Loic Dachary
|
||||||
|
Joakim Simonsson
|
||||||
|
Jan Peciva
|
||||||
|
Jan Ciger
|
||||||
|
Gordon Tomlinson
|
||||||
|
Brad Colbert
|
||||||
|
Art Tevs
|
||||||
|
Andreas Ekstrand
|
||||||
|
Vivek Rajan
|
||||||
|
Stephane Simon
|
||||||
|
Sherman Wilcox
|
||||||
|
Sean Spicer
|
||||||
|
Ravi Mathur
|
||||||
|
Nikolaus Hanekamp
|
||||||
|
Michael Platings
|
||||||
|
Michael Hartman
|
||||||
|
Laurens Voerman
|
||||||
Joseph Steel
|
Joseph Steel
|
||||||
John Shue
|
John Shue
|
||||||
Hartwig Wiesmann
|
David Guthrie
|
||||||
Brad Colbert
|
|
||||||
Ben Discoe
|
|
||||||
Vivek Rajan
|
|
||||||
Uwe Woessner
|
|
||||||
Tony Horrobin
|
|
||||||
Thom DeCarlo
|
|
||||||
Tatsuhiro Nishioka
|
|
||||||
Tanguy Fautr<74>
|
|
||||||
Sean Spicer
|
|
||||||
Ryan Kawicki
|
|
||||||
Richard Schmidt
|
|
||||||
Peter Hrenka
|
|
||||||
Paul de Repentigny
|
|
||||||
Nikolaus Hanekamp
|
|
||||||
Neil Salter
|
|
||||||
Mihai Radu
|
|
||||||
Michael Hartman
|
|
||||||
Martins Innus
|
|
||||||
Maciej Krol
|
|
||||||
Lilin Xiong
|
|
||||||
Leandro Motta Barros
|
|
||||||
Julien Valentin
|
|
||||||
Johan Nouvel
|
|
||||||
Javier Taibo
|
|
||||||
Donn Mielcarek
|
|
||||||
Corbin Holtz
|
Corbin Holtz
|
||||||
Blasius Czink
|
Brad Christiansen
|
||||||
Alexander Irion
|
Adrian Egli
|
||||||
Wee See
|
|
||||||
Toshiyuki Takahei
|
Toshiyuki Takahei
|
||||||
|
Thom DeCarlo
|
||||||
|
Terry Welsh
|
||||||
|
Simon Julier
|
||||||
Sebastien Grignard
|
Sebastien Grignard
|
||||||
Rudolf Wiedemann
|
Romano Magacho
|
||||||
Maria Ten
|
Paul de Repentigny
|
||||||
Liang Aibin
|
Mihai Radu
|
||||||
Katharina Plugge
|
Luc Frauciel
|
||||||
John Vidar Larring
|
Leandro Motta Barros
|
||||||
John Kelso
|
Jos<EFBFBD> Delport
|
||||||
John Ivar
|
Carlo Camporesi
|
||||||
Gustav Haapalahti
|
Bryan Thrall
|
||||||
Erik den Dekker
|
|
||||||
Emmanuel Roche
|
|
||||||
Domenico Mangieri
|
|
||||||
Daniel Larimer
|
|
||||||
Colin Dunlop
|
|
||||||
Bruce Clay
|
Bruce Clay
|
||||||
Bradley Anderegg
|
Alberto Barbati
|
||||||
Andreas Goebel
|
|
||||||
Alok Priyadarshi
|
|
||||||
Ali Botorabi
|
|
||||||
Alan Dickinson
|
|
||||||
Vladimir Shabanov
|
Vladimir Shabanov
|
||||||
Tugkan Calapoglu
|
Uwe Woessner
|
||||||
Tim Daoust
|
|
||||||
Sylvain Marie
|
|
||||||
Sohey Yamamoto
|
Sohey Yamamoto
|
||||||
Sergey Leontyev
|
Serge Lages
|
||||||
Santosh Gaikwad
|
|
||||||
Ryan Pavlik
|
|
||||||
Robert Milharcic
|
|
||||||
Rene Molenaar
|
|
||||||
Piotr Domagalski
|
|
||||||
Philippe Renon
|
|
||||||
Phil Atkin
|
Phil Atkin
|
||||||
Pawel Ksiezopolski
|
|
||||||
Patrick Neary
|
|
||||||
Nathan Monteleone
|
|
||||||
Miha Rav<61>elj
|
|
||||||
Miguel Escriva
|
|
||||||
Mattias Linde
|
Mattias Linde
|
||||||
Mark Sciabica
|
Mathieu Marache
|
||||||
Marcin Prus
|
Maria Ten
|
||||||
Lee Butler
|
|
||||||
Lars Nilsson
|
|
||||||
Konstantin Sinitsyn
|
|
||||||
Ken Sewell
|
Ken Sewell
|
||||||
Julian Ortiz
|
Julian Ortiz
|
||||||
Julen Garcia
|
John Kelso
|
||||||
John Kaniarz
|
|
||||||
Johannes Scholz
|
|
||||||
Jim Vaughan
|
|
||||||
Jeremy Bell
|
Jeremy Bell
|
||||||
Jaromir Vitek
|
|
||||||
James French
|
James French
|
||||||
Jaap Glas
|
|
||||||
Guillaume Millet
|
|
||||||
Gary Quinn
|
|
||||||
Garrett Potts
|
|
||||||
Gabor Dorka
|
Gabor Dorka
|
||||||
Fabio Mierlo
|
Donn Mielcarek
|
||||||
Doug McCorkle
|
Domenico Mangieri
|
||||||
Donald Cipperly
|
Daniel Larimer
|
||||||
Don Leich
|
|
||||||
Dietmar Funck
|
|
||||||
Colin Cochran
|
|
||||||
Christian Ruzicka
|
|
||||||
Christian Buchner
|
|
||||||
Chris Djali
|
|
||||||
Charles Cole
|
Charles Cole
|
||||||
Blake Williams
|
Blake Williams
|
||||||
Bj<EFBFBD>rn Hein
|
|
||||||
Aur<EFBFBD>lien Chatelain
|
|
||||||
Antoine Hue
|
Antoine Hue
|
||||||
Andrew Bettison
|
|
||||||
Andreas Henne
|
|
||||||
Anders Backman
|
Anders Backman
|
||||||
Alexander Wiebel
|
Ali Botorabi
|
||||||
Alessandro Terenzi
|
|
||||||
Alberto Barbati
|
|
||||||
Zach Deedler
|
Zach Deedler
|
||||||
Yuzhong Shen
|
Yuzhong Shen
|
||||||
Warren Macchi
|
Tugkan Calapoglu
|
||||||
Vincent Bourdier
|
Tony Horrobin
|
||||||
|
Tim Daoust
|
||||||
|
Thibault Genessay
|
||||||
Terrex
|
Terrex
|
||||||
Tassilo Glander
|
|
||||||
Steve Lunsford
|
Steve Lunsford
|
||||||
Stephane Simon
|
|
||||||
Stephan Eilemann
|
Stephan Eilemann
|
||||||
Stanislav Blinov
|
Stanislav Blinov
|
||||||
Sergey Polischuk
|
Roland Smeenk
|
||||||
Roni Zanolli
|
Riccardo Corsi
|
||||||
Ralf Kern
|
Rafa Giatan
|
||||||
Piotr Gwiazdowski
|
Philip Lowman
|
||||||
Pierre Haritchabalet
|
Peter Hrenka
|
||||||
Perry Miller
|
Perry Miller
|
||||||
Paul Palumbo
|
Nathan Monteleone
|
||||||
Paul Obermeier
|
|
||||||
Nguyen Van Truong
|
|
||||||
Nathan Cournia
|
|
||||||
Morten Haukness
|
|
||||||
Morn<EFBFBD> Pistorius
|
|
||||||
Michael Mc Donnell
|
|
||||||
Michael Henheffer
|
Michael Henheffer
|
||||||
Michael Guerrero
|
Maya Leonard
|
||||||
Max Bandazian
|
Max Behensky
|
||||||
Mathias Fiedler
|
|
||||||
Mathew May
|
Mathew May
|
||||||
Martin von Gargern
|
|
||||||
Martin Spott
|
|
||||||
Martin Lambers
|
|
||||||
Martijn Kragtwijk
|
Martijn Kragtwijk
|
||||||
Marius Heise
|
|
||||||
Marcin Hajder
|
|
||||||
Marcel Pursche
|
|
||||||
Lilith Bryant
|
|
||||||
Kevin Moiule
|
Kevin Moiule
|
||||||
Keith Steffen
|
Keith Steffen
|
||||||
Joseph Winston
|
Joseph Winston
|
||||||
John Aughey
|
John Aughey
|
||||||
Joachim Pouderoux
|
Johan Nouvel
|
||||||
Jean-Christophe Lombardo
|
|
||||||
Jan Klimke
|
|
||||||
James Turner
|
|
||||||
James Moliere
|
|
||||||
Igor Kravtchenko
|
Igor Kravtchenko
|
||||||
Himar Carmona
|
|
||||||
He Sicong
|
|
||||||
Guy Volckaert
|
|
||||||
Gustavo Wagner
|
|
||||||
Guillaume Taze
|
|
||||||
Guillaume Chouvenc
|
|
||||||
Giuseppe Donvito
|
|
||||||
Gill Peacegood
|
|
||||||
Giampaolo Vigan<61>
|
|
||||||
Gerrick Bivins
|
Gerrick Bivins
|
||||||
George Tarantilis
|
George Tarantilis
|
||||||
Ferdi Smit
|
Garret Potts
|
||||||
Eduardo Poyart
|
Fabio Mierlo
|
||||||
Edgar Ellis
|
Edgar Ellis
|
||||||
Dmitry Marakasov
|
|
||||||
Dimi Christopoulos
|
|
||||||
Diane Delall<6C>e
|
|
||||||
David Longest
|
|
||||||
David Ergo
|
David Ergo
|
||||||
Daniel Trstenjak
|
Daniel Trstenjak
|
||||||
Craig Bosma
|
Csaba Halasz
|
||||||
Claus Scheiblauer
|
|
||||||
Christophe Loustaunau
|
|
||||||
Christian Kehl
|
|
||||||
Bradley Baker Searles
|
|
||||||
Brad Anderegg
|
|
||||||
Aric Aumann
|
|
||||||
Anish Thomas
|
|
||||||
Andrew Sampson
|
Andrew Sampson
|
||||||
Andrew Lorino
|
Andrew Lorino
|
||||||
Alexandre Amalric
|
Andreas Goebel
|
||||||
Aitor Moreno
|
Alberto Luaces
|
||||||
Zbigniew Sroczynski
|
Zbigniew Sroczynski
|
||||||
Yuri Vilmanis
|
Yuri Vilmanis
|
||||||
Xin Li
|
Wojciech Lewandowski
|
||||||
|
Warren Macchi
|
||||||
Wang Lam
|
Wang Lam
|
||||||
Wand Rui
|
|
||||||
Walter J. Altice
|
Walter J. Altice
|
||||||
Volker Walkiewicz
|
Volker Walkiewicz
|
||||||
Vladimir Vukicevic
|
Vladimir Vukicevic
|
||||||
Vlad Danciu
|
Vlad Danciu
|
||||||
Vivien Delage
|
|
||||||
Vincent Vivanloc
|
Vincent Vivanloc
|
||||||
Vincent Gadoury
|
|
||||||
Vasily Radostev
|
Vasily Radostev
|
||||||
Valery Bickov
|
|
||||||
Valeriy Dubov
|
|
||||||
Vaclav Bilek
|
Vaclav Bilek
|
||||||
Tyge L<EFBFBD>vset
|
Tyge
|
||||||
Troy Yee
|
Troy Yee
|
||||||
Torben Dannahauer
|
|
||||||
Tony Vasile
|
|
||||||
Tomas Hogarth
|
|
||||||
Tomas Hnilica
|
|
||||||
Todd Furlong
|
|
||||||
Tobias Ottenweller
|
|
||||||
Tino Schwarze
|
Tino Schwarze
|
||||||
Tim George
|
Tim Moore
|
||||||
Thorsten Brehm
|
Thom Carlo
|
||||||
Thomas Weidner
|
Tery Welsh
|
||||||
Tan Dunning
|
Tanguy Fautr<74>
|
||||||
Tamer Fahmy
|
Sylvan Marie
|
||||||
Stewart Andreason
|
Sylvain Marie
|
||||||
Steven Thomas
|
|
||||||
Stephan Wenglorz
|
|
||||||
Simon Hammett
|
|
||||||
Simon Carmody
|
|
||||||
Simon Buckley
|
|
||||||
Sid Byce
|
|
||||||
Shuxing Xiao
|
|
||||||
Shane Arnott
|
Shane Arnott
|
||||||
Sergey Kurdakov
|
|
||||||
Sebastien Kuntz
|
Sebastien Kuntz
|
||||||
Sandro Mani
|
Rudolf Wiedemann
|
||||||
Ruth Lang
|
|
||||||
Ruben The
|
|
||||||
Ruben Smelik
|
|
||||||
Ross Anderson
|
|
||||||
Ronny Krueger
|
Ronny Krueger
|
||||||
Ronald van Maarseveen
|
|
||||||
Romain Ouabdelkader
|
|
||||||
Romain Charbit
|
|
||||||
Rocco Martino
|
|
||||||
Robert Swain
|
Robert Swain
|
||||||
Rob Smith
|
|
||||||
Rob Radtke
|
|
||||||
Rob Bloemkool
|
|
||||||
Rick Pingry
|
Rick Pingry
|
||||||
Rick Appleton
|
|
||||||
Remo Eichenberger
|
|
||||||
Reinhard Sainitzer
|
Reinhard Sainitzer
|
||||||
Rein Kadijk
|
Rein Kadijk
|
||||||
Ragnar Hammarqvist
|
Ralf Kern
|
||||||
Qing Shen
|
Qing Shen
|
||||||
Piotr Rak
|
|
||||||
Pierre Bourdin
|
|
||||||
Philipp Svehla
|
|
||||||
Philipp Siemoleit
|
Philipp Siemoleit
|
||||||
Philipp M<>chler
|
|
||||||
Philip Lamb
|
|
||||||
Petr Salinger
|
|
||||||
Peter Bear
|
|
||||||
Peter Amstutz
|
|
||||||
Per Nordqvist
|
|
||||||
Paul Idstein
|
|
||||||
Paul Fredrikson
|
Paul Fredrikson
|
||||||
Paul Fotheringham
|
|
||||||
Paul Cheyrou-Lagreze
|
|
||||||
Pau Garcia
|
|
||||||
Patrick Hartling
|
|
||||||
Parag Chaudhur
|
Parag Chaudhur
|
||||||
Panagiotis Papadakos
|
|
||||||
Panagiotis Koutsourakis
|
|
||||||
Orhun Birsoy
|
Orhun Birsoy
|
||||||
Oren Fromberg
|
|
||||||
Oliver Neumann
|
|
||||||
Ole-Morten Duesund
|
Ole-Morten Duesund
|
||||||
Ognjen Kostic
|
|
||||||
Nicolas Brodu
|
Nicolas Brodu
|
||||||
Nick Thu
|
Nathan Cournia
|
||||||
Nick Black
|
Morn<EFBFBD> Pistorius
|
||||||
Mojtaba Fathi
|
|
||||||
Mirko Viviani
|
Mirko Viviani
|
||||||
Mikkel Gj<EFBFBD>l
|
Mikkel Gjøl
|
||||||
Mike Krus
|
|
||||||
Mike Garrity
|
|
||||||
Mick Thu
|
|
||||||
Michal Durkovic
|
|
||||||
Michael Schanne
|
|
||||||
Michael Polak
|
Michael Polak
|
||||||
Michael Morrison
|
Michael Morrison
|
||||||
Michael Logan
|
Michael Logan
|
||||||
Michael Kapelko
|
|
||||||
Michael Bach Jensen
|
|
||||||
Maya Thu
|
|
||||||
Maya Leonard
|
|
||||||
Max Rhiener
|
Max Rhiener
|
||||||
Max Behensky
|
|
||||||
Mauricio Hofmam
|
Mauricio Hofmam
|
||||||
Matthew May
|
Matthew May
|
||||||
Matthew Johnson-Roberson
|
|
||||||
Matt Green
|
Matt Green
|
||||||
Matt Burke
|
Matt Burke
|
||||||
Mathias Walker
|
Mathia Walker
|
||||||
Mathias Goldau
|
|
||||||
Mason Menninger
|
Mason Menninger
|
||||||
Martin Scheffler
|
Martin Spott
|
||||||
Martin Innus
|
Martin Amueller
|
||||||
Martin Beck
|
Mario Valle
|
||||||
Marius Kintel
|
Marin Lavery
|
||||||
Mario Guimaraes
|
|
||||||
Marcus Hein
|
|
||||||
Marco Thu
|
|
||||||
Marco Sciabica
|
|
||||||
Marco Lehmann
|
|
||||||
Lukas Diduch
|
|
||||||
Louis Hamilton
|
Louis Hamilton
|
||||||
Likasz Izebski
|
|
||||||
Lewis Harmon
|
Lewis Harmon
|
||||||
Leigh Stivers
|
|
||||||
Laurence Muller
|
|
||||||
Laura Cerritelli
|
|
||||||
Kyle Centers
|
|
||||||
Kristopher Bixler
|
Kristopher Bixler
|
||||||
Kim Seokhwan
|
|
||||||
Kim Bale
|
|
||||||
Karsten Weiss
|
Karsten Weiss
|
||||||
Karl Heijdenberg
|
|
||||||
Jutta Sauer
|
|
||||||
Julian Scheid
|
|
||||||
Juergen Rensen
|
|
||||||
Juan Manuel Alvarez
|
|
||||||
Juan Hernando
|
|
||||||
Josh Portway
|
Josh Portway
|
||||||
Jonathan Greig
|
|
||||||
John Tan
|
John Tan
|
||||||
John Hedström
|
|
||||||
John Grant
|
John Grant
|
||||||
John Farrier
|
|
||||||
John Donovan
|
John Donovan
|
||||||
John Davis
|
John Davis
|
||||||
John Cummings
|
|
||||||
John Argentieri
|
|
||||||
Joe Thompson
|
|
||||||
Joan Abadie
|
Joan Abadie
|
||||||
Jim Brooks
|
Joakim Simmonsson
|
||||||
Jeroen den Dekker
|
|
||||||
Jeffrey Kinross
|
|
||||||
Jay Zuckerman
|
Jay Zuckerman
|
||||||
Jason Howlett
|
Jason Howlett
|
||||||
Jason Ballenger
|
Jason Ballenger
|
||||||
Jamie Robertson
|
|
||||||
James Killian
|
|
||||||
James Athey
|
|
||||||
J.E. Hoffmann
|
J.E. Hoffmann
|
||||||
Holger Helmich
|
|
||||||
Henrique Bucher
|
Henrique Bucher
|
||||||
Hautio Jari
|
Gustavo Wagner
|
||||||
Hartmut Seichter
|
Guillaume Millet
|
||||||
Gunter Huber
|
|
||||||
Gregory Jaegy
|
|
||||||
Graeme Harkness
|
Graeme Harkness
|
||||||
|
Glenn Waldrom
|
||||||
Gian Lorenzetto
|
Gian Lorenzetto
|
||||||
George Papagiannakis
|
George Papagiannakis
|
||||||
Geoff Thu
|
Gary Quinn
|
||||||
Galen Faidley
|
Galen Faidley
|
||||||
Frida Schlaug
|
Frashid Lashkari
|
||||||
Frederic Smith
|
|
||||||
Frederic Morin
|
|
||||||
Frank Warmerdam
|
Frank Warmerdam
|
||||||
Frank Midgley
|
|
||||||
Frank Lindeman
|
Frank Lindeman
|
||||||
Frank Lichtenheld
|
Frank Lichtenheld
|
||||||
Francois Tigeot
|
|
||||||
Filip Arlet
|
|
||||||
Ferdinand Cornelissen
|
Ferdinand Cornelissen
|
||||||
Fajran Iman
|
|
||||||
Fabien Dachicourt
|
Fabien Dachicourt
|
||||||
Erik Johnson
|
Eric Sokolwsky
|
||||||
Eric Thu
|
|
||||||
Eric Buehler
|
|
||||||
Eduardo Alberto
|
|
||||||
Edmond Gheury
|
Edmond Gheury
|
||||||
Ed Ralston
|
Ed Ralston
|
||||||
Duvan Cope
|
Duvan Cope
|
||||||
Duncan Cavens
|
Duncan Cavens
|
||||||
Drew Whitehouse
|
Drew Whitehouse
|
||||||
Douglas A. Pouk
|
Douglas A. Pouk
|
||||||
Dmitriy Ogalcev
|
Doug McCorkle
|
||||||
|
Donny Cipperly
|
||||||
Dean Iverson
|
Dean Iverson
|
||||||
David Jung
|
David Jung
|
||||||
Danny Valente
|
David Gurhrie
|
||||||
Daniel Stien
|
|
||||||
Dan Minor
|
Dan Minor
|
||||||
C<EFBFBD>sar L. B. Silveira
|
|
||||||
Cyril Brulebois
|
|
||||||
Curtis Rubel
|
|
||||||
Cory Slep
|
|
||||||
Cl<EFBFBD>ment B<>sch
|
|
||||||
Clay Fowler
|
Clay Fowler
|
||||||
Claus Steuer
|
|
||||||
Chuck Sembroski
|
Chuck Sembroski
|
||||||
Christopher Blaesius
|
Chuck Seberion
|
||||||
Christopher Baker
|
|
||||||
Christophe Herreman
|
|
||||||
Christian Noon
|
|
||||||
Christian Kaser
|
|
||||||
Christian Ehrlicher
|
|
||||||
Chris White
|
|
||||||
Chris McGlone
|
Chris McGlone
|
||||||
Carlos Garcea
|
Carlos Garcea
|
||||||
Capostrophic
|
|
||||||
Bryce Eldridge
|
|
||||||
Bruno Herbelin
|
Bruno Herbelin
|
||||||
Brian Keener
|
Brian Keener
|
||||||
Brede Thu
|
|
||||||
Brandon Hamm
|
Brandon Hamm
|
||||||
Bill Prendergast
|
Brad Anderegg
|
||||||
Bernardt Duvenhage
|
Bora Utka
|
||||||
Benoit Laniel
|
Blasius Czink
|
||||||
Benjamin Wasty
|
|
||||||
Ben van Basten
|
Ben van Basten
|
||||||
Bart Gallet
|
Bart Gallet
|
||||||
Axel Volley
|
Axel Volley
|
||||||
Arjun Ramamurthy
|
|
||||||
Anthousis Andreadis
|
|
||||||
Anna Sokol
|
|
||||||
Andy Preece
|
|
||||||
Andrew Reyonolds
|
Andrew Reyonolds
|
||||||
Andreas Roth
|
|
||||||
Andreas Jochens
|
Andreas Jochens
|
||||||
Andre Normann
|
|
||||||
Alois Wismer
|
|
||||||
Almalric Alexandre
|
Almalric Alexandre
|
||||||
Allen Bierbaum
|
Allen Bierbaum
|
||||||
Alexey Pavlov
|
Alexandre Amalric
|
||||||
Alberto Jaspe
|
Alberto Jaspe
|
||||||
Alan Purvis
|
Alan Purvis
|
||||||
Alan Ott
|
Alan Ott
|
||||||
Alan Harris
|
Alan Harris
|
||||||
Adrien Grandemange
|
|
||||||
Adrian Clark
|
|
||||||
Adam Richard
|
Adam Richard
|
||||||
Abhishek Bansal
|
|
||||||
|
|||||||
1342
CMakeLists.txt
@@ -1,157 +0,0 @@
|
|||||||
# Check for availability of atomic operations
|
|
||||||
# This module defines
|
|
||||||
# OPENTHREADS_HAVE_ATOMIC_OPS
|
|
||||||
|
|
||||||
OPTION(OPENTHREADS_ATOMIC_USE_MUTEX "Set to ON to force OpenThreads to use a mutex for Atmoic." OFF)
|
|
||||||
|
|
||||||
IF (OPENTHREADS_ATOMIC_USE_MUTEX)
|
|
||||||
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS 0)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS 0)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_SUN 0)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED 0)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_BSD_ATOMIC 0)
|
|
||||||
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_MUTEX 1)
|
|
||||||
|
|
||||||
ELSE()
|
|
||||||
# as the test does not work for IOS hardcode the ATOMIC implementation
|
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE_SIMULATOR OR OSG_BUILD_PLATFORM_IPHONE)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS 0)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS 0)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_SUN 0)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED 0)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_MUTEX 0)
|
|
||||||
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_BSD_ATOMIC 1)
|
|
||||||
|
|
||||||
ELSE()
|
|
||||||
INCLUDE(CheckCXXSourceRuns)
|
|
||||||
|
|
||||||
# Do step by step checking,
|
|
||||||
CHECK_CXX_SOURCE_RUNS("
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
unsigned value = 0;
|
|
||||||
void* ptr = &value;
|
|
||||||
__sync_add_and_fetch(&value, 1);
|
|
||||||
__sync_synchronize();
|
|
||||||
__sync_sub_and_fetch(&value, 1);
|
|
||||||
if (!__sync_bool_compare_and_swap(&value, 0, 1))
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
if (!__sync_bool_compare_and_swap(&ptr, ptr, ptr))
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
|
||||||
" _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS)
|
|
||||||
|
|
||||||
CHECK_CXX_SOURCE_RUNS("
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
int main(int, const char**)
|
|
||||||
{
|
|
||||||
unsigned value = 0;
|
|
||||||
void* ptr = &value;
|
|
||||||
__add_and_fetch(&value, 1);
|
|
||||||
__synchronize(value);
|
|
||||||
__sub_and_fetch(&value, 1);
|
|
||||||
if (!__compare_and_swap(&value, 0, 1))
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
if (!__compare_and_swap((unsigned long*)&ptr, (unsigned long)ptr, (unsigned long)ptr))
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
|
||||||
" _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS)
|
|
||||||
|
|
||||||
CHECK_CXX_SOURCE_RUNS("
|
|
||||||
#include <atomic.h>
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
int main(int, const char**)
|
|
||||||
{
|
|
||||||
uint_t value = 0;
|
|
||||||
void* ptr = &value;
|
|
||||||
atomic_inc_uint_nv(&value);
|
|
||||||
membar_consumer();
|
|
||||||
atomic_dec_uint_nv(&value);
|
|
||||||
if (0 != atomic_cas_uint(&value, 0, 1))
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
if (ptr != atomic_cas_ptr(&ptr, ptr, ptr))
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
|
||||||
" _OPENTHREADS_ATOMIC_USE_SUN)
|
|
||||||
|
|
||||||
CHECK_CXX_SOURCE_RUNS("
|
|
||||||
#include <windows.h>
|
|
||||||
#include <intrin.h>
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
#pragma intrinsic(_InterlockedAnd)
|
|
||||||
#pragma intrinsic(_InterlockedOr)
|
|
||||||
#pragma intrinsic(_InterlockedXor)
|
|
||||||
|
|
||||||
int main(int, const char**)
|
|
||||||
{
|
|
||||||
volatile long value = 0;
|
|
||||||
long data = 0;
|
|
||||||
long* volatile ptr = &data;
|
|
||||||
|
|
||||||
InterlockedIncrement(&value);
|
|
||||||
MemoryBarrier();
|
|
||||||
InterlockedDecrement(&value);
|
|
||||||
|
|
||||||
if (0 != InterlockedCompareExchange(&value, 1, 0))
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
if (ptr != InterlockedCompareExchangePointer((PVOID volatile*)&ptr, (PVOID)ptr, (PVOID)ptr))
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
|
||||||
" _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED)
|
|
||||||
|
|
||||||
CHECK_CXX_SOURCE_RUNS("
|
|
||||||
#include <libkern/OSAtomic.h>
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
volatile int32_t value = 0;
|
|
||||||
long data = 0;
|
|
||||||
long * volatile ptr = &data;
|
|
||||||
|
|
||||||
OSAtomicIncrement32(&value);
|
|
||||||
OSMemoryBarrier();
|
|
||||||
OSAtomicDecrement32(&value);
|
|
||||||
OSAtomicCompareAndSwapInt(value, 1, &value);
|
|
||||||
OSAtomicCompareAndSwapPtr(ptr, ptr, (void * volatile *)&ptr);
|
|
||||||
}
|
|
||||||
" _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC)
|
|
||||||
|
|
||||||
IF(NOT _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS AND
|
|
||||||
NOT _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS AND
|
|
||||||
NOT _OPENTHREADS_ATOMIC_USE_SUN AND
|
|
||||||
NOT _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED AND
|
|
||||||
NOT _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_MUTEX 1)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
# MinGW can set both WIN32_INTERLOCKED and GCC_BUILTINS to true which results in compliation errors
|
|
||||||
IF (_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS AND _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED)
|
|
||||||
# In this case we prefer the GCC_BUILTINS
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS 1)
|
|
||||||
SET(_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED 0)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
# all the paramenter are required, in case of lists, use "" in calling
|
# all the paramenter are required, in case of lists, use "" in calling
|
||||||
################################################################################################
|
################################################################################################
|
||||||
|
|
||||||
MACRO(FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY_NAMES_BASE SEARCHPATHLIST DEBUGSUFFIX EXSUFFIX)
|
MACRO(FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY_NAMES SEARCHPATHLIST DEBUGSUFFIX)
|
||||||
|
|
||||||
MESSAGE(STATUS "searching ${DEPNAME} -->${INCLUDEFILE}<-->${LIBRARY_NAMES_BASE}<-->${SEARCHPATHLIST}<--")
|
MESSAGE(STATUS "searching ${DEPNAME} -->${INCLUDEFILE}<-->${LIBRARY}<-->${SEARCHPATHLIST}<--")
|
||||||
|
|
||||||
SET(MY_PATH_INCLUDE )
|
SET(MY_PATH_INCLUDE )
|
||||||
SET(MY_PATH_LIB )
|
SET(MY_PATH_LIB )
|
||||||
@@ -17,28 +17,21 @@ MACRO(FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY_NAMES_BASE SEARCHPATHLIST DEBU
|
|||||||
|
|
||||||
FIND_PATH("${DEPNAME}_INCLUDE_DIR" ${INCLUDEFILE}
|
FIND_PATH("${DEPNAME}_INCLUDE_DIR" ${INCLUDEFILE}
|
||||||
${MY_PATH_INCLUDE}
|
${MY_PATH_INCLUDE}
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
)
|
||||||
MARK_AS_ADVANCED("${DEPNAME}_INCLUDE_DIR")
|
MARK_AS_ADVANCED("${DEPNAME}_INCLUDE_DIR")
|
||||||
#MESSAGE( " ${DEPNAME}_INCLUDE_DIR --> ${${DEPNAME}_INCLUDE_DIR}<--")
|
#MESSAGE( " ${DEPNAME}_INCLUDE_DIR --> ${${DEPNAME}_INCLUDE_DIR}<--")
|
||||||
|
|
||||||
SET(LIBRARY_NAMES "")
|
|
||||||
FOREACH(LIBNAME ${LIBRARY_NAMES_BASE})
|
|
||||||
LIST(APPEND LIBRARY_NAMES "${LIBNAME}${EXSUFFIX}")
|
|
||||||
ENDFOREACH(LIBNAME)
|
|
||||||
FIND_LIBRARY("${DEPNAME}_LIBRARY"
|
FIND_LIBRARY("${DEPNAME}_LIBRARY"
|
||||||
NAMES ${LIBRARY_NAMES}
|
NAMES ${LIBRARY_NAMES}
|
||||||
PATHS ${MY_PATH_LIB}
|
PATHS ${MY_PATH_LIB}
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
)
|
||||||
SET(LIBRARY_NAMES_DEBUG "")
|
SET(LIBRARY_NAMES_DEBUG "")
|
||||||
FOREACH(LIBNAME ${LIBRARY_NAMES_BASE})
|
FOREACH(LIBNAME ${LIBRARY_NAMES})
|
||||||
LIST(APPEND LIBRARY_NAMES_DEBUG "${LIBNAME}${DEBUGSUFFIX}${EXSUFFIX}")
|
LIST(APPEND LIBRARY_NAMES_DEBUG "${LIBNAME}${DEBUGSUFFIX}")
|
||||||
ENDFOREACH(LIBNAME)
|
ENDFOREACH(LIBNAME)
|
||||||
FIND_LIBRARY("${DEPNAME}_LIBRARY_DEBUG"
|
FIND_LIBRARY("${DEPNAME}_LIBRARY_DEBUG"
|
||||||
NAMES ${LIBRARY_NAMES_DEBUG}
|
NAMES ${LIBRARY_NAMES_DEBUG}
|
||||||
PATHS ${MY_PATH_LIB}
|
PATHS ${MY_PATH_LIB}
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
)
|
||||||
MARK_AS_ADVANCED("${DEPNAME}_LIBRARY")
|
MARK_AS_ADVANCED("${DEPNAME}_LIBRARY")
|
||||||
#MESSAGE( " ${DEPNAME}_LIBRARY --> ${${DEPNAME}_LIBRARY}<--")
|
#MESSAGE( " ${DEPNAME}_LIBRARY --> ${${DEPNAME}_LIBRARY}<--")
|
||||||
@@ -49,59 +42,41 @@ MACRO(FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY_NAMES_BASE SEARCHPATHLIST DEBU
|
|||||||
MESSAGE("-- Warning Debug ${DEPNAME} not found, using: ${${DEPNAME}_LIBRARY}")
|
MESSAGE("-- Warning Debug ${DEPNAME} not found, using: ${${DEPNAME}_LIBRARY}")
|
||||||
SET(${DEPNAME}_LIBRARY_DEBUG "${${DEPNAME}_LIBRARY}")
|
SET(${DEPNAME}_LIBRARY_DEBUG "${${DEPNAME}_LIBRARY}")
|
||||||
ENDIF(NOT ${DEPNAME}_LIBRARY_DEBUG)
|
ENDIF(NOT ${DEPNAME}_LIBRARY_DEBUG)
|
||||||
|
|
||||||
SET(${DEPNAME}_LIBRARIES debug ${${DEPNAME}_LIBRARY_DEBUG} optimized ${${DEPNAME}_LIBRARY} )
|
|
||||||
|
|
||||||
ENDIF(${DEPNAME}_INCLUDE_DIR AND ${DEPNAME}_LIBRARY)
|
ENDIF(${DEPNAME}_INCLUDE_DIR AND ${DEPNAME}_LIBRARY)
|
||||||
|
ENDMACRO(FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY_NAMES SEARCHPATHLIST DEBUGSUFFIX)
|
||||||
|
|
||||||
|
|
||||||
ENDMACRO(FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY_NAMES_BASE SEARCHPATHLIST DEBUGSUFFIX)
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################################
|
################################################################################################
|
||||||
# this Macro is tailored to Mike and Torbens dependencies
|
# this Macro is tailored to Mike dependencies
|
||||||
################################################################################################
|
################################################################################################
|
||||||
|
|
||||||
MACRO(SEARCH_3RDPARTY OSG_3RDPARTY_BIN)
|
MACRO(SEARCH_3RDPARTY OSG_3RDPARTY_BIN)
|
||||||
FIND_DEPENDENCY(TIFF tiff.h "libtiff;tiff" ${OSG_3RDPARTY_BIN} "D" "")
|
FIND_DEPENDENCY(TIFF tiff.h libtiff ${OSG_3RDPARTY_BIN} "D")
|
||||||
FIND_DEPENDENCY(FREETYPE ft2build.h "freetype;freetype2311MT;freetype234;freetype234MT;freetype235;freetype237;freetype238;freetype244;freetype250;freetype27;freetype271;" ${OSG_3RDPARTY_BIN} "d" "")
|
FIND_DEPENDENCY(FREETYPE ft2build.h "freetype;freetype219;freetype234;freetype234MT" ${OSG_3RDPARTY_BIN} "_D")
|
||||||
IF(FREETYPE_FOUND)
|
IF(FREETYPE_FOUND)
|
||||||
#forcing subsequent FindFreeType stuff to not search for other variables.... kind of a hack
|
#forcing subsequent FindFreeType stuff to not search for other variables.... kind of a hack
|
||||||
SET(FREETYPE_INCLUDE_DIR_ft2build ${FREETYPE_INCLUDE_DIR} CACHE PATH "" FORCE)
|
SET(FREETYPE_INCLUDE_DIR_ft2build ${FREETYPE_INCLUDE_DIR} CACHE PATH "")
|
||||||
SET(FREETYPE_INCLUDE_DIR_freetype2 ${FREETYPE_INCLUDE_DIR} CACHE PATH "" FORCE)
|
SET(FREETYPE_INCLUDE_DIR_freetype2 ${FREETYPE_INCLUDE_DIR} CACHE PATH "")
|
||||||
MARK_AS_ADVANCED(FREETYPE_INCLUDE_DIR_ft2build FREETYPE_INCLUDE_DIR_freetype2)
|
MARK_AS_ADVANCED(FREETYPE_INCLUDE_DIR_ft2build FREETYPE_INCLUDE_DIR_freetype2)
|
||||||
SET(FREETYPE_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR_ft2build};${FREETYPE_INCLUDE_DIR_freetype2}")
|
|
||||||
ENDIF(FREETYPE_FOUND)
|
ENDIF(FREETYPE_FOUND)
|
||||||
FIND_DEPENDENCY(CURL curl/curl.h "libcurl;curllib;libcurl_imp" ${OSG_3RDPARTY_BIN} "D" "")
|
FIND_DEPENDENCY(JPEG jpeglib.h libjpeg ${OSG_3RDPARTY_BIN} "D")
|
||||||
FIND_DEPENDENCY(JPEG jpeglib.h "libjpeg;jpeg" ${OSG_3RDPARTY_BIN} "D" "")
|
#FIND_DEPENDENCY(GDAL gdal.h "gdal;gdal_i" ${OSG_3RDPARTY_BIN})
|
||||||
FIND_DEPENDENCY(GDAL gdal.h "gdal;gdal16" ${OSG_3RDPARTY_BIN} "d" "_i")
|
FIND_DEPENDENCY(GLUT GL/glut.h glut32 ${OSG_3RDPARTY_BIN} "D")
|
||||||
FIND_DEPENDENCY(GLUT GL/glut.h glut32 ${OSG_3RDPARTY_BIN} "D" "")
|
|
||||||
IF(GLUT_FOUND)
|
IF(GLUT_FOUND)
|
||||||
#forcing subsequent FindGlut stuff to not search for other variables.... kind of a hack
|
#forcing subsequent FindGlut stuff to not search for other variables.... kind of a hack
|
||||||
SET(GLUT_glut_LIBRARY ${GLUT_LIBRARY} CACHE FILEPATH "")
|
SET(GLUT_glut_LIBRARY ${GLUT_LIBRARY} CACHE FILEPATH "")
|
||||||
MARK_AS_ADVANCED(GLUT_glut_LIBRARY)
|
MARK_AS_ADVANCED(GLUT_glut_LIBRARY)
|
||||||
ENDIF(GLUT_FOUND)
|
ENDIF(GLUT_FOUND)
|
||||||
FIND_DEPENDENCY(GIFLIB gif_lib.h "ungif;libungif;giflib" ${OSG_3RDPARTY_BIN} "D" "")
|
FIND_DEPENDENCY(GIFLIB gif_lib.h "ungif;libungif" ${OSG_3RDPARTY_BIN} "D")
|
||||||
FIND_DEPENDENCY(ZLIB zlib.h "z;zlib;zlib1" ${OSG_3RDPARTY_BIN} "D" "")
|
FIND_DEPENDENCY(ZLIB zlib.h "z;zlib;zlib1" ${OSG_3RDPARTY_BIN} "D")
|
||||||
IF(ZLIB_FOUND)
|
IF(ZLIB_FOUND)
|
||||||
FIND_DEPENDENCY(PNG png.h "libpng;libpng13;libpng15;libpng16" ${OSG_3RDPARTY_BIN} "D" "")
|
FIND_DEPENDENCY(PNG png.h "libpng;libpng13" ${OSG_3RDPARTY_BIN} "D")
|
||||||
IF(PNG_FOUND)
|
IF(PNG_FOUND)
|
||||||
#forcing subsequent FindPNG stuff to not search for other variables.... kind of a hack
|
#forcing subsequent FindPNG stuff to not search for other variables.... kind of a hack
|
||||||
SET(PNG_PNG_INCLUDE_DIR ${PNG_INCLUDE_DIR} CACHE FILEPATH "")
|
SET(PNG_PNG_INCLUDE_DIR ${PNG_INCLUDE_DIR} CACHE FILEPATH "")
|
||||||
MARK_AS_ADVANCED(PNG_PNG_INCLUDE_DIR)
|
MARK_AS_ADVANCED(PNG_PNG_INCLUDE_DIR)
|
||||||
ENDIF(PNG_FOUND)
|
ENDIF(PNG_FOUND)
|
||||||
ENDIF(ZLIB_FOUND)
|
ENDIF(ZLIB_FOUND)
|
||||||
|
|
||||||
# CMakes default module to find libxml2 will not find the in
|
|
||||||
FIND_DEPENDENCY(LIBXML2 libxml/xpath.h "libxml2" ${OSG_3RDPARTY_BIN} "D" "")
|
|
||||||
IF(LIBXML2_FOUND)
|
|
||||||
# The CMAKE find libxml module uses LIBXML2_LIBRARIES -> fill it.... kind of a hack
|
|
||||||
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARY} CACHE FILEPATH "LibXML2 library for collada" FORCE)
|
|
||||||
# SET(LIBXML2_XMLLINT_EXECUTABLE ${OSG_3RDPARTY_BIN}/bin/xmllint.exe CACHE FILEPATH "Path to xmllint executable" FORCE)
|
|
||||||
ENDIF(LIBXML2_FOUND)
|
|
||||||
#FIND_DEPENDENCY(DEPNAME INCLUDEFILE LIBRARY_NAMES_BASE SEARCHPATHLIST DEBUGSUFFIX EXSUFFIX)
|
|
||||||
FIND_Package(NVTT)
|
|
||||||
#luigi#INCLUDE(FindOSGDepends.cmake)
|
#luigi#INCLUDE(FindOSGDepends.cmake)
|
||||||
ENDMACRO(SEARCH_3RDPARTY OSG_3RDPARTY_BIN)
|
ENDMACRO(SEARCH_3RDPARTY OSG_3RDPARTY_BIN)
|
||||||
|
|
||||||
@@ -109,42 +84,14 @@ ENDMACRO(SEARCH_3RDPARTY OSG_3RDPARTY_BIN)
|
|||||||
|
|
||||||
|
|
||||||
################################################################################################
|
################################################################################################
|
||||||
# this is code for handling optional 3RDPARTY usage
|
# this is code for handling optional 3DPARTY usage
|
||||||
################################################################################################
|
################################################################################################
|
||||||
|
|
||||||
OPTION(USE_3RDPARTY_BIN "Set to ON to use Mike or Torbens prebuilt dependencies situated side of OpenSceneGraph source. Use OFF for avoiding." ON)
|
OPTION(USE_3DPARTY_BIN "Set to ON to use Mike prebuilt dependencies situated side of OpenSceneGraph source. Use OFF for avoiding." ON)
|
||||||
IF(USE_3RDPARTY_BIN)
|
IF(USE_3DPARTY_BIN)
|
||||||
|
|
||||||
# Check Architecture
|
|
||||||
IF( CMAKE_SIZEOF_VOID_P EQUAL 4 )
|
|
||||||
MESSAGE( STATUS "32 bit architecture detected" )
|
|
||||||
SET(DESTINATION_ARCH "x86")
|
|
||||||
ENDIF()
|
|
||||||
IF( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
|
||||||
MESSAGE( STATUS "64 bit architecture detected" )
|
|
||||||
SET(DESTINATION_ARCH "x64")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
GET_FILENAME_COMPONENT(PARENT_DIR ${PROJECT_SOURCE_DIR} PATH)
|
GET_FILENAME_COMPONENT(PARENT_DIR ${PROJECT_SOURCE_DIR} PATH)
|
||||||
SET(TEST_3RDPARTY_DIR "${PARENT_DIR}/3rdparty")
|
SET(ACTUAL_3DPARTY_DIR "${PARENT_DIR}/3rdparty" CACHE PATH "Location of 3rdparty dependencies")
|
||||||
IF(NOT EXISTS ${TEST_3RDPARTY_DIR})
|
IF(EXISTS ${ACTUAL_3DPARTY_DIR})
|
||||||
SET(3RDPARTY_DIR_BY_ENV $ENV{OSG_3RDPARTY_DIR})
|
SEARCH_3RDPARTY(${ACTUAL_3DPARTY_DIR})
|
||||||
IF(3RDPARTY_DIR_BY_ENV)
|
ENDIF(EXISTS ${ACTUAL_3DPARTY_DIR})
|
||||||
MESSAGE( STATUS "3rdParty-Package ENV variable found:${3RDPARTY_DIR_BY_ENV}/${DESTINATION_ARCH}" )
|
ENDIF(USE_3DPARTY_BIN)
|
||||||
SET(TEST_3RDPARTY_DIR "${3RDPARTY_DIR_BY_ENV}/${DESTINATION_ARCH}")
|
|
||||||
ELSEIF(MSVC71)
|
|
||||||
SET(TEST_3RDPARTY_DIR "${PARENT_DIR}/3rdParty_win32binaries_vs71")
|
|
||||||
ELSEIF(MSVC80)
|
|
||||||
SET(TEST_3RDPARTY_DIR "${PARENT_DIR}/3rdParty_win32binaries_vs80sp1")
|
|
||||||
ELSEIF(MSVC90)
|
|
||||||
SET(TEST_3RDPARTY_DIR "${PARENT_DIR}/3rdParty_win32binaries_vs90sp1")
|
|
||||||
ENDIF()
|
|
||||||
ENDIF(NOT EXISTS ${TEST_3RDPARTY_DIR})
|
|
||||||
|
|
||||||
SET(ACTUAL_3RDPARTY_DIR "${TEST_3RDPARTY_DIR}" CACHE PATH "Location of 3rdparty dependencies")
|
|
||||||
SET(ACTUAL_3DPARTY_DIR "${ACTUAL_3RDPARTY_DIR}") # kept for backcompatibility
|
|
||||||
IF(EXISTS ${ACTUAL_3RDPARTY_DIR})
|
|
||||||
SET (3rdPartyRoot ${ACTUAL_3RDPARTY_DIR})
|
|
||||||
SEARCH_3RDPARTY(${ACTUAL_3RDPARTY_DIR})
|
|
||||||
ENDIF(EXISTS ${ACTUAL_3RDPARTY_DIR})
|
|
||||||
ENDIF(USE_3RDPARTY_BIN)
|
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
# Locate Apple AVFoundation (next-generation QTKit)
|
|
||||||
# This module defines
|
|
||||||
# AV_FOUNDATION_LIBRARY
|
|
||||||
# AV_FOUNDATION_FOUND, if false, do not try to link to gdal
|
|
||||||
#
|
|
||||||
# $AV_FOUNDATION_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$AV_FOUNDATION_DIR
|
|
||||||
#
|
|
||||||
# Created by Stephan Maximilian Huber
|
|
||||||
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
FIND_LIBRARY(AV_FOUNDATION_LIBRARY AVFoundation)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
SET(AV_FOUNDATION_FOUND "NO")
|
|
||||||
IF(AV_FOUNDATION_LIBRARY)
|
|
||||||
SET(AV_FOUNDATION_FOUND "YES")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
|
||||||
# AVFoundation exists ON iOS, too -- good support for SDK 6.0 and greater
|
|
||||||
IF(${IPHONE_SDKVER} LESS "6.0")
|
|
||||||
SET(AV_FOUNDATION_FOUND "NO")
|
|
||||||
ELSE()
|
|
||||||
SET(AV_FOUNDATION_FOUND "YES")
|
|
||||||
ENDIF()
|
|
||||||
ELSE()
|
|
||||||
IF(APPLE)
|
|
||||||
# AVFoundation exists since 10.7, but only 10.8 has all features necessary for OSG
|
|
||||||
# so check the SDK-setting
|
|
||||||
|
|
||||||
IF(OSG_OSX_VERSION VERSION_LESS 10.8)
|
|
||||||
MESSAGE("AVFoundation disabled for SDK < 10.8")
|
|
||||||
SET(AV_FOUNDATION_FOUND "NO")
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
# Locate AndroidNDK
|
|
||||||
# This module defines
|
|
||||||
# ANDROID_NDK
|
|
||||||
# ANDROID_FOUND, if false, do not try to use AndroidNDK
|
|
||||||
#
|
|
||||||
|
|
||||||
FIND_PATH(ANDROID_NDK ndk-build
|
|
||||||
${ANDROID_NDK}
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
IF(NOT ANDROID_NDK)
|
|
||||||
FIND_PATH(ANDROID_NDK ndk-build
|
|
||||||
$ENV{ANDROID_NDK}
|
|
||||||
$ENV{ANDROID_ROOT}
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(NOT ANDROID_NDK)
|
|
||||||
FIND_PATH(ANDROID_NDK ndk-build
|
|
||||||
# search for r5c
|
|
||||||
~/android-ndk-r5c
|
|
||||||
~/android_develop/android-ndk-r5c
|
|
||||||
~/ndk-r5c
|
|
||||||
~/android_develop/ndk-r5c
|
|
||||||
# search for r5b
|
|
||||||
~/android-ndk-r5b
|
|
||||||
~/android_develop/android-ndk-r5b
|
|
||||||
~/ndk-r5b
|
|
||||||
~/android_develop/ndk-r5b
|
|
||||||
# search for r5
|
|
||||||
~/android-ndk-r5
|
|
||||||
~/android_develop/android-ndk-r5
|
|
||||||
~/ndk-r5
|
|
||||||
~/android_develop/ndk-r5
|
|
||||||
# search for r4-crystax
|
|
||||||
~/android-ndk-r4-crystax
|
|
||||||
~/android_develop/android-ndk-r4-crystax
|
|
||||||
~/ndk-r4
|
|
||||||
~/android_develop/ndk-r4
|
|
||||||
)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
SET(ANDROID_FOUND "NO")
|
|
||||||
IF(ANDROID_NDK)
|
|
||||||
SET(ANDROID_FOUND "YES")
|
|
||||||
MESSAGE(STATUS "Android NDK found in: ${ANDROID_NDK}")
|
|
||||||
ENDIF(ANDROID_NDK)
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# Locate ASIO-headers (http://think-async.com/Asio)
|
|
||||||
# This module defines
|
|
||||||
# ASIO_FOUND, if false, do not try to link to gdal
|
|
||||||
# ASIO_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# Created by Stephan Maximilian Huber
|
|
||||||
|
|
||||||
FIND_PATH(ASIO_INCLUDE_DIR
|
|
||||||
NAMES
|
|
||||||
asio.hpp
|
|
||||||
PATHS
|
|
||||||
/usr/include
|
|
||||||
/usr/local/include
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(ASIO_FOUND "NO")
|
|
||||||
IF(ASIO_INCLUDE_DIR)
|
|
||||||
FIND_PACKAGE( Boost 1.37 )
|
|
||||||
IF(Boost_FOUND)
|
|
||||||
SET(ASIO_FOUND "YES")
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,333 +1,56 @@
|
|||||||
# Locate Collada
|
# Locate gdal
|
||||||
# This module defines:
|
# This module defines
|
||||||
|
# COLLADA_LIBRARY
|
||||||
|
# COLLADA_FOUND, if false, do not try to link to gdal
|
||||||
# COLLADA_INCLUDE_DIR, where to find the headers
|
# COLLADA_INCLUDE_DIR, where to find the headers
|
||||||
#
|
#
|
||||||
# COLLADA_LIBRARY, COLLADA_LIBRARY_DEBUG
|
|
||||||
# COLLADA_FOUND, if false, do not try to link to Collada dynamically
|
|
||||||
#
|
|
||||||
# COLLADA_LIBRARY_STATIC, COLLADA_LIBRARY_STATIC_DEBUG
|
|
||||||
# COLLADA_STATIC_FOUND, if false, do not try to link to Collada statically
|
|
||||||
#
|
|
||||||
# $COLLADA_DIR is an environment variable that would
|
# $COLLADA_DIR is an environment variable that would
|
||||||
# correspond to the ./configure --prefix=$COLLADA_DIR
|
# correspond to the ./configure --prefix=$COLLADA_DIR
|
||||||
#
|
#
|
||||||
# Created by Robert Osfield.
|
# Created by Robert Osfield.
|
||||||
|
|
||||||
|
|
||||||
# Check if COLLADA_DIR is set, otherwise use ACTUAL_3DPARTY_DIR:
|
|
||||||
SET( COLLADA_ENV_VAR_AVAILABLE $ENV{COLLADA_DIR} )
|
|
||||||
IF ( COLLADA_ENV_VAR_AVAILABLE )
|
|
||||||
SET(COLLADA_DOM_ROOT "$ENV{COLLADA_DIR}/dom" CACHE PATH "Location of Collada DOM directory" FORCE)
|
|
||||||
ELSE ()
|
|
||||||
SET(COLLADA_DOM_ROOT "${ACTUAL_3DPARTY_DIR}/include/1.4/dom" CACHE PATH "Location of Collada DOM directory" FORCE)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
SET(COLLADA_BUILDNAME "mac")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME})
|
|
||||||
ELSEIF(MINGW)
|
|
||||||
SET(COLLADA_BUILDNAME "mingw")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME})
|
|
||||||
ELSEIF((MSVC_VERSION GREATER 1910) OR (MSVC_VERSION EQUAL 1910))
|
|
||||||
SET(COLLADA_BUILDNAME "vc14")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME "vc141")
|
|
||||||
ELSEIF(MSVC_VERSION EQUAL 1900)
|
|
||||||
SET(COLLADA_BUILDNAME "vc14")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME "vc140")
|
|
||||||
ELSEIF(MSVC_VERSION EQUAL 1800)
|
|
||||||
SET(COLLADA_BUILDNAME "vc12")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME "vc120")
|
|
||||||
ELSEIF(MSVC_VERSION EQUAL 1700)
|
|
||||||
SET(COLLADA_BUILDNAME "vc11")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME "vc110")
|
|
||||||
ELSEIF(MSVC_VERSION EQUAL 1600)
|
|
||||||
SET(COLLADA_BUILDNAME "vc10")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME "vc100")
|
|
||||||
ELSEIF(MSVC_VERSION EQUAL 1500)
|
|
||||||
SET(COLLADA_BUILDNAME "vc9")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME "vc90")
|
|
||||||
ELSEIF(MSVC_VERSION EQUAL 1400)
|
|
||||||
SET(COLLADA_BUILDNAME "vc8")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME "vc80")
|
|
||||||
ELSE()
|
|
||||||
SET(COLLADA_BUILDNAME "linux")
|
|
||||||
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME})
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(${CMAKE_VS_PLATFORM_TOOLSET})
|
|
||||||
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME ${CMAKE_VS_PLATFORM_TOOLSET})
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
FIND_PATH(COLLADA_INCLUDE_DIR dae.h
|
FIND_PATH(COLLADA_INCLUDE_DIR dae.h
|
||||||
${COLLADA_DOM_ROOT}/include
|
|
||||||
$ENV{COLLADA_DIR}/include
|
$ENV{COLLADA_DIR}/include
|
||||||
$ENV{COLLADA_DIR}
|
$ENV{COLLADA_DIR}
|
||||||
|
$ENV{OSGDIR}/include
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/include
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/opt/local/Library/Frameworks #macports
|
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
/usr/local/include/colladadom
|
/usr/include
|
||||||
/usr/local/include/collada-dom
|
|
||||||
/usr/local/include/collada-dom2.5
|
|
||||||
/usr/local/include/collada-dom2.4
|
|
||||||
/usr/local/include/collada-dom2.2
|
|
||||||
/opt/local/include/collada-dom
|
|
||||||
/opt/local/include/collada-dom2.5
|
|
||||||
/opt/local/include/collada-dom2.4
|
|
||||||
/opt/local/include/collada-dom2.2
|
|
||||||
/usr/include/
|
|
||||||
/usr/include/colladadom
|
|
||||||
/usr/include/collada-dom
|
|
||||||
/usr/include/collada-dom2.5
|
|
||||||
/usr/include/collada-dom2.4
|
|
||||||
/usr/include/collada-dom2.2
|
|
||||||
/sw/include # Fink
|
/sw/include # Fink
|
||||||
/opt/local/include # DarwinPorts
|
/opt/local/include # DarwinPorts
|
||||||
/opt/csw/include # Blastwave
|
/opt/csw/include # Blastwave
|
||||||
/opt/include
|
/opt/include
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
/usr/freeware/include
|
/usr/freeware/include
|
||||||
${ACTUAL_3DPARTY_DIR}/include
|
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_DYNAMIC_LIBRARY
|
FIND_LIBRARY(COLLADA_LIBRARY
|
||||||
NAMES collada_dom collada14dom Collada14Dom libcollada14dom21 libcollada14dom22 collada-dom2.5-dp collada-dom2.5-dp-${COLLADA_BOOST_BUILDNAME}-mt collada-dom2.4-dp collada-dom2.4-dp-${COLLADA_BOOST_BUILDNAME}-mt
|
NAMES collada_dom
|
||||||
PATHS
|
PATHS
|
||||||
${COLLADA_DOM_ROOT}/build/${COLLADA_BUILDNAME}-1.4
|
|
||||||
${COLLADA_DOM_ROOT}
|
|
||||||
$ENV{COLLADA_DIR}/build/${COLLADA_BUILDNAME}-1.4
|
|
||||||
$ENV{COLLADA_DIR}/lib
|
$ENV{COLLADA_DIR}/lib
|
||||||
$ENV{COLLADA_DIR}/lib-dbg
|
$ENV{COLLADA_DIR}/lib-dbg
|
||||||
$ENV{COLLADA_DIR}
|
$ENV{COLLADA_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/opt/local/Library/Frameworks #macports
|
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
/usr/local/lib64
|
|
||||||
/usr/lib
|
/usr/lib
|
||||||
/usr/lib64
|
|
||||||
/sw/lib
|
/sw/lib
|
||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_DYNAMIC_LIBRARY_DEBUG
|
|
||||||
NAMES collada_dom-d collada14dom-d Collada14Dom-d libcollada14dom21-d libcollada14dom22-d collada-dom2.5-dp-d collada-dom2.5-dp-${COLLADA_BOOST_BUILDNAME}-mt-d collada-dom2.4-dp-d collada-dom2.4-dp-${COLLADA_BOOST_BUILDNAME}-mt-d
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/build/${COLLADA_BUILDNAME}-1.4-d
|
|
||||||
${COLLADA_DOM_ROOT}
|
|
||||||
$ENV{COLLADA_DIR}/build/${COLLADA_BUILDNAME}-1.4-d
|
|
||||||
$ENV{COLLADA_DIR}/lib
|
|
||||||
$ENV{COLLADA_DIR}/lib-dbg
|
|
||||||
$ENV{COLLADA_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/opt/local/Library/Frameworks #macports
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/local/lib64
|
|
||||||
/usr/lib
|
|
||||||
/usr/lib64
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_STATIC_LIBRARY
|
|
||||||
NAMES libcollada14dom21-s libcollada14dom22-s libcollada14dom.a
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/build/${COLLADA_BUILDNAME}-1.4
|
|
||||||
$ENV{COLLADA_DIR}/build/${COLLADA_BUILDNAME}-1.4
|
|
||||||
$ENV{COLLADA_DIR}/lib
|
|
||||||
$ENV{COLLADA_DIR}/lib-dbg
|
|
||||||
$ENV{COLLADA_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/opt/local/Library/Frameworks #macports
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/local/lib64
|
|
||||||
/usr/lib
|
|
||||||
/usr/lib64
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_STATIC_LIBRARY_DEBUG
|
|
||||||
NAMES collada_dom-sd collada14dom-sd libcollada14dom21-sd libcollada14dom22-sd libcollada14dom-d.a
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/build/${COLLADA_BUILDNAME}-1.4-d
|
|
||||||
$ENV{COLLADA_DIR}/build/${COLLADA_BUILDNAME}-1.4-d
|
|
||||||
$ENV{COLLADA_DIR}/lib
|
|
||||||
$ENV{COLLADA_DIR}/lib-dbg
|
|
||||||
$ENV{COLLADA_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/opt/local/Library/Frameworks #macports
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/local/lib64
|
|
||||||
/usr/lib
|
|
||||||
/usr/lib64
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
# find extra libraries that the static linking requires
|
|
||||||
|
|
||||||
FIND_PACKAGE(LibXml2)
|
|
||||||
IF (LIBXML2_FOUND)
|
|
||||||
SET(COLLADA_LIBXML_LIBRARY "${LIBXML2_LIBRARIES}" CACHE FILEPATH "" FORCE)
|
|
||||||
ELSE(LIBXML2_FOUND)
|
|
||||||
IF(WIN32)
|
|
||||||
FIND_LIBRARY(COLLADA_LIBXML_LIBRARY
|
|
||||||
NAMES libxml2
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/libxml2/win32/lib
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/libxml2/mingw/lib
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
ENDIF(WIN32)
|
|
||||||
ENDIF(LIBXML2_FOUND)
|
|
||||||
|
|
||||||
FIND_PACKAGE(ZLIB)
|
|
||||||
IF (ZLIB_FOUND)
|
|
||||||
IF (ZLIB_LIBRARY_RELEASE)
|
|
||||||
SET(COLLADA_ZLIB_LIBRARY "${ZLIB_LIBRARY_RELEASE}" CACHE FILEPATH "" FORCE)
|
|
||||||
ELSE(ZLIB_LIBRARY_RELEASE)
|
|
||||||
SET(COLLADA_ZLIB_LIBRARY "${ZLIB_LIBRARY}" CACHE FILEPATH "" FORCE)
|
|
||||||
ENDIF(ZLIB_LIBRARY_RELEASE)
|
|
||||||
IF (ZLIB_LIBRARY_DEBUG)
|
|
||||||
SET(COLLADA_ZLIB_LIBRARY_DEBUG "${ZLIB_LIBRARY_DEBUG}" CACHE FILEPATH "" FORCE)
|
|
||||||
ELSE(ZLIB_LIBRARY_DEBUG)
|
|
||||||
SET(COLLADA_ZLIB_LIBRARY_DEBUG "${COLLADA_ZLIB_LIBRARY}" CACHE FILEPATH "" FORCE)
|
|
||||||
ENDIF(ZLIB_LIBRARY_DEBUG)
|
|
||||||
ELSE(ZLIB_FOUND)
|
|
||||||
IF(WIN32)
|
|
||||||
FIND_LIBRARY(COLLADA_ZLIB_LIBRARY
|
|
||||||
NAMES zlib
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/libxml2/win32/lib
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/libxml2/mingw/lib
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
ENDIF(WIN32)
|
|
||||||
ENDIF(ZLIB_FOUND)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_PCRECPP_LIBRARY
|
|
||||||
NAMES pcrecpp
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/${COLLADA_BUILDNAME}
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mac
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mingw
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_PCRECPP_LIBRARY_DEBUG
|
|
||||||
NAMES pcrecpp-d pcrecppd
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/${COLLADA_BUILDNAME}
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mac
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mingw
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_PCRE_LIBRARY
|
|
||||||
NAMES pcre
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/${COLLADA_BUILDNAME}
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mac
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mingw
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_PCRE_LIBRARY_DEBUG
|
|
||||||
NAMES pcre-d pcred
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/${COLLADA_BUILDNAME}
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mac
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mingw
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_MINIZIP_LIBRARY
|
|
||||||
NAMES minizip
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/minizip/win32/lib
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/minizip/mac
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_MINIZIP_LIBRARY_DEBUG
|
|
||||||
NAMES minizip-d minizipD
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/minizip/win32/lib
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/minizip/mac
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_BOOST_FILESYSTEM_LIBRARY
|
|
||||||
NAMES libboost_filesystem boost_filesystem boost_filesystem-mt libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_54 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_55 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_58 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_62 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_63
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME}
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_BOOST_FILESYSTEM_LIBRARY_DEBUG
|
|
||||||
NAMES libboost_filesystem-d boost_filesystem-d boost_filesystem-mt-d libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_54 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_55 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_58 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_62 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_63
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME}
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_BOOST_SYSTEM_LIBRARY
|
|
||||||
NAMES libboost_system boost_system boost_system-mt libboost_system-${COLLADA_BOOST_BUILDNAME}-mt libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_54 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_55 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_58 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_62 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_63
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME}
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(COLLADA_BOOST_SYSTEM_LIBRARY_DEBUG
|
|
||||||
NAMES libboost_system-d boost_system-d boost_system-mt-d libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_54 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_55 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_58 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_62 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_63
|
|
||||||
PATHS
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME}
|
|
||||||
${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw
|
|
||||||
${ACTUAL_3DPARTY_DIR}/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
SET(COLLADA_FOUND "NO")
|
SET(COLLADA_FOUND "NO")
|
||||||
IF(COLLADA_DYNAMIC_LIBRARY OR COLLADA_STATIC_LIBRARY)
|
IF(COLLADA_LIBRARY AND COLLADA_INCLUDE_DIR)
|
||||||
IF (COLLADA_INCLUDE_DIR)
|
SET(COLLADA_FOUND "YES")
|
||||||
|
ENDIF(COLLADA_LIBRARY AND COLLADA_INCLUDE_DIR)
|
||||||
SET(COLLADA_FOUND "YES")
|
|
||||||
|
|
||||||
FIND_PATH(COLLADA_INCLUDE_DOMANY_DIR 1.4/dom/domAny.h
|
|
||||||
${COLLADA_INCLUDE_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
IF (COLLADA_INCLUDE_DOMANY_DIR)
|
|
||||||
SET(COLLADA_DOM_2_4_OR_LATER TRUE)
|
|
||||||
ELSEIF()
|
|
||||||
SET(COLLADA_DOM_2_4_OR_LATER FALSE)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
# Locate Apple CoreMedia
|
|
||||||
# This module defines
|
|
||||||
# COREMEDIA_LIBRARY
|
|
||||||
# COREMEDIA_FOUND, if false, do not try to link to gdal
|
|
||||||
# COREMEDIA_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $COREMEDIA_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$COREMEDIA_DIR
|
|
||||||
#
|
|
||||||
# Created by Stephan Maximilian Huber.
|
|
||||||
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
FIND_PATH(COREMEDIA_INCLUDE_DIR CoreMedia/CoreMedia.h)
|
|
||||||
FIND_LIBRARY(COREMEDIA_LIBRARY CoreMedia)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
SET(COREMEDIA_FOUND "NO")
|
|
||||||
IF(COREMEDIA_LIBRARY AND COREMEDIA_INCLUDE_DIR)
|
|
||||||
SET(COREMEDIA_FOUND "YES")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
# Locate Apple CoreVideo (next-generation QuickTime)
|
|
||||||
# This module defines
|
|
||||||
# COREVIDEO_LIBRARY
|
|
||||||
# COREVIDEO_FOUND, if false, do not try to link to gdal
|
|
||||||
# COREVIDEO_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $COREVIDEO_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$COREVIDEO_DIR
|
|
||||||
#
|
|
||||||
# Created by Eric Wing.
|
|
||||||
|
|
||||||
# CoreVideo on OS X looks different than CoreVideo for Windows,
|
|
||||||
# so I am going to case the two.
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
FIND_PATH(COREVIDEO_INCLUDE_DIR CoreVideo/CoreVideo.h)
|
|
||||||
FIND_LIBRARY(COREVIDEO_LIBRARY CoreVideo)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
SET(COREVIDEO_FOUND "NO")
|
|
||||||
IF(COREVIDEO_LIBRARY AND COREVIDEO_INCLUDE_DIR)
|
|
||||||
SET(COREVIDEO_FOUND "YES")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
# Locate directinput
|
|
||||||
# This module defines
|
|
||||||
# DIRECTINPUT_LIBRARIES
|
|
||||||
# DIRECTINPUT_FOUND, if false, do not try to link to directinput
|
|
||||||
# DIRECTINPUT_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $DIRECTINPUT_DIR is an environment variable that would
|
|
||||||
# point to the this path in the plateform devkit (Samples\Multimedia\DirectShow)
|
|
||||||
#
|
|
||||||
# Created by Cedric Pinson.
|
|
||||||
#
|
|
||||||
|
|
||||||
SET( DIRECTINPUT_FOUND FALSE )
|
|
||||||
|
|
||||||
IF( WIN32 )
|
|
||||||
FIND_PATH( DIRECTINPUT_ROOT_DIR Include/D3D10.h
|
|
||||||
PATHS
|
|
||||||
$ENV{PATH}
|
|
||||||
$ENV{PROGRAMFILES}
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_PATH( DIRECTINPUT_INCLUDE_DIR dinput.h
|
|
||||||
PATHS
|
|
||||||
${DIRECTINPUT_ROOT_DIR}/Include
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY( DIRECTINPUT_LIBRARY dinput7.lib dinput8.lib
|
|
||||||
PATHS
|
|
||||||
${DIRECTINPUT_ROOT_DIR}/lib/x86
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY( DIRECTINPUT_GUID_LIBRARY dxguid.lib
|
|
||||||
PATHS
|
|
||||||
${DIRECTINPUT_ROOT_DIR}/lib/x86
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY( DIRECTINPUT_ERR_LIBRARY dxerr.lib
|
|
||||||
PATHS
|
|
||||||
${DIRECTINPUT_ROOT_DIR}/lib/x86
|
|
||||||
)
|
|
||||||
|
|
||||||
SET( DIRECTINPUT_LIBRARIES
|
|
||||||
${DIRECTINPUT_LIBRARY}
|
|
||||||
${DIRECTINPUT_GUID_LIBRARY}
|
|
||||||
${DIRECTINPUT_ERR_LIBRARY}
|
|
||||||
)
|
|
||||||
|
|
||||||
IF ( DIRECTINPUT_INCLUDE_DIR AND DIRECTINPUT_LIBRARIES )
|
|
||||||
SET( DIRECTINPUT_FOUND TRUE )
|
|
||||||
ENDIF ( DIRECTINPUT_INCLUDE_DIR AND DIRECTINPUT_LIBRARIES )
|
|
||||||
ENDIF( WIN32 )
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED( DIRECTINPUT_FOUND )
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
# Locate directshow
|
|
||||||
# This module defines
|
|
||||||
# DIRECTSHOW_LIBRARIES
|
|
||||||
# DIRECTSHOW_FOUND, if false, do not try to link to directshow
|
|
||||||
# DIRECTSHOW_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $DIRECTSHOW_DIR is an environment variable that would
|
|
||||||
# point to the this path in the plateform devkit (Samples\Multimedia\DirectShow)
|
|
||||||
#
|
|
||||||
# Created by Cedric Pinson.
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
SET(DIRECTSHOW_FOUND "NO")
|
|
||||||
SET(DIRECTSHOW_SAMPLE_ROOT "$ENV{DIRECTSHOW_DIR}" CACHE PATH "Location of DirectShow sample in devkit")
|
|
||||||
|
|
||||||
IF(WIN32)
|
|
||||||
FIND_PATH(DIRECTSHOW_STRMBASE_INCLUDE_DIRS renbase.h
|
|
||||||
PATHS
|
|
||||||
${DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/
|
|
||||||
$ENV{DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/
|
|
||||||
DOC "Location of DirectShow Base include on the windows devkit"
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(DIRECTSHOW_STRMBASE_LIBRARY_RELEASE strmbase
|
|
||||||
PATHS
|
|
||||||
${DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/Release_MBCS/ # sdk 6.1
|
|
||||||
$ENV{DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/Release_MBCS/ # sdk 6.1
|
|
||||||
${DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/Release/ # sdk 2003
|
|
||||||
$ENV{DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/Release/ # sdk 2003
|
|
||||||
DOC "Location of DirectShow Base library on the windows devkit"
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(DIRECTSHOW_STRMBASE_LIBRARY_DEBUG strmbasd
|
|
||||||
PATHS
|
|
||||||
${DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/Debug_MBCS/ # sdk 6.1
|
|
||||||
$ENV{DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/Debug_MBCS/ # sdk 6.1
|
|
||||||
${DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/Debug/ # sdk 2003
|
|
||||||
$ENV{DIRECTSHOW_SAMPLE_ROOT}/BaseClasses/Debug/ # sdk 2003
|
|
||||||
DOC "Location of DirectShow Base library on the windows devkit"
|
|
||||||
)
|
|
||||||
|
|
||||||
IF (DIRECTSHOW_STRMBASE_INCLUDE_DIRS AND DIRECTSHOW_STRMBASE_LIBRARY_RELEASE)
|
|
||||||
SET(WIN_LIBS winmm d3d9 d3dx9 kernel32 user32 gdi32 winspool shell32 ole32 oleaut32 uuid comdlg32 advapi32)
|
|
||||||
SET(DIRECTSHOW_FOUND "YES")
|
|
||||||
SET(DIRECTSHOW_LIBRARY_DEBUG
|
|
||||||
${DIRECTSHOW_STRMBASE_LIBRARY_DEBUG}
|
|
||||||
)
|
|
||||||
SET(DIRECTSHOW_LIBRARY
|
|
||||||
${DIRECTSHOW_STRMBASE_LIBRARY_RELEASE}
|
|
||||||
)
|
|
||||||
SET(DIRECTSHOW_INLUDE_DIRS
|
|
||||||
${DIRECTSHOW_STRMBASE_INCLUDE_DIRS}
|
|
||||||
)
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
# Finds EGL header and library
|
|
||||||
#
|
|
||||||
# This script defines the following:
|
|
||||||
# EGL_FOUND // Set to TRUE if EGL is found
|
|
||||||
# EGL_INCLUDE_DIR // Parent directory of directory EGL/egl.h header.
|
|
||||||
#
|
|
||||||
# EGL_DIR can be set as an environment variable or a CMake variable,
|
|
||||||
# to the parent directory of the EGL header.
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
FIND_PATH( EGL_INCLUDE_DIR
|
|
||||||
NAMES EGL/egl.h
|
|
||||||
HINTS ENV EGL_DIR
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(EGL_LIBRARY
|
|
||||||
NAMES EGL
|
|
||||||
HINTS ENV EGL_DIR
|
|
||||||
PATH_SUFFIXES lib
|
|
||||||
)
|
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set
|
|
||||||
# EGL_FOUND to TRUE as appropriate
|
|
||||||
INCLUDE( FindPackageHandleStandardArgs )
|
|
||||||
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(EGL
|
|
||||||
REQUIRED_VARS EGL_LIBRARY EGL_INCLUDE_DIR)
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED(
|
|
||||||
EGL_INCLUDE_DIR
|
|
||||||
EGL_LIBRARY
|
|
||||||
)
|
|
||||||
@@ -1,186 +0,0 @@
|
|||||||
# Locate FBX
|
|
||||||
# This module defines:
|
|
||||||
# FBX_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# FBX_LIBRARY, FBX_LIBRARY_DEBUG
|
|
||||||
# FBX_FOUND
|
|
||||||
#
|
|
||||||
# $FBX_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$FBX_DIR
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
||||||
# using regular Clang or AppleClang
|
|
||||||
SET(FBX_LIBDIR "clang")
|
|
||||||
else()
|
|
||||||
SET(FBX_LIBDIR "gcc4/ub")
|
|
||||||
endif()
|
|
||||||
ELSEIF(CMAKE_COMPILER_IS_GNUCXX)
|
|
||||||
SET(FBX_LIBDIR "gcc4")
|
|
||||||
ELSEIF(MSVC80)
|
|
||||||
SET(FBX_LIBDIR "vs2005")
|
|
||||||
ELSEIF(MSVC90)
|
|
||||||
SET(FBX_LIBDIR "vs2008")
|
|
||||||
ELSEIF(MSVC10)
|
|
||||||
SET(FBX_LIBDIR "vs2010")
|
|
||||||
ELSEIF(MSVC11)
|
|
||||||
SET(FBX_LIBDIR "vs2012")
|
|
||||||
ELSEIF(MSVC12 OR MSVC_VERSION==1800)
|
|
||||||
SET(FBX_LIBDIR "vs2013")
|
|
||||||
ELSEIF(MSVC14 OR MSVC_VERSION>1900)
|
|
||||||
SET(FBX_LIBDIR "vs2015")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
# do nothing
|
|
||||||
ELSEIF(CMAKE_CL_64)
|
|
||||||
SET(FBX_LIBDIR ${FBX_LIBDIR}/x64)
|
|
||||||
ELSEIF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
||||||
SET(FBX_LIBDIR ${FBX_LIBDIR}/x64)
|
|
||||||
ELSE()
|
|
||||||
SET(FBX_LIBDIR ${FBX_LIBDIR}/x86)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
#try to use 2015.1 or 2014.2 version
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
SET(FBX_LIBNAME "fbxsdk")
|
|
||||||
ELSEIF(CMAKE_COMPILER_IS_GNUCXX)
|
|
||||||
SET(FBX_LIBNAME "fbxsdk")
|
|
||||||
ELSE()
|
|
||||||
OPTION(FBX_SHARED OFF)
|
|
||||||
IF(FBX_SHARED)
|
|
||||||
SET(FBX_LIBNAME "libfbxsdk")
|
|
||||||
ELSE()
|
|
||||||
SET(FBX_LIBNAME "libfbxsdk-md")
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
SET(FBX_LIBNAME_DEBUG ${FBX_LIBNAME}d)
|
|
||||||
|
|
||||||
SET( FBX_SEARCH_PATHS
|
|
||||||
$ENV{FBX_DIR}
|
|
||||||
"$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2019.0"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2019.0"
|
|
||||||
"/Applications/Autodesk/FBX\ SDK/2019.0"
|
|
||||||
"$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2018.1.1"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2018.1.1"
|
|
||||||
"/Applications/Autodesk/FBX\ SDK/2018.0"
|
|
||||||
"$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2017.1"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2017.1"
|
|
||||||
"/Applications/Autodesk/FBX SDK/2017.1"
|
|
||||||
"$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2016.1.2"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2016.1.2"
|
|
||||||
"$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2016.1.1"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2016.1.1"
|
|
||||||
"$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2015.1"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2015.1"
|
|
||||||
"/Applications/Autodesk/FBX/FBX SDK/2015.1"
|
|
||||||
/Applications/Autodesk/FBXSDK20151
|
|
||||||
"$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2014.2"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2014.2"
|
|
||||||
"/Applications/Autodesk/FBX/FBX SDK/2014.2"
|
|
||||||
/Applications/Autodesk/FBXSDK20142
|
|
||||||
)
|
|
||||||
|
|
||||||
# search for headers & debug/release libraries
|
|
||||||
FIND_PATH(FBX_INCLUDE_DIR "fbxsdk.h"
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "include")
|
|
||||||
FIND_LIBRARY( FBX_LIBRARY ${FBX_LIBNAME}
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "lib/${FBX_LIBDIR}/release" "lib/${FBX_LIBDIR}")
|
|
||||||
|
|
||||||
#Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.
|
|
||||||
|
|
||||||
#no debug d suffix, search in debug folder only
|
|
||||||
FIND_LIBRARY( FBX_LIBRARY_DEBUG ${FBX_LIBNAME}
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "lib/${FBX_LIBDIR}/debug")
|
|
||||||
FIND_LIBRARY( FBX_LIBRARY_DEBUG ${FBX_LIBNAME_DEBUG}
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "lib/${FBX_LIBDIR}")
|
|
||||||
|
|
||||||
IF(FBX_LIBRARY AND FBX_LIBRARY_DEBUG AND FBX_INCLUDE_DIR)
|
|
||||||
SET(FBX_FOUND "YES")
|
|
||||||
ELSE()
|
|
||||||
SET(FBX_FOUND "NO")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(NOT FBX_FOUND)
|
|
||||||
#try to use 2014.1 version
|
|
||||||
IF(APPLE)
|
|
||||||
SET(FBX_LIBNAME "fbxsdk-2014.1")
|
|
||||||
ELSEIF(CMAKE_COMPILER_IS_GNUCXX)
|
|
||||||
SET(FBX_LIBNAME "fbxsdk-2014.1")
|
|
||||||
ELSE()
|
|
||||||
SET(FBX_LIBNAME "fbxsdk-2014.1")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
SET(FBX_LIBNAME_DEBUG ${FBX_LIBNAME}d)
|
|
||||||
|
|
||||||
SET( FBX_SEARCH_PATHS
|
|
||||||
$ENV{FBX_DIR}
|
|
||||||
"$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2014.1"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2014.1"
|
|
||||||
"/Applications/Autodesk/FBX/FBX SDK/2014.1"
|
|
||||||
/Applications/Autodesk/FBXSDK20141
|
|
||||||
)
|
|
||||||
|
|
||||||
# search for headers & debug/release libraries
|
|
||||||
FIND_PATH(FBX_INCLUDE_DIR "fbxsdk.h"
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "include")
|
|
||||||
FIND_LIBRARY( FBX_LIBRARY ${FBX_LIBNAME}
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "lib/${FBX_LIBDIR}")
|
|
||||||
|
|
||||||
FIND_LIBRARY( FBX_LIBRARY_DEBUG ${FBX_LIBNAME_DEBUG}
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "lib/${FBX_LIBDIR}")
|
|
||||||
IF(FBX_LIBRARY AND FBX_LIBRARY_DEBUG AND FBX_INCLUDE_DIR)
|
|
||||||
SET(FBX_FOUND "YES")
|
|
||||||
ELSE()
|
|
||||||
SET(FBX_FOUND "NO")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(NOT FBX_FOUND)
|
|
||||||
#try to use 2013.3 version
|
|
||||||
IF(APPLE)
|
|
||||||
SET(FBX_LIBNAME "fbxsdk-2013.3-static")
|
|
||||||
ELSEIF(CMAKE_COMPILER_IS_GNUCXX)
|
|
||||||
SET(FBX_LIBNAME "fbxsdk-2013.3-static")
|
|
||||||
ELSE()
|
|
||||||
SET(FBX_LIBNAME "fbxsdk-2013.3-md")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
SET(FBX_LIBNAME_DEBUG ${FBX_LIBNAME}d)
|
|
||||||
|
|
||||||
SET( FBX_SEARCH_PATHS
|
|
||||||
$ENV{FBX_DIR}
|
|
||||||
"$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2013.3"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2013.3"
|
|
||||||
"/Applications/Autodesk/FBX/FBX SDK/2013.3"
|
|
||||||
/Applications/Autodesk/FBXSDK20133
|
|
||||||
)
|
|
||||||
|
|
||||||
# search for headers & debug/release libraries
|
|
||||||
FIND_PATH(FBX_INCLUDE_DIR "fbxsdk.h"
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "include")
|
|
||||||
FIND_LIBRARY( FBX_LIBRARY ${FBX_LIBNAME}
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "lib/${FBX_LIBDIR}")
|
|
||||||
|
|
||||||
FIND_LIBRARY( FBX_LIBRARY_DEBUG ${FBX_LIBNAME_DEBUG}
|
|
||||||
PATHS ${FBX_SEARCH_PATHS}
|
|
||||||
PATH_SUFFIXES "lib/${FBX_LIBDIR}")
|
|
||||||
IF(FBX_LIBRARY AND FBX_LIBRARY_DEBUG AND FBX_INCLUDE_DIR)
|
|
||||||
SET(FBX_FOUND "YES")
|
|
||||||
ELSE()
|
|
||||||
SET(FBX_FOUND "NO")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,172 +0,0 @@
|
|||||||
# Locate ffmpeg
|
|
||||||
# This module defines
|
|
||||||
# FFMPEG_LIBRARIES
|
|
||||||
# FFMPEG_FOUND, if false, do not try to link to ffmpeg
|
|
||||||
# FFMPEG_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $FFMPEG_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$FFMPEG_DIR
|
|
||||||
#
|
|
||||||
# Created by Robert Osfield.
|
|
||||||
|
|
||||||
|
|
||||||
#In ffmpeg code, old version use "#include <header.h>" and newer use "#include <libname/header.h>"
|
|
||||||
#In OSG ffmpeg plugin, we used "#include <header.h>" for compatibility with old version of ffmpeg
|
|
||||||
#With the new version of FFmpeg, a file named "time.h" was added that breaks compatibility with the old version of ffmpeg.
|
|
||||||
|
|
||||||
#We have to search the path which contain the header.h (useful for old version)
|
|
||||||
#and search the path which contain the libname/header.h (useful for new version)
|
|
||||||
|
|
||||||
#Then we need to include ${FFMPEG_libname_INCLUDE_DIRS} (in old version case, use by ffmpeg header and osg plugin code)
|
|
||||||
# (in new version case, use by ffmpeg header)
|
|
||||||
#and ${FFMPEG_libname_INCLUDE_DIRS/libname} (in new version case, use by osg plugin code)
|
|
||||||
|
|
||||||
|
|
||||||
# Macro to find header and lib directories
|
|
||||||
# example: FFMPEG_FIND(AVFORMAT avformat avformat.h)
|
|
||||||
MACRO(FFMPEG_FIND varname shortname headername)
|
|
||||||
# old version of ffmpeg put header in $prefix/include/[ffmpeg]
|
|
||||||
# so try to find header in include directory
|
|
||||||
|
|
||||||
FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS lib${shortname}/${headername}
|
|
||||||
PATHS
|
|
||||||
${FFMPEG_ROOT}/include
|
|
||||||
$ENV{FFMPEG_DIR}/include
|
|
||||||
${FFMPEG_ROOT}
|
|
||||||
$ENV{FFMPEG_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include
|
|
||||||
/usr/freeware/include
|
|
||||||
PATH_SUFFIXES ffmpeg
|
|
||||||
DOC "Location of FFMPEG Headers"
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS ${headername}
|
|
||||||
PATHS
|
|
||||||
${FFMPEG_ROOT}/include
|
|
||||||
$ENV{FFMPEG_DIR}/include
|
|
||||||
${FFMPEG_ROOT}
|
|
||||||
$ENV{FFMPEG_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include
|
|
||||||
/usr/freeware/include
|
|
||||||
PATH_SUFFIXES ffmpeg
|
|
||||||
DOC "Location of FFMPEG Headers"
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(FFMPEG_${varname}_LIBRARIES
|
|
||||||
NAMES ${shortname}
|
|
||||||
PATHS
|
|
||||||
${FFMPEG_ROOT}/lib
|
|
||||||
$ENV{FFMPEG_DIR}/lib
|
|
||||||
${FFMPEG_ROOT}/lib${shortname}
|
|
||||||
$ENV{FFMPEG_DIR}/lib${shortname}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/local/lib64
|
|
||||||
/usr/lib
|
|
||||||
/usr/lib64
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
DOC "Location of FFMPEG Libraries"
|
|
||||||
)
|
|
||||||
|
|
||||||
IF (FFMPEG_${varname}_LIBRARIES AND FFMPEG_${varname}_INCLUDE_DIRS)
|
|
||||||
SET(FFMPEG_${varname}_FOUND 1)
|
|
||||||
ENDIF(FFMPEG_${varname}_LIBRARIES AND FFMPEG_${varname}_INCLUDE_DIRS)
|
|
||||||
|
|
||||||
ENDMACRO(FFMPEG_FIND)
|
|
||||||
|
|
||||||
SET(FFMPEG_ROOT "$ENV{FFMPEG_DIR}" CACHE PATH "Location of FFMPEG")
|
|
||||||
|
|
||||||
# find stdint.h
|
|
||||||
IF(MSVC)
|
|
||||||
|
|
||||||
FIND_PATH(FFMPEG_STDINT_INCLUDE_DIR stdint.h
|
|
||||||
PATHS
|
|
||||||
${FFMPEG_ROOT}/include
|
|
||||||
$ENV{FFMPEG_DIR}/include
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include
|
|
||||||
/usr/freeware/include
|
|
||||||
PATH_SUFFIXES ffmpeg
|
|
||||||
DOC "Location of FFMPEG stdint.h Header"
|
|
||||||
)
|
|
||||||
|
|
||||||
IF (FFMPEG_STDINT_INCLUDE_DIR)
|
|
||||||
SET(STDINT_OK TRUE)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ELSE()
|
|
||||||
|
|
||||||
SET(STDINT_OK TRUE)
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
FFMPEG_FIND(LIBAVFORMAT avformat avformat.h)
|
|
||||||
FFMPEG_FIND(LIBAVDEVICE avdevice avdevice.h)
|
|
||||||
FFMPEG_FIND(LIBAVCODEC avcodec avcodec.h)
|
|
||||||
FFMPEG_FIND(LIBAVUTIL avutil avutil.h)
|
|
||||||
FFMPEG_FIND(LIBSWRESAMPLE swresample swresample.h)
|
|
||||||
FFMPEG_FIND(LIBAVRESAMPLE avresample avresample.h)
|
|
||||||
FFMPEG_FIND(LIBSWSCALE swscale swscale.h) # not sure about the header to look for here.
|
|
||||||
|
|
||||||
SET(FFMPEG_FOUND "NO")
|
|
||||||
# Note we don't check FFMPEG_LIBSWSCALE_FOUND here, it's optional.
|
|
||||||
IF (FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND FFMPEG_LIBAVCODEC_FOUND AND FFMPEG_LIBAVUTIL_FOUND AND STDINT_OK
|
|
||||||
AND ( FFMPEG_LIBSWRESAMPLE_FOUND OR FFMPEG_LIBAVRESAMPLE_FOUND ) )
|
|
||||||
|
|
||||||
SET(FFMPEG_FOUND "YES")
|
|
||||||
|
|
||||||
SET(FFMPEG_INCLUDE_DIRS
|
|
||||||
${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}
|
|
||||||
${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}
|
|
||||||
${FFMPEG_LIBAVCODEC_INCLUDE_DIRS}
|
|
||||||
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}
|
|
||||||
)
|
|
||||||
|
|
||||||
# Using the new include style for FFmpeg prevents issues with #include <time.h>
|
|
||||||
IF (FFMPEG_STDINT_INCLUDE_DIR)
|
|
||||||
SET(FFMPEG_INCLUDE_DIRS
|
|
||||||
${FFMPEG_INCLUDE_DIRS}
|
|
||||||
${FFMPEG_STDINT_INCLUDE_DIR}
|
|
||||||
)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
SET(FFMPEG_LIBRARY_DIRS ${FFMPEG_LIBAVFORMAT_LIBRARY_DIRS})
|
|
||||||
|
|
||||||
# Note we don't add FFMPEG_LIBSWSCALE_LIBRARIES here, it will be added if found later.
|
|
||||||
SET(FFMPEG_LIBRARIES
|
|
||||||
${FFMPEG_LIBAVFORMAT_LIBRARIES}
|
|
||||||
${FFMPEG_LIBAVDEVICE_LIBRARIES}
|
|
||||||
${FFMPEG_LIBAVCODEC_LIBRARIES}
|
|
||||||
${FFMPEG_LIBAVUTIL_LIBRARIES})
|
|
||||||
|
|
||||||
ELSE ()
|
|
||||||
|
|
||||||
# MESSAGE(STATUS "Could not find FFMPEG")
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# Locate FLTK
|
# Locate gdal
|
||||||
# This module defines
|
# This module defines
|
||||||
# FLTK_LIBRARY
|
# FLTK_LIBRARY
|
||||||
# FLTK_FOUND, if false, do not try to link to gdal
|
# FLTK_FOUND, if false, do not try to link to gdal
|
||||||
@@ -9,18 +9,12 @@
|
|||||||
#
|
#
|
||||||
# Created by Robert Osfield.
|
# Created by Robert Osfield.
|
||||||
|
|
||||||
# prefer FindFLTK from cmake distribution
|
|
||||||
if(EXISTS ${CMAKE_ROOT}/Modules/FindFLTK.cmake)
|
|
||||||
include(${CMAKE_ROOT}/Modules/FindFLTK.cmake)
|
|
||||||
|
|
||||||
if(FLTK_FOUND)
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
FIND_PATH(FLTK_INCLUDE_DIR Fl/Fl.H Fl/Fl.h
|
FIND_PATH(FLTK_INCLUDE_DIR Fl/Fl.H Fl/Fl.h
|
||||||
$ENV{FLTK_DIR}/include
|
$ENV{FLTK_DIR}/include
|
||||||
$ENV{FLTK_DIR}
|
$ENV{FLTK_DIR}
|
||||||
|
$ENV{OSGDIR}/include
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/include
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
@@ -29,6 +23,7 @@ FIND_PATH(FLTK_INCLUDE_DIR Fl/Fl.H Fl/Fl.h
|
|||||||
/opt/local/include # DarwinPorts
|
/opt/local/include # DarwinPorts
|
||||||
/opt/csw/include # Blastwave
|
/opt/csw/include # Blastwave
|
||||||
/opt/include
|
/opt/include
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
/usr/freeware/include
|
/usr/freeware/include
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -39,6 +34,9 @@ MACRO(FIND_FLTK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|||||||
PATHS
|
PATHS
|
||||||
$ENV{FLTK_DIR}/lib
|
$ENV{FLTK_DIR}/lib
|
||||||
$ENV{FLTK_DIR}
|
$ENV{FLTK_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
@@ -47,6 +45,7 @@ MACRO(FIND_FLTK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
FIND_PATH(FOX_INCLUDE_DIR fx.h
|
FIND_PATH(FOX_INCLUDE_DIR fx.h
|
||||||
$ENV{FOX_DIR}/include/fox-1.6
|
$ENV{FOX_DIR}/include/fox-1.6
|
||||||
$ENV{FOX_DIR}/fox-1.6
|
$ENV{FOX_DIR}/fox-1.6
|
||||||
|
$ENV{OSGDIR}/include/fox-1.6
|
||||||
|
$ENV{OSGDIR}/fox-1.6
|
||||||
|
$ENV{OSG_ROOT}/include/fox-1.6
|
||||||
~/Library/Frameworks/fox-1.6
|
~/Library/Frameworks/fox-1.6
|
||||||
/Library/Frameworks/fox-1.6
|
/Library/Frameworks/fox-1.6
|
||||||
/usr/local/include/fox-1.6
|
/usr/local/include/fox-1.6
|
||||||
@@ -20,9 +23,13 @@ FIND_PATH(FOX_INCLUDE_DIR fx.h
|
|||||||
/opt/local/include/fox-1.6 # DarwinPorts
|
/opt/local/include/fox-1.6 # DarwinPorts
|
||||||
/opt/csw/include/fox-1.6 # Blastwave
|
/opt/csw/include/fox-1.6 # Blastwave
|
||||||
/opt/include/fox-1.6
|
/opt/include/fox-1.6
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include/fox-1.6
|
||||||
/usr/freeware/include/fox-1.6
|
/usr/freeware/include/fox-1.6
|
||||||
$ENV{FOX_DIR}/include
|
$ENV{FOX_DIR}/include
|
||||||
$ENV{FOX_DIR}
|
$ENV{FOX_DIR}
|
||||||
|
$ENV{OSGDIR}/include
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/include
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
@@ -31,6 +38,7 @@ FIND_PATH(FOX_INCLUDE_DIR fx.h
|
|||||||
/opt/local/include # DarwinPorts
|
/opt/local/include # DarwinPorts
|
||||||
/opt/csw/include # Blastwave
|
/opt/csw/include # Blastwave
|
||||||
/opt/include
|
/opt/include
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
/usr/freeware/include
|
/usr/freeware/include
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -41,6 +49,9 @@ MACRO(FIND_FOX_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|||||||
PATHS
|
PATHS
|
||||||
$ENV{FOX_DIR}/lib
|
$ENV{FOX_DIR}/lib
|
||||||
$ENV{FOX_DIR}
|
$ENV{FOX_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
@@ -49,6 +60,7 @@ MACRO(FIND_FOX_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,101 +0,0 @@
|
|||||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
||||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
||||||
|
|
||||||
#[=======================================================================[.rst:
|
|
||||||
FindFontconfig
|
|
||||||
--------------
|
|
||||||
|
|
||||||
Find Fontconfig headers and library.
|
|
||||||
|
|
||||||
Imported Targets
|
|
||||||
^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
``Fontconfig::Fontconfig``
|
|
||||||
The Fontconfig library, if found.
|
|
||||||
|
|
||||||
Result Variables
|
|
||||||
^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
This will define the following variables in your project:
|
|
||||||
|
|
||||||
``FONTCONFIG_FOUND``
|
|
||||||
true if (the requested version of) Fontconfig is available.
|
|
||||||
``FONTCONFIG_VERSION``
|
|
||||||
the version of Fontconfig.
|
|
||||||
``FONTCONFIG_LIBRARIES``
|
|
||||||
the libraries to link against to use Fontconfig.
|
|
||||||
``FONTCONFIG_INCLUDE_DIRS``
|
|
||||||
where to find the Fontconfig headers.
|
|
||||||
``FONTCONFIG_COMPILE_OPTIONS``
|
|
||||||
this should be passed to target_compile_options(), if the
|
|
||||||
target is not used for linking
|
|
||||||
|
|
||||||
#]=======================================================================]
|
|
||||||
|
|
||||||
|
|
||||||
# use pkg-config to get the directories and then use these values
|
|
||||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
|
||||||
find_package(PkgConfig QUIET)
|
|
||||||
pkg_check_modules(PKG_FONTCONFIG QUIET fontconfig)
|
|
||||||
set(FONTCONFIG_COMPILE_OPTIONS ${PKG_FONTCONFIG_CFLAGS_OTHER})
|
|
||||||
set(FONTCONFIG_VERSION ${PKG_FONTCONFIG_VERSION})
|
|
||||||
|
|
||||||
find_path( FONTCONFIG_INCLUDE_DIR
|
|
||||||
NAMES
|
|
||||||
fontconfig/fontconfig.h
|
|
||||||
HINTS
|
|
||||||
${PKG_FONTCONFIG_INCLUDE_DIRS}
|
|
||||||
/usr/X11/include
|
|
||||||
)
|
|
||||||
|
|
||||||
find_library( FONTCONFIG_LIBRARY
|
|
||||||
NAMES
|
|
||||||
fontconfig
|
|
||||||
PATHS
|
|
||||||
${PKG_FONTCONFIG_LIBRARY_DIRS}
|
|
||||||
)
|
|
||||||
|
|
||||||
if (FONTCONFIG_INCLUDE_DIR AND NOT FONTCONFIG_VERSION)
|
|
||||||
file(STRINGS ${FONTCONFIG_INCLUDE_DIR}/fontconfig/fontconfig.h _contents REGEX "^#define[ \t]+FC_[A-Z]+[ \t]+[0-9]+$")
|
|
||||||
unset(FONTCONFIG_VERSION)
|
|
||||||
foreach(VPART MAJOR MINOR REVISION)
|
|
||||||
foreach(VLINE ${_contents})
|
|
||||||
if(VLINE MATCHES "^#define[\t ]+FC_${VPART}[\t ]+([0-9]+)$")
|
|
||||||
set(FONTCONFIG_VERSION_PART "${CMAKE_MATCH_1}")
|
|
||||||
if(FONTCONFIG_VERSION)
|
|
||||||
string(APPEND FONTCONFIG_VERSION ".${FONTCONFIG_VERSION_PART}")
|
|
||||||
else()
|
|
||||||
set(FONTCONFIG_VERSION "${FONTCONFIG_VERSION_PART}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
endforeach()
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(Fontconfig
|
|
||||||
FOUND_VAR
|
|
||||||
FONTCONFIG_FOUND
|
|
||||||
REQUIRED_VARS
|
|
||||||
FONTCONFIG_LIBRARY
|
|
||||||
FONTCONFIG_INCLUDE_DIR
|
|
||||||
VERSION_VAR
|
|
||||||
FONTCONFIG_VERSION
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
if(FONTCONFIG_FOUND AND NOT TARGET Fontconfig::Fontconfig)
|
|
||||||
add_library(Fontconfig::Fontconfig UNKNOWN IMPORTED)
|
|
||||||
set_target_properties(Fontconfig::Fontconfig PROPERTIES
|
|
||||||
IMPORTED_LOCATION "${FONTCONFIG_LIBRARY}"
|
|
||||||
INTERFACE_COMPILE_OPTIONS "${FONTCONFIG_COMPILE_OPTIONS}"
|
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${FONTCONFIG_INCLUDE_DIR}"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
mark_as_advanced(FONTCONFIG_LIBRARY FONTCONFIG_INCLUDE_DIR)
|
|
||||||
|
|
||||||
if(FONTCONFIG_FOUND)
|
|
||||||
set(FONTCONFIG_LIBRARIES ${FONTCONFIG_LIBRARY})
|
|
||||||
set(FONTCONFIG_INCLUDE_DIRS ${FONTCONFIG_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
79
CMakeModules/FindFreeType.cmake
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
# - Locate FreeType library
|
||||||
|
# This module defines
|
||||||
|
# FREETYPE_LIBRARY, the library to link against
|
||||||
|
# FREETYPE_FOUND, if false, do not try to link to FREETYPE
|
||||||
|
# FREETYPE_INCLUDE_DIRS, where to find headers.
|
||||||
|
# This is the concatenation of the paths:
|
||||||
|
# FREETYPE_INCLUDE_DIR_ft2build
|
||||||
|
# FREETYPE_INCLUDE_DIR_freetype2
|
||||||
|
#
|
||||||
|
# $FREETYPE_DIR is an environment variable that would
|
||||||
|
# correspond to the ./configure --prefix=$FREETYPE_DIR
|
||||||
|
# used in building FREETYPE.
|
||||||
|
# Created by Eric Wing.
|
||||||
|
|
||||||
|
# Ugh, FreeType seems to use some #include trickery which
|
||||||
|
# makes this harder than it should be. It looks like they
|
||||||
|
# put ft2build.h in a common/easier-to-find location which
|
||||||
|
# then contains a #include to a more specific header in a
|
||||||
|
# more specific location (#include <freetype/config/ftheader.h>).
|
||||||
|
# Then from there, they need to set a bunch of #define's
|
||||||
|
# so you can do something like:
|
||||||
|
# #include FT_FREETYPE_H
|
||||||
|
# Unfortunately, using CMake's mechanisms like INCLUDE_DIRECTORIES()
|
||||||
|
# wants explicit full paths and this trickery doesn't work too well.
|
||||||
|
# I'm going to attempt to cut out the middleman and hope
|
||||||
|
# everything still works.
|
||||||
|
FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h
|
||||||
|
$ENV{FREETYPE_DIR}
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
/usr/local/X11R6
|
||||||
|
/usr/X11R6/include
|
||||||
|
/sw/include
|
||||||
|
/opt/local/include
|
||||||
|
/opt/csw/include
|
||||||
|
/opt/include
|
||||||
|
/usr/freeware/include/freetype2
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h
|
||||||
|
$ENV{FREETYPE_DIR}/include/freetype2
|
||||||
|
/usr/local/include/freetype2
|
||||||
|
/usr/include/freetype2
|
||||||
|
/usr/local/X11R6/include/freetype2
|
||||||
|
/usr/X11R6/include/freetype2
|
||||||
|
/sw/include/freetype2
|
||||||
|
/opt/local/include/freetype2
|
||||||
|
/opt/csw/include/freetype2
|
||||||
|
/opt/include/freetype2
|
||||||
|
/usr/freeware/include/freetype2
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_LIBRARY(FREETYPE_LIBRARY
|
||||||
|
NAMES freetype libfreetype freetype219
|
||||||
|
PATHS
|
||||||
|
$ENV{FREETYPE_DIR}/lib
|
||||||
|
$ENV{FREETYPE_DIR}/lib
|
||||||
|
/usr/local/lib
|
||||||
|
/usr/lib
|
||||||
|
/usr/local/X11R6/lib
|
||||||
|
/usr/X11R6/lib
|
||||||
|
/sw/lib
|
||||||
|
/opt/local/lib
|
||||||
|
/opt/csw/lib
|
||||||
|
/opt/lib
|
||||||
|
/usr/freeware/lib64
|
||||||
|
)
|
||||||
|
|
||||||
|
IF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2)
|
||||||
|
SET(FREETYPE_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR_ft2build};${FREETYPE_INCLUDE_DIR_freetype2}")
|
||||||
|
ENDIF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2)
|
||||||
|
|
||||||
|
|
||||||
|
SET(FREETYPE_FOUND "NO")
|
||||||
|
IF(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS)
|
||||||
|
SET(FREETYPE_FOUND "YES")
|
||||||
|
ENDIF(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS)
|
||||||
|
|
||||||
|
|
||||||
@@ -1,188 +0,0 @@
|
|||||||
#.rst:
|
|
||||||
# FindFreetype
|
|
||||||
# ------------
|
|
||||||
#
|
|
||||||
# Locate FreeType library
|
|
||||||
#
|
|
||||||
# This module defines
|
|
||||||
#
|
|
||||||
# ::
|
|
||||||
#
|
|
||||||
# FREETYPE_LIBRARIES, the library to link against
|
|
||||||
# FREETYPE_FOUND, if false, do not try to link to FREETYPE
|
|
||||||
# FREETYPE_INCLUDE_DIRS, where to find headers.
|
|
||||||
# FREETYPE_VERSION_STRING, the version of freetype found (since CMake 2.8.8)
|
|
||||||
# This is the concatenation of the paths:
|
|
||||||
# FREETYPE_INCLUDE_DIR_ft2build
|
|
||||||
# FREETYPE_INCLUDE_DIR_freetype2
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# $FREETYPE_DIR is an environment variable that would correspond to the
|
|
||||||
# ./configure --prefix=$FREETYPE_DIR used in building FREETYPE.
|
|
||||||
|
|
||||||
#=============================================================================
|
|
||||||
# Copyright 2000-2016 Kitware, Inc.
|
|
||||||
# Copyright 2000-2011 Insight Software Consortium
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# * Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
#
|
|
||||||
# * Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in the
|
|
||||||
# documentation and/or other materials provided with the distribution.
|
|
||||||
#
|
|
||||||
# * Neither the names of Kitware, Inc., the Insight Software Consortium,
|
|
||||||
# nor the names of their contributors may be used to endorse or promote
|
|
||||||
# products derived from this software without specific prior written
|
|
||||||
# permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#=============================================================================
|
|
||||||
|
|
||||||
# Created by Eric Wing.
|
|
||||||
# Modifications by Alexander Neundorf.
|
|
||||||
# This file has been renamed to "FindFreetype.cmake" instead of the correct
|
|
||||||
# "FindFreeType.cmake" in order to be compatible with the one from KDE4, Alex.
|
|
||||||
|
|
||||||
# Ugh, FreeType seems to use some #include trickery which
|
|
||||||
# makes this harder than it should be. It looks like they
|
|
||||||
# put ft2build.h in a common/easier-to-find location which
|
|
||||||
# then contains a #include to a more specific header in a
|
|
||||||
# more specific location (#include <freetype/config/ftheader.h>).
|
|
||||||
# Then from there, they need to set a bunch of #define's
|
|
||||||
# so you can do something like:
|
|
||||||
# #include FT_FREETYPE_H
|
|
||||||
# Unfortunately, using CMake's mechanisms like include_directories()
|
|
||||||
# wants explicit full paths and this trickery doesn't work too well.
|
|
||||||
# I'm going to attempt to cut out the middleman and hope
|
|
||||||
# everything still works.
|
|
||||||
|
|
||||||
# Adapted for OpenSceneGraph until the updates here for finding the debug Windows library freetyped are released with CMake
|
|
||||||
|
|
||||||
set(FREETYPE_FIND_ARGS
|
|
||||||
HINTS
|
|
||||||
ENV FREETYPE_DIR
|
|
||||||
PATHS
|
|
||||||
/usr/X11R6
|
|
||||||
/usr/local/X11R6
|
|
||||||
/usr/local/X11
|
|
||||||
/usr/freeware
|
|
||||||
ENV GTKMM_BASEPATH
|
|
||||||
[HKEY_CURRENT_USER\\SOFTWARE\\gtkmm\\2.4;Path]
|
|
||||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path]
|
|
||||||
)
|
|
||||||
|
|
||||||
find_path(
|
|
||||||
FREETYPE_INCLUDE_DIR_ft2build
|
|
||||||
ft2build.h
|
|
||||||
${FREETYPE_FIND_ARGS}
|
|
||||||
PATH_SUFFIXES
|
|
||||||
include/freetype2
|
|
||||||
include
|
|
||||||
freetype2
|
|
||||||
)
|
|
||||||
|
|
||||||
find_path(
|
|
||||||
FREETYPE_INCLUDE_DIR_freetype2
|
|
||||||
NAMES
|
|
||||||
freetype/config/ftheader.h
|
|
||||||
config/ftheader.h
|
|
||||||
${FREETYPE_FIND_ARGS}
|
|
||||||
PATH_SUFFIXES
|
|
||||||
include/freetype2
|
|
||||||
include
|
|
||||||
freetype2
|
|
||||||
)
|
|
||||||
|
|
||||||
if(NOT FREETYPE_LIBRARY)
|
|
||||||
find_library(FREETYPE_LIBRARY_RELEASE
|
|
||||||
NAMES
|
|
||||||
freetype
|
|
||||||
libfreetype
|
|
||||||
freetype219
|
|
||||||
${FREETYPE_FIND_ARGS}
|
|
||||||
PATH_SUFFIXES
|
|
||||||
lib
|
|
||||||
)
|
|
||||||
find_library(FREETYPE_LIBRARY_DEBUG
|
|
||||||
NAMES
|
|
||||||
freetyped
|
|
||||||
libfreetyped
|
|
||||||
freetype219d
|
|
||||||
${FREETYPE_FIND_ARGS}
|
|
||||||
PATH_SUFFIXES
|
|
||||||
lib
|
|
||||||
)
|
|
||||||
include(SelectLibraryConfigurations) #OSG Look in CMake Modules dir
|
|
||||||
select_library_configurations(FREETYPE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
unset(FREETYPE_FIND_ARGS)
|
|
||||||
|
|
||||||
# set the user variables
|
|
||||||
if(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2)
|
|
||||||
set(FREETYPE_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR_ft2build};${FREETYPE_INCLUDE_DIR_freetype2}")
|
|
||||||
list(REMOVE_DUPLICATES FREETYPE_INCLUDE_DIRS)
|
|
||||||
endif()
|
|
||||||
set(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}")
|
|
||||||
|
|
||||||
if(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
|
|
||||||
set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
|
|
||||||
elseif(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
|
|
||||||
set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(FREETYPE_INCLUDE_DIR_freetype2 AND FREETYPE_H)
|
|
||||||
file(STRINGS "${FREETYPE_H}" freetype_version_str
|
|
||||||
REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$")
|
|
||||||
|
|
||||||
unset(FREETYPE_VERSION_STRING)
|
|
||||||
foreach(VPART MAJOR MINOR PATCH)
|
|
||||||
foreach(VLINE ${freetype_version_str})
|
|
||||||
if(VLINE MATCHES "^#[\t ]*define[\t ]+FREETYPE_${VPART}[\t ]+([0-9]+)$")
|
|
||||||
set(FREETYPE_VERSION_PART "${CMAKE_MATCH_1}")
|
|
||||||
if(FREETYPE_VERSION_STRING)
|
|
||||||
set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_STRING}.${FREETYPE_VERSION_PART}")
|
|
||||||
else()
|
|
||||||
set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_PART}")
|
|
||||||
endif()
|
|
||||||
unset(FREETYPE_VERSION_PART)
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
endforeach()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set FREETYPE_FOUND to TRUE if
|
|
||||||
# all listed variables are TRUE
|
|
||||||
include(FindPackageHandleStandardArgs) #OSG Look in CMake Modules dir
|
|
||||||
|
|
||||||
find_package_handle_standard_args(
|
|
||||||
Freetype
|
|
||||||
REQUIRED_VARS
|
|
||||||
FREETYPE_LIBRARY
|
|
||||||
FREETYPE_INCLUDE_DIRS
|
|
||||||
VERSION_VAR
|
|
||||||
FREETYPE_VERSION_STRING
|
|
||||||
)
|
|
||||||
|
|
||||||
mark_as_advanced(
|
|
||||||
FREETYPE_INCLUDE_DIR_freetype2
|
|
||||||
FREETYPE_INCLUDE_DIR_ft2build
|
|
||||||
)
|
|
||||||
@@ -4,100 +4,55 @@
|
|||||||
# GDAL_FOUND, if false, do not try to link to gdal
|
# GDAL_FOUND, if false, do not try to link to gdal
|
||||||
# GDAL_INCLUDE_DIR, where to find the headers
|
# GDAL_INCLUDE_DIR, where to find the headers
|
||||||
#
|
#
|
||||||
# $GDALDIR is an environment variable that would
|
# $GDAL_DIR is an environment variable that would
|
||||||
# correspond to the ./configure --prefix=$GDAL_DIR
|
# correspond to the ./configure --prefix=$GDAL_DIR
|
||||||
# used in building gdal.
|
|
||||||
#
|
#
|
||||||
# Created by Eric Wing. I'm not a gdal user, but OpenSceneGraph uses it
|
# Created by Robert Osfield.
|
||||||
# for osgTerrain so I whipped this module together for completeness.
|
|
||||||
# I actually don't know the conventions or where files are typically
|
|
||||||
# placed in distros.
|
|
||||||
# Any real gdal users are encouraged to correct this (but please don't
|
|
||||||
# break the OS X framework stuff when doing so which is what usually seems
|
|
||||||
# to happen).
|
|
||||||
|
|
||||||
# This makes the presumption that you are include gdal.h like
|
|
||||||
# #include "gdal.h"
|
|
||||||
|
|
||||||
# prefer FindGDAL from cmake distribution
|
|
||||||
if(EXISTS ${CMAKE_ROOT}/Modules/FindGDAL.cmake)
|
|
||||||
include(${CMAKE_ROOT}/Modules/FindGDAL.cmake)
|
|
||||||
|
|
||||||
if(GDAL_FOUND)
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
FIND_PATH(GDAL_INCLUDE_DIR gdal.h
|
FIND_PATH(GDAL_INCLUDE_DIR gdal.h
|
||||||
PATHS
|
${GDAL_DIR}/include
|
||||||
$ENV{GDAL_DIR}
|
$ENV{GDAL_DIR}/include
|
||||||
NO_DEFAULT_PATH
|
$ENV{GDAL_DIR}
|
||||||
PATH_SUFFIXES include
|
$ENV{OSGDIR}/include
|
||||||
)
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/include
|
||||||
FIND_PATH(GDAL_INCLUDE_DIR gdal.h
|
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
PATH_SUFFIXES include
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_PATH(GDAL_INCLUDE_DIR gdal.h
|
|
||||||
PATHS
|
|
||||||
~/Library/Frameworks/gdal.framework/Headers
|
|
||||||
/Library/Frameworks/gdal.framework/Headers
|
|
||||||
/usr/local/include/gdal
|
|
||||||
/usr/local/include/GDAL
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include/gdal
|
|
||||||
/usr/include/GDAL
|
|
||||||
/usr/include
|
|
||||||
/sw/include/gdal
|
|
||||||
/sw/include/GDAL
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include/gdal
|
|
||||||
/opt/local/include/GDAL
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include/gdal
|
|
||||||
/opt/csw/include/GDAL
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include/gdal
|
|
||||||
/opt/include/GDAL
|
|
||||||
/opt/include
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(GDAL_LIBRARY
|
|
||||||
NAMES gdal gdal_i gdal1.7.0 gdal1.6.0 gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
|
|
||||||
PATHS
|
|
||||||
$ENV{GDAL_DIR}
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
PATH_SUFFIXES lib64 lib
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(GDAL_LIBRARY
|
|
||||||
NAMES gdal gdal_i gdal1.7.0 gdal1.6.0 gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
|
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
PATH_SUFFIXES lib64 lib
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(GDAL_LIBRARY
|
|
||||||
NAMES gdal gdal_i gdal1.7.0 gdal1.6.0 gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
|
|
||||||
PATHS
|
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local
|
/usr/local/include
|
||||||
/usr
|
/usr/include
|
||||||
/sw
|
/usr/include/gdal
|
||||||
/opt/local
|
/sw/include # Fink
|
||||||
/opt/csw
|
/opt/local/include # DarwinPorts
|
||||||
/opt
|
/opt/csw/include # Blastwave
|
||||||
/usr/freeware
|
/opt/include
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;GDAL_ROOT]/lib
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
PATH_SUFFIXES lib64 lib
|
/usr/freeware/include
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_LIBRARY(GDAL_LIBRARY
|
||||||
|
NAMES gdal gdal_i gdal1.4.0 gdal1.3.2
|
||||||
|
PATHS
|
||||||
|
${GDAL_DIR}/lib
|
||||||
|
$ENV{GDAL_DIR}/lib
|
||||||
|
$ENV{GDAL_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
|
~/Library/Frameworks
|
||||||
|
/Library/Frameworks
|
||||||
|
/usr/local/lib
|
||||||
|
/usr/lib
|
||||||
|
/sw/lib
|
||||||
|
/opt/local/lib
|
||||||
|
/opt/csw/lib
|
||||||
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(GDAL_FOUND "NO")
|
SET(GDAL_FOUND "NO")
|
||||||
IF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)
|
IF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)
|
||||||
SET(GDAL_FOUND "YES")
|
SET(GDAL_FOUND "YES")
|
||||||
ENDIF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)
|
ENDIF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,72 +1,56 @@
|
|||||||
|
# Locate gdal
|
||||||
# This module defines
|
# This module defines
|
||||||
# GIFLIB_LIBRARY
|
# GIFLIB_LIBRARY
|
||||||
# GIFLIB_FOUND, if false, do not try to link
|
# GIFLIB_FOUND, if false, do not try to link to gdal
|
||||||
# GIFLIB_INCLUDE_DIR, where to find the headers
|
# GIFLIB_INCLUDE_DIR, where to find the headers
|
||||||
#
|
#
|
||||||
# $GIFLIB_DIR is an environment variable that would
|
# $GIFLIB_DIR is an environment variable that would
|
||||||
# correspond to the ./configure --prefix=$GIFLIB_DIR
|
# correspond to the ./configure --prefix=$GIFLIB_DIR
|
||||||
|
# used in building gdal.
|
||||||
#
|
#
|
||||||
# Created by Eric Wing.
|
# Created by Eric Wing.
|
||||||
|
|
||||||
FIND_PATH(GIFLIB_INCLUDE_DIR gif_lib.h
|
FIND_PATH(GIFLIB_INCLUDE_DIR gif_lib.h
|
||||||
PATHS
|
$ENV{GIFLIB_DIR}/include
|
||||||
$ENV{GIFLIB_DIR}
|
$ENV{GIFLIB_DIR}
|
||||||
NO_DEFAULT_PATH
|
$ENV{OSGDIR}/include
|
||||||
PATH_SUFFIXES include
|
$ENV{OSGDIR}
|
||||||
)
|
$ENV{OSG_ROOT}/include
|
||||||
|
~/Library/Frameworks
|
||||||
FIND_PATH(GIFLIB_INCLUDE_DIR gif_lib.h
|
/Library/Frameworks
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
/usr/local/include
|
||||||
NO_DEFAULT_PATH
|
/usr/include
|
||||||
PATH_SUFFIXES include
|
/sw/include # Fink
|
||||||
)
|
/opt/local/include # DarwinPorts
|
||||||
|
/opt/csw/include # Blastwave
|
||||||
FIND_PATH(GIFLIB_INCLUDE_DIR gif_lib.h
|
/opt/include
|
||||||
PATHS
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
~/Library/Frameworks
|
/usr/freeware/include
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include
|
|
||||||
/usr/freeware/include
|
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(GIFLIB_LIBRARY
|
FIND_LIBRARY(GIFLIB_LIBRARY
|
||||||
NAMES gif ungif libgif libungif
|
NAMES gif ungif libgif libungif
|
||||||
PATHS
|
PATHS
|
||||||
$ENV{GIFLIB_DIR}
|
$ENV{GIFLIB_DIR}/lib
|
||||||
NO_DEFAULT_PATH
|
$ENV{GIFLIB_DIR}
|
||||||
PATH_SUFFIXES lib64 lib
|
$ENV{OSGDIR}/lib
|
||||||
)
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
FIND_LIBRARY(GIFLIB_LIBRARY
|
~/Library/Frameworks
|
||||||
NAMES gif ungif libgif libungif
|
/Library/Frameworks
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
/usr/local/lib
|
||||||
NO_DEFAULT_PATH
|
/usr/lib
|
||||||
PATH_SUFFIXES lib64 lib
|
/sw/lib
|
||||||
)
|
/opt/local/lib
|
||||||
|
/opt/csw/lib
|
||||||
FIND_LIBRARY(GIFLIB_LIBRARY
|
/opt/lib
|
||||||
NAMES gif ungif libgif libungif
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
PATHS
|
/usr/freeware/lib64
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
/sw
|
|
||||||
/opt/local
|
|
||||||
/opt/csw
|
|
||||||
/opt
|
|
||||||
/usr/freeware
|
|
||||||
PATH_SUFFIXES lib64 lib
|
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(GIFLIB_FOUND "NO")
|
SET(GIFLIB_FOUND "NO")
|
||||||
IF(GIFLIB_LIBRARY AND GIFLIB_INCLUDE_DIR)
|
IF(GIFLIB_LIBRARY AND GIFLIB_INCLUDE_DIR)
|
||||||
SET(GIFLIB_FOUND "YES")
|
SET(GIFLIB_FOUND "YES")
|
||||||
ENDIF(GIFLIB_LIBRARY AND GIFLIB_INCLUDE_DIR)
|
ENDIF(GIFLIB_LIBRARY AND GIFLIB_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
# Finds the OpenGL Core Profile (cp) header file.
|
|
||||||
# Looks for glcorearb.h
|
|
||||||
#
|
|
||||||
# This script defines the following:
|
|
||||||
# GLCORE_FOUND // Set to TRUE if glcorearb.h is found
|
|
||||||
# GLCORE_INCLUDE_DIR // Parent directory of directory (gl, GL3, or OpenGL) containing the CP header.
|
|
||||||
# GLCORE_GLCOREARB_HEADER // advanced
|
|
||||||
#
|
|
||||||
# GLCORE_ROOT can be set as an environment variable or a CMake variable,
|
|
||||||
# to the parent directory of the gl, GL3, or OpenGL directory containing the CP header.
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
FIND_PATH( GLCORE_GLCOREARB_HEADER
|
|
||||||
NAMES GL/glcorearb.h GL3/glcorearb.h OpenGL/glcorearb.h gl/glcorearb.h
|
|
||||||
HINTS ${GLCORE_ROOT}
|
|
||||||
PATHS ENV GLCORE_ROOT
|
|
||||||
)
|
|
||||||
|
|
||||||
set( GLCORE_INCLUDE_DIR )
|
|
||||||
if( GLCORE_GLCOREARB_HEADER )
|
|
||||||
set( GLCORE_INCLUDE_DIR ${GLCORE_GLCOREARB_HEADER} )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set
|
|
||||||
# GLCORE_FOUND to TRUE as appropriate
|
|
||||||
INCLUDE( FindPackageHandleStandardArgs )
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( GLCORE
|
|
||||||
"Set GLCORE_ROOT as the parent of the directory containing the OpenGL core profile header."
|
|
||||||
GLCORE_INCLUDE_DIR )
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED(
|
|
||||||
GLCORE_INCLUDE_DIR
|
|
||||||
GLCORE_GLCOREARB_HEADER
|
|
||||||
)
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
# - Try to find Glib and its components (gio, gobject etc)
|
|
||||||
# Once done, this will define
|
|
||||||
#
|
|
||||||
# GLIB_FOUND - system has Glib
|
|
||||||
# GLIB_INCLUDE_DIRS - the Glib include directories
|
|
||||||
# GLIB_LIBRARIES - link these to use Glib
|
|
||||||
#
|
|
||||||
# Optionally, the COMPONENTS keyword can be passed to find_package()
|
|
||||||
# and Glib components can be looked for. Currently, the following
|
|
||||||
# components can be used, and they define the following variables if
|
|
||||||
# found:
|
|
||||||
#
|
|
||||||
# gio: GLIB_GIO_LIBRARIES
|
|
||||||
# gobject: GLIB_GOBJECT_LIBRARIES
|
|
||||||
# gmodule: GLIB_GMODULE_LIBRARIES
|
|
||||||
# gthread: GLIB_GTHREAD_LIBRARIES
|
|
||||||
#
|
|
||||||
# Note that the respective _INCLUDE_DIR variables are not set, since
|
|
||||||
# all headers are in the same directory as GLIB_INCLUDE_DIRS.
|
|
||||||
#
|
|
||||||
# Copyright (C) 2012 Raphael Kubo da Costa <rakuco@webkit.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in the
|
|
||||||
# documentation and/or other materials provided with the distribution.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS
|
|
||||||
# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS
|
|
||||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
||||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
find_library(GLIB_LIBRARIES
|
|
||||||
NAMES glib-2.0
|
|
||||||
PATHS C:/gstreamer/1.0/x86_64/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
else ()
|
|
||||||
find_package(PkgConfig)
|
|
||||||
pkg_check_modules(PC_GLIB QUIET glib-2.0)
|
|
||||||
|
|
||||||
find_library(GLIB_LIBRARIES
|
|
||||||
NAMES glib-2.0
|
|
||||||
HINTS ${PC_GLIB_LIBDIR}
|
|
||||||
${PC_GLIB_LIBRARY_DIRS}
|
|
||||||
)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# Files in glib's main include path may include glibconfig.h, which,
|
|
||||||
# for some odd reason, is normally in $LIBDIR/glib-2.0/include.
|
|
||||||
get_filename_component(_GLIB_LIBRARY_DIR ${GLIB_LIBRARIES} PATH)
|
|
||||||
|
|
||||||
find_path(GLIBCONFIG_INCLUDE_DIR
|
|
||||||
NAMES glibconfig.h
|
|
||||||
HINTS ${PC_LIBDIR} ${PC_LIBRARY_DIRS} ${_GLIB_LIBRARY_DIR}
|
|
||||||
PATH_SUFFIXES glib-2.0/include
|
|
||||||
)
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
find_path(GLIB_INCLUDE_DIR
|
|
||||||
NAMES glib.h
|
|
||||||
PATHS C:/gstreamer/1.0/x86_64/include
|
|
||||||
PATH_SUFFIXES glib-2.0
|
|
||||||
)
|
|
||||||
else()
|
|
||||||
find_path(GLIB_INCLUDE_DIR
|
|
||||||
NAMES glib.h
|
|
||||||
HINTS ${PC_GLIB_INCLUDEDIR}
|
|
||||||
${PC_GLIB_INCLUDE_DIRS}
|
|
||||||
PATH_SUFFIXES glib-2.0
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (GLIBCONFIG_INCLUDE_DIR)
|
|
||||||
|
|
||||||
set(GLIB_INCLUDE_DIRS ${GLIB_INCLUDE_DIR} ${GLIBCONFIG_INCLUDE_DIR})
|
|
||||||
|
|
||||||
# Version detection
|
|
||||||
file(READ "${GLIBCONFIG_INCLUDE_DIR}/glibconfig.h" GLIBCONFIG_H_CONTENTS)
|
|
||||||
string(REGEX MATCH "#define GLIB_MAJOR_VERSION ([0-9]+)" _dummy "${GLIBCONFIG_H_CONTENTS}")
|
|
||||||
set(GLIB_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
|
||||||
string(REGEX MATCH "#define GLIB_MINOR_VERSION ([0-9]+)" _dummy "${GLIBCONFIG_H_CONTENTS}")
|
|
||||||
set(GLIB_VERSION_MINOR "${CMAKE_MATCH_1}")
|
|
||||||
string(REGEX MATCH "#define GLIB_MICRO_VERSION ([0-9]+)" _dummy "${GLIBCONFIG_H_CONTENTS}")
|
|
||||||
set(GLIB_VERSION_MICRO "${CMAKE_MATCH_1}")
|
|
||||||
set(GLIB_VERSION "${GLIB_VERSION_MAJOR}.${GLIB_VERSION_MINOR}.${GLIB_VERSION_MICRO}")
|
|
||||||
|
|
||||||
# Additional Glib components. We only look for libraries, as not all of them
|
|
||||||
# have corresponding headers and all headers are installed alongside the main
|
|
||||||
# glib ones.
|
|
||||||
foreach (_component ${GLIB_FIND_COMPONENTS})
|
|
||||||
if (${_component} STREQUAL "gio")
|
|
||||||
find_library(GLIB_GIO_LIBRARIES NAMES gio-2.0 HINTS ${_GLIB_LIBRARY_DIR})
|
|
||||||
set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GIO_LIBRARIES)
|
|
||||||
elseif (${_component} STREQUAL "gobject")
|
|
||||||
find_library(GLIB_GOBJECT_LIBRARIES NAMES gobject-2.0 HINTS ${_GLIB_LIBRARY_DIR})
|
|
||||||
set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GOBJECT_LIBRARIES)
|
|
||||||
elseif (${_component} STREQUAL "gmodule")
|
|
||||||
find_library(GLIB_GMODULE_LIBRARIES NAMES gmodule-2.0 HINTS ${_GLIB_LIBRARY_DIR})
|
|
||||||
set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GMODULE_LIBRARIES)
|
|
||||||
elseif (${_component} STREQUAL "gthread")
|
|
||||||
find_library(GLIB_GTHREAD_LIBRARIES NAMES gthread-2.0 HINTS ${_GLIB_LIBRARY_DIR})
|
|
||||||
set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GTHREAD_LIBRARIES)
|
|
||||||
elseif (${_component} STREQUAL "gio-unix")
|
|
||||||
# gio-unix is compiled as part of the gio library, but the include paths
|
|
||||||
# are separate from the shared glib ones. Since this is currently only used
|
|
||||||
# by WebKitGTK+ we don't go to extraordinary measures beyond pkg-config.
|
|
||||||
pkg_check_modules(GIO_UNIX QUIET gio-unix-2.0)
|
|
||||||
endif ()
|
|
||||||
endforeach ()
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLIB REQUIRED_VARS GLIB_INCLUDE_DIRS GLIB_LIBRARIES ${ADDITIONAL_REQUIRED_VARS}
|
|
||||||
VERSION_VAR GLIB_VERSION)
|
|
||||||
|
|
||||||
mark_as_advanced(
|
|
||||||
GLIBCONFIG_INCLUDE_DIR
|
|
||||||
GLIB_GIO_LIBRARIES
|
|
||||||
GLIB_GIO_UNIX_LIBRARIES
|
|
||||||
GLIB_GMODULE_LIBRARIES
|
|
||||||
GLIB_GOBJECT_LIBRARIES
|
|
||||||
GLIB_GTHREAD_LIBRARIES
|
|
||||||
GLIB_INCLUDE_DIR
|
|
||||||
GLIB_INCLUDE_DIRS
|
|
||||||
GLIB_LIBRARIES
|
|
||||||
)
|
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
endif ()
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# - Try to find GStreamer and its plugins
|
|
||||||
# Once done, this will define
|
|
||||||
#
|
|
||||||
# GSTREAMER_FOUND - system has GStreamer
|
|
||||||
# GSTREAMER_INCLUDE_DIRS - the GStreamer include directories
|
|
||||||
# GSTREAMER_LIBRARIES - link these to use GStreamer
|
|
||||||
#
|
|
||||||
# Additionally, gstreamer-base is always looked for and required, and
|
|
||||||
# the following related variables are defined:
|
|
||||||
#
|
|
||||||
# GSTREAMER_BASE_INCLUDE_DIRS - gstreamer-base's include directory
|
|
||||||
# GSTREAMER_BASE_LIBRARIES - link to these to use gstreamer-base
|
|
||||||
#
|
|
||||||
# Optionally, the COMPONENTS keyword can be passed to find_package()
|
|
||||||
# and GStreamer plugins can be looked for. Currently, the following
|
|
||||||
# plugins can be searched, and they define the following variables if
|
|
||||||
# found:
|
|
||||||
#
|
|
||||||
# gstreamer-app: GSTREAMER_APP_INCLUDE_DIRS and GSTREAMER_APP_LIBRARIES
|
|
||||||
# gstreamer-audio: GSTREAMER_AUDIO_INCLUDE_DIRS and GSTREAMER_AUDIO_LIBRARIES
|
|
||||||
# gstreamer-fft: GSTREAMER_FFT_INCLUDE_DIRS and GSTREAMER_FFT_LIBRARIES
|
|
||||||
# gstreamer-pbutils: GSTREAMER_PBUTILS_INCLUDE_DIRS and GSTREAMER_PBUTILS_LIBRARIES
|
|
||||||
# gstreamer-video: GSTREAMER_VIDEO_INCLUDE_DIRS and GSTREAMER_VIDEO_LIBRARIES
|
|
||||||
#
|
|
||||||
# Copyright (C) 2012 Raphael Kubo da Costa <rakuco@webkit.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in the
|
|
||||||
# documentation and/or other materials provided with the distribution.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS
|
|
||||||
# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS
|
|
||||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
||||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
# Helper macro to find a GStreamer plugin (or GStreamer itself)
|
|
||||||
# _component_prefix is prepended to the _INCLUDE_DIRS and _LIBRARIES variables (eg. "GSTREAMER_AUDIO")
|
|
||||||
# _pkgconfig_name is the component's pkg-config name (eg. "gstreamer-1.0", or "gstreamer-video-1.0").
|
|
||||||
# _header is the component's header, relative to the gstreamer-1.0 directory (eg. "gst/gst.h").
|
|
||||||
# _library is the component's library name (eg. "gstreamer-1.0" or "gstvideo-1.0")
|
|
||||||
#macro(FIND_GSTREAMER_COMPONENT _component_prefix _pkgconfig_name _header _library)
|
|
||||||
# pkg_check_modules(PC_${_component_prefix} QUIET ${_pkgconfig_name})
|
|
||||||
#
|
|
||||||
# find_path(${_component_prefix}_INCLUDE_DIRS
|
|
||||||
# NAMES ${_header}
|
|
||||||
# HINTS ${PC_${_component_prefix}_INCLUDE_DIRS} ${PC_${_component_prefix}_INCLUDEDIR}
|
|
||||||
# PATH_SUFFIXES gstreamer-1.0
|
|
||||||
# )
|
|
||||||
#
|
|
||||||
# find_library(${_component_prefix}_LIBRARIES
|
|
||||||
# NAMES ${_library}
|
|
||||||
# HINTS ${PC_${_component_prefix}_LIBRARY_DIRS} ${PC_${_component_prefix}_LIBDIR}
|
|
||||||
# )
|
|
||||||
#endmacro()
|
|
||||||
|
|
||||||
if (MSVC)
|
|
||||||
macro(FIND_GSTREAMER_COMPONENT _component_prefix _pkgconfig_name _header _library)
|
|
||||||
find_path(${_component_prefix}_INCLUDE_DIRS
|
|
||||||
NAMES ${_header}
|
|
||||||
PATHS C:/gstreamer/1.0/x86_64/include
|
|
||||||
PATH_SUFFIXES gstreamer-1.0
|
|
||||||
)
|
|
||||||
|
|
||||||
find_library(${_component_prefix}_LIBRARIES
|
|
||||||
NAMES ${_library}
|
|
||||||
PATHS C:/gstreamer/1.0/x86_64/lib
|
|
||||||
)
|
|
||||||
endmacro()
|
|
||||||
else ()
|
|
||||||
|
|
||||||
find_package(PkgConfig)
|
|
||||||
|
|
||||||
macro(FIND_GSTREAMER_COMPONENT _component_prefix _pkgconfig_name _header _library)
|
|
||||||
pkg_check_modules(${_component_prefix} QUIET ${_pkgconfig_name})
|
|
||||||
|
|
||||||
# find_path(${_component_prefix}_INCLUDE_DIRS
|
|
||||||
# NAMES ${_header}
|
|
||||||
# HINTS ${PC_${_component_prefix}_INCLUDE_DIRS} ${PC_${_component_prefix}_INCLUDEDIR}
|
|
||||||
# PATH_SUFFIXES gstreamer-1.0
|
|
||||||
# )
|
|
||||||
|
|
||||||
# find_library(${_component_prefix}_LIBRARIES
|
|
||||||
# NAMES ${_library}
|
|
||||||
# HINTS ${PC_${_component_prefix}_LIBRARY_DIRS} ${PC_${_component_prefix}_LIBDIR}
|
|
||||||
# )
|
|
||||||
endmacro()
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# ------------------------
|
|
||||||
# 1. Find GStreamer itself
|
|
||||||
# ------------------------
|
|
||||||
|
|
||||||
# 1.1. Find headers and libraries
|
|
||||||
FIND_GSTREAMER_COMPONENT(GSTREAMER gstreamer-1.0 gst/gst.h gstreamer-1.0)
|
|
||||||
FIND_GSTREAMER_COMPONENT(GSTREAMER_BASE gstreamer-base-1.0 gst/gst.h gstbase-1.0)
|
|
||||||
|
|
||||||
|
|
||||||
# 1.2. Check GStreamer version
|
|
||||||
if (GSTREAMER_INCLUDE_DIRS)
|
|
||||||
if (EXISTS "${GSTREAMER_INCLUDE_DIRS}/gst/gstversion.h")
|
|
||||||
file(READ "${GSTREAMER_INCLUDE_DIRS}/gst/gstversion.h" GSTREAMER_VERSION_CONTENTS)
|
|
||||||
|
|
||||||
string(REGEX MATCH "#define +GST_VERSION_MAJOR +\\(([0-9]+)\\)" _dummy "${GSTREAMER_VERSION_CONTENTS}")
|
|
||||||
set(GSTREAMER_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
|
||||||
|
|
||||||
string(REGEX MATCH "#define +GST_VERSION_MINOR +\\(([0-9]+)\\)" _dummy "${GSTREAMER_VERSION_CONTENTS}")
|
|
||||||
set(GSTREAMER_VERSION_MINOR "${CMAKE_MATCH_1}")
|
|
||||||
|
|
||||||
string(REGEX MATCH "#define +GST_VERSION_MICRO +\\(([0-9]+)\\)" _dummy "${GSTREAMER_VERSION_CONTENTS}")
|
|
||||||
set(GSTREAMER_VERSION_MICRO "${CMAKE_MATCH_1}")
|
|
||||||
|
|
||||||
set(GSTREAMER_VERSION "${GSTREAMER_VERSION_MAJOR}.${GSTREAMER_VERSION_MINOR}.${GSTREAMER_VERSION_MICRO}")
|
|
||||||
endif ()
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
|
|
||||||
if ("${GStreamer_FIND_VERSION}" VERSION_GREATER "${GSTREAMER_VERSION}")
|
|
||||||
message(FATAL_ERROR "Required version (" ${GStreamer_FIND_VERSION} ") is higher than found version (" ${GSTREAMER_VERSION} ")")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# -------------------------
|
|
||||||
# 2. Find GStreamer plugins
|
|
||||||
# -------------------------
|
|
||||||
|
|
||||||
FIND_GSTREAMER_COMPONENT(GSTREAMER_APP gstreamer-app-1.0 gst/app/gstappsink.h gstapp-1.0)
|
|
||||||
FIND_GSTREAMER_COMPONENT(GSTREAMER_AUDIO gstreamer-audio-1.0 gst/audio/audio.h gstaudio-1.0)
|
|
||||||
FIND_GSTREAMER_COMPONENT(GSTREAMER_FFT gstreamer-fft-1.0 gst/fft/gstfft.h gstfft-1.0)
|
|
||||||
FIND_GSTREAMER_COMPONENT(GSTREAMER_PBUTILS gstreamer-pbutils-1.0 gst/pbutils/pbutils.h gstpbutils-1.0)
|
|
||||||
FIND_GSTREAMER_COMPONENT(GSTREAMER_VIDEO gstreamer-video-1.0 gst/video/video.h gstvideo-1.0)
|
|
||||||
|
|
||||||
# ------------------------------------------------
|
|
||||||
# 3. Process the COMPONENTS passed to FIND_PACKAGE
|
|
||||||
# ------------------------------------------------
|
|
||||||
set(_GSTREAMER_REQUIRED_VARS GSTREAMER_INCLUDE_DIRS GSTREAMER_LIBRARIES GSTREAMER_VERSION GSTREAMER_BASE_INCLUDE_DIRS GSTREAMER_BASE_LIBRARIES)
|
|
||||||
|
|
||||||
foreach (_component ${GStreamer_FIND_COMPONENTS})
|
|
||||||
set(_gst_component "GSTREAMER_${_component}")
|
|
||||||
string(TOUPPER ${_gst_component} _UPPER_NAME)
|
|
||||||
|
|
||||||
list(APPEND _GSTREAMER_REQUIRED_VARS ${_UPPER_NAME}_INCLUDE_DIRS ${_UPPER_NAME}_LIBRARIES)
|
|
||||||
endforeach ()
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GStreamer REQUIRED_VARS ${_GSTREAMER_REQUIRED_VARS}
|
|
||||||
VERSION_VAR GSTREAMER_VERSION)
|
|
||||||
|
|
||||||
mark_as_advanced(
|
|
||||||
GSTREAMER_APP_INCLUDE_DIRS
|
|
||||||
GSTREAMER_APP_LIBRARIES
|
|
||||||
GSTREAMER_AUDIO_INCLUDE_DIRS
|
|
||||||
GSTREAMER_AUDIO_LIBRARIES
|
|
||||||
GSTREAMER_BASE_INCLUDE_DIRS
|
|
||||||
GSTREAMER_BASE_LIBRARIES
|
|
||||||
GSTREAMER_FFT_INCLUDE_DIRS
|
|
||||||
GSTREAMER_FFT_LIBRARIES
|
|
||||||
GSTREAMER_INCLUDE_DIRS
|
|
||||||
GSTREAMER_LIBRARIES
|
|
||||||
GSTREAMER_PBUTILS_INCLUDE_DIRS
|
|
||||||
GSTREAMER_PBUTILS_LIBRARIES
|
|
||||||
GSTREAMER_VIDEO_INCLUDE_DIRS
|
|
||||||
GSTREAMER_VIDEO_LIBRARIES
|
|
||||||
)
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
# Locate libgta
|
|
||||||
# This module defines
|
|
||||||
# GTA_FOUND, if false, do not try to link to libgta
|
|
||||||
# GTA_INCLUDE_DIRS, where to find the headers
|
|
||||||
# GTA_LIBRARIES
|
|
||||||
#
|
|
||||||
# $GTA_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$GTA_DIR
|
|
||||||
# used in building libgta.
|
|
||||||
|
|
||||||
INCLUDE(FindPkgConfig OPTIONAL)
|
|
||||||
|
|
||||||
IF(PKG_CONFIG_FOUND)
|
|
||||||
|
|
||||||
INCLUDE(FindPkgConfig)
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GTA gta)
|
|
||||||
|
|
||||||
ENDIF(PKG_CONFIG_FOUND)
|
|
||||||
|
|
||||||
IF(NOT GTA_FOUND)
|
|
||||||
FIND_PATH(GTA_INCLUDE_DIRS gta/gta.hpp
|
|
||||||
$ENV{GTA_DIR}/include
|
|
||||||
$ENV{GTA_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include
|
|
||||||
/usr/freeware/include
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(GTA_LIBRARY
|
|
||||||
NAMES gta libgta
|
|
||||||
PATHS
|
|
||||||
$ENV{GTA_DIR}/lib
|
|
||||||
$ENV{GTA_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(GTA_FOUND "NO")
|
|
||||||
IF(GTA_LIBRARY AND GTA_INCLUDE_DIRS)
|
|
||||||
SET(GTA_FOUND "YES")
|
|
||||||
ENDIF(GTA_LIBRARY AND GTA_INCLUDE_DIRS)
|
|
||||||
|
|
||||||
ENDIF(NOT GTA_FOUND)
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#use pkg-config to find various modues
|
|
||||||
INCLUDE(FindPkgConfig OPTIONAL)
|
|
||||||
|
|
||||||
IF(PKG_CONFIG_FOUND)
|
|
||||||
|
|
||||||
INCLUDE(FindPkgConfig)
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GTK gtk+-2.0)
|
|
||||||
|
|
||||||
IF(WIN32)
|
|
||||||
PKG_CHECK_MODULES(GTKGL gtkglext-win32-1.0)
|
|
||||||
ELSE()
|
|
||||||
PKG_CHECK_MODULES(GTKGL gtkglext-x11-1.0)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,41 +1,10 @@
|
|||||||
#
|
# - Locate Inventor
|
||||||
# Find Open Inventor
|
|
||||||
#
|
|
||||||
# This module defines:
|
# This module defines:
|
||||||
# INVENTOR_FOUND, if false, do not try to link against Inventor.
|
# INVENTOR_FOUND, if false, do not try to link against Inventor.
|
||||||
# INVENTOR_INCLUDE_DIR, where to find headers.
|
# INVENTOR_INCLUDE_DIR, where to find headers.
|
||||||
# INVENTOR_LIBRARY, the library to link against.
|
# INVENTOR_LIBRARY, the library to link against.
|
||||||
# INVENTOR_LIBRARY_DEBUG, the debug library to link against.
|
# INVENTOR_LIBRARY_DEBUG, the debug library to link against.
|
||||||
# INVENTOR_SOWIN_LIBRARY, the SoWin library - window binding library for Inventor
|
|
||||||
# INVENTOR_SOWIN_LIBRARY, the SoWin debug library
|
|
||||||
# INVENTOR_SOXT_LIBRARY, the SoXt library - window binding library for Inventor
|
|
||||||
# INVENTOR_SOXT_LIBRARY, the SoXt debug library
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Inventor
|
|
||||||
#
|
|
||||||
# notes:
|
|
||||||
# - Coin is honored over SGI Inventor
|
|
||||||
# - Coin is detected by coin-config script, COINDIR environment variable,
|
|
||||||
# and finally standard system locations are searched
|
|
||||||
# - SGI Inventor is searched at standard system locations only
|
|
||||||
#
|
|
||||||
|
|
||||||
# coin-config tells much of Coin instalation (if present)
|
|
||||||
execute_process (COMMAND coin-config --prefix
|
|
||||||
OUTPUT_VARIABLE COIN_PREFIX
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
||||||
|
|
||||||
# try to find Inventor includes (priority paths)
|
|
||||||
FIND_PATH(INVENTOR_INCLUDE_DIR Inventor/So.h
|
|
||||||
${COIN_PREFIX}/include
|
|
||||||
$ENV{COINDIR}/include
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find Inventor includes (regular paths)
|
|
||||||
FIND_PATH(INVENTOR_INCLUDE_DIR Inventor/So.h
|
FIND_PATH(INVENTOR_INCLUDE_DIR Inventor/So.h
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
/usr/include
|
/usr/include
|
||||||
@@ -43,164 +12,52 @@ FIND_PATH(INVENTOR_INCLUDE_DIR Inventor/So.h
|
|||||||
/opt/local/include
|
/opt/local/include
|
||||||
/opt/csw/include
|
/opt/csw/include
|
||||||
/opt/include
|
/opt/include
|
||||||
|
$ENV{COINDIR}/include
|
||||||
)
|
)
|
||||||
|
|
||||||
# default Inventor lib search paths
|
FIND_LIBRARY(INVENTOR_LIBRARY
|
||||||
SET(INVENTOR_LIB_SEARCH_PATH
|
NAMES coin2 Coin
|
||||||
|
PATHS
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
/usr/lib
|
/usr/lib
|
||||||
/sw/lib
|
/sw/lib
|
||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
$ENV{COINDIR}/lib
|
||||||
)
|
)
|
||||||
|
IF(NOT INVENTOR_LIBRARY)
|
||||||
|
# If we can't find libCoin try libInventor
|
||||||
|
FIND_LIBRARY(INVENTOR_LIBRARY
|
||||||
|
NAMES Inventor
|
||||||
|
PATHS
|
||||||
|
/usr/local/lib
|
||||||
|
/usr/lib
|
||||||
|
/sw/lib
|
||||||
|
/opt/local/lib
|
||||||
|
/opt/csw/lib
|
||||||
|
/opt/lib
|
||||||
|
)
|
||||||
|
ENDIF(NOT INVENTOR_LIBRARY)
|
||||||
|
|
||||||
# try to find Coin release lib (priority paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_LIBRARY_RELEASE
|
|
||||||
NAMES coin5 coin4 coin3 coin2 coin1 Coin
|
|
||||||
PATHS ${COIN_PREFIX}/lib
|
|
||||||
$ENV{COINDIR}/lib
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find Coin release lib (regular paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_LIBRARY_RELEASE
|
|
||||||
NAMES coin5 coin4 coin3 coin2 coin1 Coin
|
|
||||||
PATHS ${INVENTOR_LIB_SEARCH_PATH}
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find SGI Inventor lib
|
|
||||||
FIND_LIBRARY(INVENTOR_LIBRARY_RELEASE
|
|
||||||
NAMES Inventor
|
|
||||||
PATHS ${INVENTOR_LIB_SEARCH_PATH}
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find Coin debug lib (priority paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_LIBRARY_DEBUG
|
FIND_LIBRARY(INVENTOR_LIBRARY_DEBUG
|
||||||
NAMES coin5d coin4d coin3d coin2d coin1d
|
NAMES coin2d
|
||||||
PATHS ${COIN_PREFIX}/lib
|
PATHS
|
||||||
$ENV{COINDIR}/lib
|
/usr/local/lib
|
||||||
NO_DEFAULT_PATH
|
/usr/lib
|
||||||
|
/sw/lib
|
||||||
|
/opt/local/lib
|
||||||
|
/opt/csw/lib
|
||||||
|
/opt/lib
|
||||||
|
$ENV{COINDIR}/lib
|
||||||
)
|
)
|
||||||
|
IF(NOT INVENTOR_LIBRARY_DEBUG)
|
||||||
|
IF(INVENTOR_LIBRARY)
|
||||||
|
SET(INVENTOR_LIBRARY_DEBUG INVENTOR_LIBRARY)
|
||||||
|
ENDIF(INVENTOR_LIBRARY)
|
||||||
|
ENDIF(NOT INVENTOR_LIBRARY_DEBUG)
|
||||||
|
|
||||||
# try to find Coin debug lib (regular paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_LIBRARY_DEBUG
|
|
||||||
NAMES coin5d coin4d coin3d coin2d coin1d
|
|
||||||
PATHS ${INVENTOR_LIB_SEARCH_PATH}
|
|
||||||
)
|
|
||||||
|
|
||||||
# set release to debug if only debug found
|
|
||||||
IF(NOT INVENTOR_LIBRARY_RELEASE AND INVENTOR_LIBRARY_DEBUG)
|
|
||||||
SET(INVENTOR_LIBRARY_RELEASE ${INVENTOR_LIBRARY_DEBUG})
|
|
||||||
ENDIF(NOT INVENTOR_LIBRARY_RELEASE AND INVENTOR_LIBRARY_DEBUG)
|
|
||||||
|
|
||||||
# set debug to release (if only release found)
|
|
||||||
IF(NOT INVENTOR_LIBRARY_DEBUG AND INVENTOR_LIBRARY_RELEASE)
|
|
||||||
SET(INVENTOR_LIBRARY_DEBUG ${INVENTOR_LIBRARY_RELEASE})
|
|
||||||
ENDIF(NOT INVENTOR_LIBRARY_DEBUG AND INVENTOR_LIBRARY_RELEASE)
|
|
||||||
|
|
||||||
# INVENTOR_LIBRARY
|
|
||||||
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
|
||||||
SET(INVENTOR_LIBRARY
|
|
||||||
optimized ${INVENTOR_LIBRARY_RELEASE}
|
|
||||||
debug ${INVENTOR_LIBRARY_DEBUG})
|
|
||||||
ELSE(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
|
||||||
SET(INVENTOR_LIBRARY
|
|
||||||
${INVENTOR_LIBRARY_RELEASE})
|
|
||||||
ENDIF(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
|
||||||
|
|
||||||
# set INVENTOR_FOUND appropriately
|
|
||||||
SET(INVENTOR_FOUND "NO")
|
SET(INVENTOR_FOUND "NO")
|
||||||
IF(INVENTOR_INCLUDE_DIR AND INVENTOR_LIBRARY)
|
IF(INVENTOR_INCLUDE_DIR AND INVENTOR_LIBRARY)
|
||||||
SET(INVENTOR_FOUND "YES")
|
SET(INVENTOR_FOUND "YES")
|
||||||
ENDIF(INVENTOR_INCLUDE_DIR AND INVENTOR_LIBRARY)
|
ENDIF(INVENTOR_INCLUDE_DIR AND INVENTOR_LIBRARY)
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# SoWin
|
|
||||||
#
|
|
||||||
# notes: SoWin is searched by COINDIR environment variable
|
|
||||||
# (as expected to be located at Windows platform)
|
|
||||||
|
|
||||||
# try to find SoWin lib (priority paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_SOWIN_LIBRARY
|
|
||||||
NAMES sowin1
|
|
||||||
PATHS $ENV{COINDIR}/lib
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find SoWin lib (regular paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_SOWIN_LIBRARY
|
|
||||||
NAMES sowin1
|
|
||||||
PATHS ${INVENTOR_LIB_SEARCH_PATH}
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find SoWin debug lib (priority paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_SOWIN_LIBRARY_DEBUG
|
|
||||||
NAMES sowin1d
|
|
||||||
PATHS $ENV{COINDIR}/lib
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find SoWin debug lib (regular paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_SOWIN_LIBRARY_DEBUG
|
|
||||||
NAMES sowin1d
|
|
||||||
PATHS ${INVENTOR_LIB_SEARCH_PATH}
|
|
||||||
)
|
|
||||||
|
|
||||||
# SoWin debug library defaults to non-debug lib
|
|
||||||
IF(NOT INVENTOR_SOWIN_LIBRARY_DEBUG)
|
|
||||||
IF(INVENTOR_SOWIN_LIBRARY)
|
|
||||||
SET(INVENTOR_SOWIN_LIBRARY_DEBUG INVENTOR_SOWIN_LIBRARY)
|
|
||||||
ENDIF(INVENTOR_SOWIN_LIBRARY)
|
|
||||||
ENDIF(NOT INVENTOR_SOWIN_LIBRARY_DEBUG)
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# SoXt
|
|
||||||
#
|
|
||||||
# notes:
|
|
||||||
# - SoXt is detected by soxt-config script (as expected by
|
|
||||||
# Coin's SoXt on Linux/Unix) and on standard system locations
|
|
||||||
# - SGI's InventorXt support is missing now
|
|
||||||
#
|
|
||||||
|
|
||||||
# soxt-config tells much of SoXt instalation (if present)
|
|
||||||
execute_process (COMMAND soxt-config --prefix
|
|
||||||
OUTPUT_VARIABLE SOXT_PREFIX
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
||||||
|
|
||||||
# try to find SoXt lib (priority paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_SOXT_LIBRARY
|
|
||||||
NAMES soxt1 SoXt
|
|
||||||
PATHS ${SOXT_PREFIX}/lib
|
|
||||||
$ENV{COINDIR}/lib
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find SoXt lib (regular paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_SOXT_LIBRARY
|
|
||||||
NAMES soxt1 SoXt
|
|
||||||
PATHS ${INVENTOR_LIB_SEARCH_PATH}
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find SoXt debug lib (priority paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_SOXT_LIBRARY_DEBUG
|
|
||||||
NAMES soxt1d
|
|
||||||
PATHS ${SOXT_PREFIX}/lib
|
|
||||||
$ENV{COINDIR}/lib
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
# try to find SoXt debug lib (regular paths)
|
|
||||||
FIND_LIBRARY(INVENTOR_SOXT_LIBRARY_DEBUG
|
|
||||||
NAMES soxt1d
|
|
||||||
PATHS ${INVENTOR_LIB_SEARCH_PATH}
|
|
||||||
)
|
|
||||||
|
|
||||||
# SoXt debug library defaults to non-debug lib
|
|
||||||
IF(NOT INVENTOR_SOXT_LIBRARY_DEBUG)
|
|
||||||
IF(INVENTOR_SOXT_LIBRARY)
|
|
||||||
SET(INVENTOR_SOXT_LIBRARY_DEBUG INVENTOR_SOXT_LIBRARY)
|
|
||||||
ENDIF(INVENTOR_SOXT_LIBRARY)
|
|
||||||
ENDIF(NOT INVENTOR_SOXT_LIBRARY_DEBUG)
|
|
||||||
|
|||||||
@@ -9,19 +9,12 @@
|
|||||||
#
|
#
|
||||||
# Created by Robert Osfield.
|
# Created by Robert Osfield.
|
||||||
|
|
||||||
# prefer FindJasper from cmake distribution
|
|
||||||
if(EXISTS ${CMAKE_ROOT}/Modules/FindJasper.cmake)
|
|
||||||
include(${CMAKE_ROOT}/Modules/FindJasper.cmake)
|
|
||||||
|
|
||||||
if(JASPER_FOUND)
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
FIND_PATH(JASPER_INCLUDE_DIR jasper/jasper.h
|
FIND_PATH(JASPER_INCLUDE_DIR jasper/jasper.h
|
||||||
$ENV{JASPER_DIR}/include
|
$ENV{JASPER_DIR}/include
|
||||||
$ENV{JASPER_DIR}/src/libjasper/include
|
|
||||||
$ENV{JASPER_DIR}
|
$ENV{JASPER_DIR}
|
||||||
|
$ENV{OSGDIR}/include
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/include
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
@@ -30,34 +23,18 @@ FIND_PATH(JASPER_INCLUDE_DIR jasper/jasper.h
|
|||||||
/opt/local/include # DarwinPorts
|
/opt/local/include # DarwinPorts
|
||||||
/opt/csw/include # Blastwave
|
/opt/csw/include # Blastwave
|
||||||
/opt/include
|
/opt/include
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
/usr/freeware/include
|
/usr/freeware/include
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(JASPER_LIBRARY
|
FIND_LIBRARY(JASPER_LIBRARY
|
||||||
NAMES jasper libjasper
|
NAMES jasper
|
||||||
PATHS
|
PATHS
|
||||||
$ENV{JASPER_DIR}/lib
|
$ENV{JASPER_DIR}/lib
|
||||||
$ENV{JASPER_DIR}/src/libjasper/lib
|
|
||||||
$ENV{JASPER_DIR}/src/msvc/Win32_Release
|
|
||||||
$ENV{JASPER_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(JASPER_LIBRARY_DEBUG
|
|
||||||
NAMES jasper libjasper jasperd libjasperd
|
|
||||||
PATHS
|
|
||||||
$ENV{JASPER_DIR}/lib
|
|
||||||
$ENV{JASPER_DIR}/src/libjasper/lib
|
|
||||||
$ENV{JASPER_DIR}/src/msvc/Win32_Debug
|
|
||||||
$ENV{JASPER_DIR}
|
$ENV{JASPER_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
@@ -66,6 +43,7 @@ FIND_LIBRARY(JASPER_LIBRARY_DEBUG
|
|||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -74,3 +52,4 @@ IF(JASPER_LIBRARY AND JASPER_INCLUDE_DIR)
|
|||||||
SET(JASPER_FOUND "YES")
|
SET(JASPER_FOUND "YES")
|
||||||
ENDIF(JASPER_LIBRARY AND JASPER_INCLUDE_DIR)
|
ENDIF(JASPER_LIBRARY AND JASPER_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,105 +0,0 @@
|
|||||||
#---
|
|
||||||
# File: FindLIBLAS.cmake
|
|
||||||
#
|
|
||||||
# Find the native LIBLAS includes and library
|
|
||||||
#
|
|
||||||
# LIBLAS_INCLUDE_DIRS - where to find liblas's includes.
|
|
||||||
# LIBLAS_LIBRARIES - List of libraries when using liblas.
|
|
||||||
# LIBLAS_FOUND - True if liblas found.
|
|
||||||
#---
|
|
||||||
|
|
||||||
|
|
||||||
# Set the include dir:
|
|
||||||
find_path(LIBLAS_INCLUDE_DIR liblas/liblas.hpp)
|
|
||||||
|
|
||||||
# Macro for setting libraries:
|
|
||||||
macro(FIND_LIBLAS_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|
||||||
|
|
||||||
find_library(
|
|
||||||
"${MYLIBRARY}_DEBUG"
|
|
||||||
NAMES "${MYLIBRARYNAME}${CMAKE_DEBUG_POSTFIX}" "lib${MYLIBRARYNAME}${CMAKE_DEBUG_POSTFIX}"
|
|
||||||
PATHS
|
|
||||||
${LIBLAS_DIR}/lib/Debug
|
|
||||||
${LIBLAS_DIR}/lib64/Debug
|
|
||||||
${LIBLAS_DIR}/lib
|
|
||||||
${LIBLAS_DIR}/lib64
|
|
||||||
$ENV{LIBLAS_DIR}/lib/debug
|
|
||||||
$ENV{LIBLAS_DIR}/lib64/debug
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
find_library(
|
|
||||||
"${MYLIBRARY}_DEBUG"
|
|
||||||
NAMES "${MYLIBRARYNAME}${CMAKE_DEBUG_POSTFIX}" "lib${MYLIBRARYNAME}${CMAKE_DEBUG_POSTFIX}"
|
|
||||||
PATHS
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/local/lib64
|
|
||||||
/usr/lib
|
|
||||||
/usr/lib64
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;LIBLAS_ROOT]/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
find_library(
|
|
||||||
${MYLIBRARY}
|
|
||||||
NAMES "${MYLIBRARYNAME}${CMAKE_RELEASE_POSTFIX}" "lib${MYLIBRARYNAME}${CMAKE_RELEASE_POSTFIX}"
|
|
||||||
PATHS
|
|
||||||
${LIBLAS_DIR}/lib/Release
|
|
||||||
${LIBLAS_DIR}/lib64/Release
|
|
||||||
${LIBLAS_DIR}/lib
|
|
||||||
${LIBLAS_DIR}/lib64
|
|
||||||
$ENV{LIBLAS_DIR}/lib/Release
|
|
||||||
$ENV{LIBLAS_DIR}/lib64/Release
|
|
||||||
$ENV{LIBLAS_DIR}/lib
|
|
||||||
$ENV{LIBLAS_DIR}/lib64
|
|
||||||
$ENV{LIBLAS_DIR}
|
|
||||||
$ENV{LIBLASDIR}/lib
|
|
||||||
$ENV{LIBLASDIR}/lib64
|
|
||||||
$ENV{LIBLASDIR}
|
|
||||||
$ENV{LIBLAS_ROOT}/lib
|
|
||||||
$ENV{LIBLAS_ROOT}/lib64
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
find_library(
|
|
||||||
${MYLIBRARY}
|
|
||||||
NAMES "${MYLIBRARYNAME}${CMAKE_RELEASE_POSTFIX}" "lib${MYLIBRARYNAME}${CMAKE_RELEASE_POSTFIX}"
|
|
||||||
PATHS
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/local/lib64
|
|
||||||
/usr/lib
|
|
||||||
/usr/lib64
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;LIBLAS_ROOT]/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
if( NOT ${MYLIBRARY}_DEBUG )
|
|
||||||
if( MYLIBRARY )
|
|
||||||
set( ${MYLIBRARY}_DEBUG ${MYLIBRARY} )
|
|
||||||
endif(MYLIBRARY)
|
|
||||||
endif( NOT ${MYLIBRARY}_DEBUG )
|
|
||||||
|
|
||||||
endmacro(FIND_LIBLAS_LIBRARY LIBRARY LIBRARYNAME)
|
|
||||||
|
|
||||||
FIND_LIBLAS_LIBRARY(LIBLAS_LIBRARY las)
|
|
||||||
|
|
||||||
set(LIBLAS_FOUND "NO")
|
|
||||||
if(LIBLAS_LIBRARY AND LIBLAS_INCLUDE_DIR)
|
|
||||||
FIND_PACKAGE(Boost) # used by LIBLAS
|
|
||||||
if(Boost_FOUND)
|
|
||||||
set(LIBLAS_LIBRARIES ${LIBLAS_LIBRARY} )
|
|
||||||
set(LIBLAS_FOUND "YES")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
# Locate libvncserver
|
|
||||||
# This module defines
|
|
||||||
# LIBVNCSERVER_LIBRARY
|
|
||||||
# LIBVNCSERVER_FOUND, if false, do not try to link to libvncserver
|
|
||||||
# LIBVNCSERVER_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $LIBVNCSERVER_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$LIBVNCSERVER_DIR
|
|
||||||
# used in building libvncserver.
|
|
||||||
|
|
||||||
FIND_PATH(LIBVNCSERVER_INCLUDE_DIR rfb/rfb.h
|
|
||||||
$ENV{LIBVNCSERVER_DIR}/include
|
|
||||||
$ENV{LIBVNCSERVER_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include
|
|
||||||
/usr/freeware/include
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(LIBVNCCLIENT_LIBRARY
|
|
||||||
NAMES vncclient
|
|
||||||
PATHS
|
|
||||||
$ENV{LIBVNCSERVER_DIR}/lib
|
|
||||||
$ENV{LIBVNCSERVER_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(LIBVNCSERVER_LIBRARY
|
|
||||||
NAMES vncserver
|
|
||||||
PATHS
|
|
||||||
$ENV{LIBVNCSERVER_DIR}/lib
|
|
||||||
$ENV{LIBVNCSERVER_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(LIBVNCSERVER_FOUND "NO")
|
|
||||||
IF(LIBVNCSERVER_LIBRARY AND LIBVNCSERVER_INCLUDE_DIR)
|
|
||||||
SET(LIBVNCSERVER_FOUND "YES")
|
|
||||||
ENDIF(LIBVNCSERVER_LIBRARY AND LIBVNCSERVER_INCLUDE_DIR)
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
# Locate Lua library
|
|
||||||
# This module defines
|
|
||||||
# LUA51_FOUND, if false, do not try to link to Lua
|
|
||||||
# LUA_LIBRARIES
|
|
||||||
# LUA_INCLUDE_DIR, where to find lua.h
|
|
||||||
# LUA_VERSION_STRING, the version of Lua found (since CMake 2.8.8)
|
|
||||||
#
|
|
||||||
# Note that the expected include convention is
|
|
||||||
# #include "lua.h"
|
|
||||||
# and not
|
|
||||||
# #include <lua/lua.h>
|
|
||||||
# This is because, the lua location is not standardized and may exist
|
|
||||||
# in locations other than lua/
|
|
||||||
|
|
||||||
#=============================================================================
|
|
||||||
# Copyright 2007-2009 Kitware, Inc.
|
|
||||||
#
|
|
||||||
# Distributed under the OSI-approved BSD License (the "License");
|
|
||||||
# see accompanying file Copyright.txt for details.
|
|
||||||
#
|
|
||||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
||||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
# See the License for more information.
|
|
||||||
#=============================================================================
|
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
|
||||||
# License text for the above reference.)
|
|
||||||
|
|
||||||
find_path(LUA_INCLUDE_DIR lua.h
|
|
||||||
HINTS
|
|
||||||
ENV LUA_DIR
|
|
||||||
PATH_SUFFIXES include/lua52 include/lua5.2 include/lua include
|
|
||||||
PATHS
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/sw # Fink
|
|
||||||
/opt/local # DarwinPorts
|
|
||||||
/opt/csw # Blastwave
|
|
||||||
/opt
|
|
||||||
)
|
|
||||||
|
|
||||||
find_library(LUA_LIBRARY
|
|
||||||
NAMES lua52 lua5.2 lua-5.2 lua
|
|
||||||
HINTS
|
|
||||||
ENV LUA_DIR
|
|
||||||
PATH_SUFFIXES lib
|
|
||||||
PATHS
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/sw
|
|
||||||
/opt/local
|
|
||||||
/opt/csw
|
|
||||||
/opt
|
|
||||||
)
|
|
||||||
|
|
||||||
if(LUA_LIBRARY)
|
|
||||||
# include the math library for Unix
|
|
||||||
if(UNIX AND NOT APPLE)
|
|
||||||
find_library(LUA_MATH_LIBRARY m)
|
|
||||||
set( LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}" CACHE STRING "Lua Libraries")
|
|
||||||
# For Windows and Mac, don't need to explicitly include the math library
|
|
||||||
else()
|
|
||||||
set( LUA_LIBRARIES "${LUA_LIBRARY}" CACHE STRING "Lua Libraries")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(LUA_INCLUDE_DIR AND EXISTS "${LUA_INCLUDE_DIR}/lua.h")
|
|
||||||
file(STRINGS "${LUA_INCLUDE_DIR}/lua.h" lua_version_str REGEX "^#define[ \t]+LUA_RELEASE[ \t]+\"Lua .+\"")
|
|
||||||
|
|
||||||
string(REGEX REPLACE "^#define[ \t]+LUA_RELEASE[ \t]+\"Lua ([^\"]+)\".*" "\\1" LUA_VERSION_STRING "${lua_version_str}")
|
|
||||||
unset(lua_version_str)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if
|
|
||||||
# all listed variables are TRUE
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua52
|
|
||||||
REQUIRED_VARS LUA_LIBRARIES LUA_INCLUDE_DIR
|
|
||||||
VERSION_VAR LUA_VERSION_STRING)
|
|
||||||
|
|
||||||
mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARIES LUA_LIBRARY LUA_MATH_LIBRARY)
|
|
||||||
|
|
||||||
@@ -1,211 +0,0 @@
|
|||||||
# Locate nvidia-texture-tools
|
|
||||||
# This module defines
|
|
||||||
# NVTT_LIBRARY
|
|
||||||
# NVTT_FOUND, if false, do not try to link to nvtt
|
|
||||||
# NVTT_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
FIND_PATH(NVTT_INCLUDE_DIR nvtt/nvtt.h
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES include
|
|
||||||
)
|
|
||||||
|
|
||||||
# NVTT
|
|
||||||
FIND_LIBRARY(NVTT_LIBRARY_RELEASE
|
|
||||||
NAMES nvtt
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(NVTT_LIBRARY_DEBUG
|
|
||||||
NAMES nvtt_d
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
# NVIMAGE
|
|
||||||
FIND_LIBRARY(NVIMAGE_LIBRARY_RELEASE
|
|
||||||
NAMES nvimage
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(NVIMAGE_LIBRARY_DEBUG
|
|
||||||
NAMES nvimage_d
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
# NVMATH
|
|
||||||
FIND_LIBRARY(NVMATH_LIBRARY_RELEASE
|
|
||||||
NAMES nvmath
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(NVMATH_LIBRARY_DEBUG
|
|
||||||
NAMES nvmath_d
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
# NVCORE
|
|
||||||
FIND_LIBRARY(NVCORE_LIBRARY_RELEASE
|
|
||||||
NAMES nvcore
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(NVCORE_LIBRARY_DEBUG
|
|
||||||
NAMES nvcore_d
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
# NVTHREAD
|
|
||||||
FIND_LIBRARY(NVTHREAD_LIBRARY_RELEASE
|
|
||||||
NAMES nvthread
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(NVTHREAD_LIBRARY_DEBUG
|
|
||||||
NAMES nvthread_d
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
# SQUISH
|
|
||||||
FIND_LIBRARY(NVSQUISH_LIBRARY_RELEASE
|
|
||||||
NAMES squish
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(NVSQUISH_LIBRARY_DEBUG
|
|
||||||
NAMES squish_d
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
# BC6H
|
|
||||||
FIND_LIBRARY(NVBC6H_LIBRARY_RELEASE
|
|
||||||
NAMES bc6h
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(NVBC6H_LIBRARY_DEBUG
|
|
||||||
NAMES bc6h_d
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
# BC7
|
|
||||||
FIND_LIBRARY(NVBC7_LIBRARY_RELEASE
|
|
||||||
NAMES bc7
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(NVBC7_LIBRARY_DEBUG
|
|
||||||
NAMES bc7_d
|
|
||||||
PATHS
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
$ENV{NVTT_DIR}
|
|
||||||
${3rdPartyRoot}
|
|
||||||
PATH_SUFFIXES lib64 lib lib/shared lib/static lib64/static
|
|
||||||
)
|
|
||||||
|
|
||||||
IF (WIN32)
|
|
||||||
SET(LIBS_TO_SETUP "NVTT" "NVCORE" "NVMATH" "NVIMAGE" "NVTHREAD" "NVBC7" "NVBC6H" "NVSQUISH")
|
|
||||||
ELSE()
|
|
||||||
SET(LIBS_TO_SETUP "NVTT" "NVCORE" "NVMATH" "NVIMAGE")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
FOREACH(LIB ${LIBS_TO_SETUP})
|
|
||||||
IF(${LIB}_LIBRARY_DEBUG)
|
|
||||||
SET(${LIB}_LIBRARIES optimized ${${LIB}_LIBRARY_RELEASE} debug ${${LIB}_LIBRARY_DEBUG})
|
|
||||||
ELSE(${LIB}_LIBRARY_DEBUG)
|
|
||||||
SET(${LIB}_LIBRARY_DEBUG ${${LIB}_LIBRARY_RELEASE})
|
|
||||||
SET(${LIB}_LIBRARIES optimized ${${LIB}_LIBRARY_RELEASE} debug ${${LIB}_LIBRARY_DEBUG})
|
|
||||||
ENDIF(${LIB}_LIBRARY_DEBUG)
|
|
||||||
ENDFOREACH(LIB ${LIBS_TO_SETUP})
|
|
||||||
|
|
||||||
SET(NVTT_LIBRARIES
|
|
||||||
${NVTT_LIBRARIES}
|
|
||||||
${NVCORE_LIBRARIES}
|
|
||||||
${NVMATH_LIBRARIES}
|
|
||||||
${NVIMAGE_LIBRARIES}
|
|
||||||
${NVTHREAD_LIBRARIES}
|
|
||||||
${NVBC7_LIBRARIES}
|
|
||||||
${NVBC6H_LIBRARIES}
|
|
||||||
${NVSQUISH_LIBRARIES}
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(NVTT_FOUND "NO")
|
|
||||||
IF(NVTT_LIBRARY_RELEASE AND NVTT_INCLUDE_DIR)
|
|
||||||
SET(NVTT_FOUND "YES" )
|
|
||||||
ENDIF(NVTT_LIBRARY_RELEASE AND NVTT_INCLUDE_DIR)
|
|
||||||
@@ -10,48 +10,37 @@
|
|||||||
# Created by Robert Osfield.
|
# Created by Robert Osfield.
|
||||||
|
|
||||||
FIND_PATH(OSG_INCLUDE_DIR osg/Node
|
FIND_PATH(OSG_INCLUDE_DIR osg/Node
|
||||||
${OSG_DIR}/include
|
|
||||||
$ENV{OSG_DIR}/include
|
$ENV{OSG_DIR}/include
|
||||||
$ENV{OSG_DIR}
|
$ENV{OSG_DIR}
|
||||||
$ENV{OSGDIR}/include
|
$ENV{OSGDIR}/include
|
||||||
$ENV{OSGDIR}
|
$ENV{OSGDIR}
|
||||||
$ENV{OSG_ROOT}/include
|
$ENV{OSG_ROOT}/include
|
||||||
NO_DEFAULT_PATH
|
~/Library/Frameworks
|
||||||
|
/Library/Frameworks
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
/sw/include # Fink
|
||||||
|
/opt/local/include # DarwinPorts
|
||||||
|
/opt/csw/include # Blastwave
|
||||||
|
/opt/include
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
|
/usr/freeware/include
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_PATH(OSG_INCLUDE_DIR osg/Node)
|
|
||||||
|
|
||||||
MACRO(FIND_OSG_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
MACRO(FIND_OSG_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
||||||
|
|
||||||
FIND_LIBRARY("${MYLIBRARY}_DEBUG"
|
FIND_LIBRARY(${MYLIBRARY}
|
||||||
NAMES "${MYLIBRARYNAME}${CMAKE_DEBUG_POSTFIX}"
|
NAMES ${MYLIBRARYNAME}
|
||||||
PATHS
|
PATHS
|
||||||
${OSG_DIR}/lib/Debug
|
|
||||||
${OSG_DIR}/lib64/Debug
|
|
||||||
${OSG_DIR}/lib
|
|
||||||
${OSG_DIR}/lib64
|
|
||||||
$ENV{OSG_DIR}/lib/debug
|
|
||||||
$ENV{OSG_DIR}/lib64/debug
|
|
||||||
$ENV{OSG_DIR}/lib
|
$ENV{OSG_DIR}/lib
|
||||||
$ENV{OSG_DIR}/lib64
|
|
||||||
$ENV{OSG_DIR}
|
$ENV{OSG_DIR}
|
||||||
$ENV{OSGDIR}/lib
|
$ENV{OSGDIR}/lib
|
||||||
$ENV{OSGDIR}/lib64
|
|
||||||
$ENV{OSGDIR}
|
$ENV{OSGDIR}
|
||||||
$ENV{OSG_ROOT}/lib
|
$ENV{OSG_ROOT}/lib
|
||||||
$ENV{OSG_ROOT}/lib64
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY("${MYLIBRARY}_DEBUG"
|
|
||||||
NAMES "${MYLIBRARYNAME}${CMAKE_DEBUG_POSTFIX}"
|
|
||||||
PATHS
|
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
/usr/local/lib64
|
|
||||||
/usr/lib
|
/usr/lib
|
||||||
/usr/lib64
|
|
||||||
/sw/lib
|
/sw/lib
|
||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
@@ -60,74 +49,15 @@ MACRO(FIND_OSG_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(${MYLIBRARY}
|
|
||||||
NAMES "${MYLIBRARYNAME}${CMAKE_RELEASE_POSTFIX}"
|
|
||||||
PATHS
|
|
||||||
${OSG_DIR}/lib/Release
|
|
||||||
${OSG_DIR}/lib64/Release
|
|
||||||
${OSG_DIR}/lib
|
|
||||||
${OSG_DIR}/lib64
|
|
||||||
$ENV{OSG_DIR}/lib/Release
|
|
||||||
$ENV{OSG_DIR}/lib64/Release
|
|
||||||
$ENV{OSG_DIR}/lib
|
|
||||||
$ENV{OSG_DIR}/lib64
|
|
||||||
$ENV{OSG_DIR}
|
|
||||||
$ENV{OSGDIR}/lib
|
|
||||||
$ENV{OSGDIR}/lib64
|
|
||||||
$ENV{OSGDIR}
|
|
||||||
$ENV{OSG_ROOT}/lib
|
|
||||||
$ENV{OSG_ROOT}/lib64
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(${MYLIBRARY}
|
|
||||||
NAMES "${MYLIBRARYNAME}${CMAKE_RELEASE_POSTFIX}"
|
|
||||||
PATHS
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/local/lib64
|
|
||||||
/usr/lib
|
|
||||||
/usr/lib64
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
IF( NOT ${MYLIBRARY}_DEBUG)
|
|
||||||
IF(MYLIBRARY)
|
|
||||||
SET(${MYLIBRARY}_DEBUG ${MYLIBRARY})
|
|
||||||
ENDIF(MYLIBRARY)
|
|
||||||
ELSE()
|
|
||||||
IF( NOT MYLIBRARY )
|
|
||||||
SET(${MYLIBRARY} ${${MYLIBRARY}_DEBUG} )
|
|
||||||
ENDIF(NOT MYLIBRARY)
|
|
||||||
|
|
||||||
ENDIF( NOT ${MYLIBRARY}_DEBUG )
|
|
||||||
|
|
||||||
ENDMACRO(FIND_OSG_LIBRARY LIBRARY LIBRARYNAME)
|
ENDMACRO(FIND_OSG_LIBRARY LIBRARY LIBRARYNAME)
|
||||||
|
|
||||||
FIND_OSG_LIBRARY(OSG_LIBRARY osg)
|
FIND_OSG_LIBRARY(OSG_LIBRARY osg)
|
||||||
FIND_OSG_LIBRARY(OSGGA_LIBRARY osgGA)
|
|
||||||
FIND_OSG_LIBRARY(OSGUTIL_LIBRARY osgUtil)
|
FIND_OSG_LIBRARY(OSGUTIL_LIBRARY osgUtil)
|
||||||
FIND_OSG_LIBRARY(OSGDB_LIBRARY osgDB)
|
FIND_OSG_LIBRARY(OSGDB_LIBRARY osgDB)
|
||||||
FIND_OSG_LIBRARY(OSGTEXT_LIBRARY osgText)
|
FIND_OSG_LIBRARY(OSGTEXT_LIBRARY osgText)
|
||||||
FIND_OSG_LIBRARY(OSGWIDGET_LIBRARY osgWidget)
|
|
||||||
FIND_OSG_LIBRARY(OSGTERRAIN_LIBRARY osgTerrain)
|
FIND_OSG_LIBRARY(OSGTERRAIN_LIBRARY osgTerrain)
|
||||||
FIND_OSG_LIBRARY(OSGFX_LIBRARY osgFX)
|
FIND_OSG_LIBRARY(OSGFX_LIBRARY osgFX)
|
||||||
FIND_OSG_LIBRARY(OSGVIEWER_LIBRARY osgViewer)
|
FIND_OSG_LIBRARY(OSGVIEWER_LIBRARY osgViewer)
|
||||||
FIND_OSG_LIBRARY(OSGVOLUME_LIBRARY osgVolume)
|
|
||||||
FIND_OSG_LIBRARY(OSGMANIPULATOR_LIBRARY osgManipulator)
|
|
||||||
FIND_OSG_LIBRARY(OSGANIMATION_LIBRARY osgAnimation)
|
|
||||||
FIND_OSG_LIBRARY(OSGPARTICLE_LIBRARY osgParticle)
|
|
||||||
FIND_OSG_LIBRARY(OSGSHADOW_LIBRARY osgShadow)
|
|
||||||
FIND_OSG_LIBRARY(OSGPRESENTATION_LIBRARY osgPresentation)
|
|
||||||
FIND_OSG_LIBRARY(OSGSIM_LIBRARY osgSim)
|
|
||||||
FIND_OSG_LIBRARY(OPENTHREADS_LIBRARY OpenThreads)
|
|
||||||
|
|
||||||
|
|
||||||
SET(OSG_FOUND "NO")
|
SET(OSG_FOUND "NO")
|
||||||
IF(OSG_LIBRARY AND OSG_INCLUDE_DIR)
|
IF(OSG_LIBRARY AND OSG_INCLUDE_DIR)
|
||||||
|
|||||||
@@ -1,173 +0,0 @@
|
|||||||
# LocateOPENCASCADE
|
|
||||||
# This module defines
|
|
||||||
# OPENCASCADE_LIBRARY
|
|
||||||
# OPENCASCADE_FOUND, if false, do not try to link to OPENCASCADE
|
|
||||||
# OPENCASCADE_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $OPENCASCADE_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$OPENCASCADE_DIR
|
|
||||||
# used in building OPENCASCADE.
|
|
||||||
|
|
||||||
FIND_PATH(OPENCASCADE_INCLUDE_DIR BRepMesh.hxx
|
|
||||||
PATHS
|
|
||||||
${OPENCASCADE_DIR}
|
|
||||||
$ENV{OPENCASCADE_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local
|
|
||||||
/usr
|
|
||||||
/sw # Fink
|
|
||||||
/opt/local # DarwinPorts
|
|
||||||
/opt/csw # Blastwave
|
|
||||||
/opt
|
|
||||||
/usr/freeware
|
|
||||||
PATH_SUFFIXES
|
|
||||||
opencascade
|
|
||||||
inc
|
|
||||||
include
|
|
||||||
inc/cascade
|
|
||||||
include/cascade
|
|
||||||
)
|
|
||||||
|
|
||||||
MACRO(FIND_OPENCASCADE_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|
||||||
|
|
||||||
FIND_LIBRARY("${MYLIBRARY}"
|
|
||||||
NAMES "${MYLIBRARYNAME}"
|
|
||||||
PATHS
|
|
||||||
$ENV{OPENCASCADE_DIR}/lib}
|
|
||||||
$ENV{OPENCASCADE_LIB}
|
|
||||||
${OPENCASCADE_DIR}/lib
|
|
||||||
$ENV{OPENCASCADE_DIR}/lib
|
|
||||||
${OPENCASCADE_DIR}/lib/
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
ENDMACRO()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKBinL TKBinL)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKBin TKBin)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKBinTObj TKBinTObj)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKBinXCAF TKBinXCAF)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKBool TKBool)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKBO TKBO)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKBRep TKBRep)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKCAF TKCAF)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKCDF TKCDF)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKernel TKernel)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKFeat TKFeat)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKFillet TKFillet)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKG2d TKG2d)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKG3d TKG3d)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKGeomAlgo TKGeomAlgo)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKGeomBase TKGeomBase)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKHLR TKHLR)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKIGES TKIGES)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKLCAF TKLCAF)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKMath TKMath)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKMesh TKMesh)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKMeshVS TKMeshVS)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKOffset TKOffset)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKOpenGl TKOpenGl)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKPrim TKPrim)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKService TKService)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKShHealing TKShHealing)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKSTEP209 TKSTEP209)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKSTEPAttr TKSTEPAttr)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKSTEPBase TKSTEPBase)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKSTEP TKSTEP)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKSTL TKSTL)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKTObj TKTObj)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKTopAlgo TKTopAlgo)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKV3d TKV3d)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKVRML TKVRML)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKXDEIGES TKXDEIGES)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKXDESTEP TKXDESTEP)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKXMesh TKXMesh)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKXmlL TKXmlL)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKXml TKXml)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKXmlTObj TKXmlTObj)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKXmlXCAF TKXmlXCAF)
|
|
||||||
FIND_OPENCASCADE_LIBRARY(OPENCASCADE_TKXSBase TKXSBase)
|
|
||||||
|
|
||||||
set (OPENCASCADE_LIBRARY_TYPE_DESCR
|
|
||||||
"Specifies the type of library to be used. 'Shared' libraries
|
|
||||||
are linked dynamically and loaded at runtime. 'Static' libraries
|
|
||||||
are archives of object files for use when linking other targets")
|
|
||||||
|
|
||||||
# set type of OCCT libraries
|
|
||||||
if (NOT OPENCASCADE_LIBRARY_TYPE)
|
|
||||||
set (OPENCASCADE_LIBRARY_TYPE "Static" CACHE STRING "${OPENCASCADE_LIBRARY_TYPE_DESCR}" FORCE)
|
|
||||||
SET_PROPERTY(CACHE OPENCASCADE_LIBRARY_TYPE PROPERTY STRINGS Shared Static)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if ("${OPENCASCADE_LIBRARY_TYPE}" STREQUAL "Shared")
|
|
||||||
|
|
||||||
SET(OPENCASCADE_LIBRARY ${OPENCASCADE_LIBRARY}
|
|
||||||
${OPENCASCADE_TKernel}
|
|
||||||
${OPENCASCADE_TKMath}
|
|
||||||
${OPENCASCADE_TKXCAF}
|
|
||||||
${OPENCASCADE_TKXSBase}
|
|
||||||
${OPENCASCADE_TKSTEPAttr}
|
|
||||||
${OPENCASCADE_TKSTEPBase}
|
|
||||||
${OPENCASCADE_TKSTEP209}
|
|
||||||
${OPENCASCADE_TKSTEP}
|
|
||||||
${OPENCASCADE_TKXDESTEP}
|
|
||||||
${OPENCASCADE_TKIGES}
|
|
||||||
${OPENCASCADE_TKXDEIGES}
|
|
||||||
${OPENCASCADE_TKLCAF}
|
|
||||||
${OPENCASCADE_TKBRep}
|
|
||||||
${OPENCASCADE_TKMesh}
|
|
||||||
${OPENCASCADE_TKTopAlgo}
|
|
||||||
${OPENCASCADE_TKShHealing}
|
|
||||||
)
|
|
||||||
else ("${OPENCASCADE_LIBRARY_TYPE}" STREQUAL "Shared")
|
|
||||||
SET(OPENCASCADE_LIBRARY ${OPENCASCADE_LIBRARY}
|
|
||||||
${OPENCASCADE_TKBO}
|
|
||||||
${OPENCASCADE_TKBool}
|
|
||||||
${OPENCASCADE_TKBRep}
|
|
||||||
${OPENCASCADE_TKCAF}
|
|
||||||
${OPENCASCADE_TKCDF}
|
|
||||||
${OPENCASCADE_TKernel}
|
|
||||||
${OPENCASCADE_TKG2d}
|
|
||||||
${OPENCASCADE_TKG3d}
|
|
||||||
${OPENCASCADE_TKGeomAlgo}
|
|
||||||
${OPENCASCADE_TKGeomBase}
|
|
||||||
${OPENCASCADE_TKHLR}
|
|
||||||
${OPENCASCADE_TKIGES}
|
|
||||||
${OPENCASCADE_TKLCAF}
|
|
||||||
${OPENCASCADE_TKMath}
|
|
||||||
${OPENCASCADE_TKMesh}
|
|
||||||
${OPENCASCADE_TKPrim}
|
|
||||||
${OPENCASCADE_TKService}
|
|
||||||
${OPENCASCADE_TKShHealing}
|
|
||||||
${OPENCASCADE_TKSTEP}
|
|
||||||
${OPENCASCADE_TKSTEP209}
|
|
||||||
${OPENCASCADE_TKSTEPAttr}
|
|
||||||
${OPENCASCADE_TKSTEPBase}
|
|
||||||
${OPENCASCADE_TKTopAlgo}
|
|
||||||
${OPENCASCADE_TKV3d}
|
|
||||||
${OPENCASCADE_TKXCAF}
|
|
||||||
${OPENCASCADE_TKXDEIGES}
|
|
||||||
${OPENCASCADE_TKXDESTEP}
|
|
||||||
${OPENCASCADE_TKXSBase}
|
|
||||||
)
|
|
||||||
endif ("${OPENCASCADE_LIBRARY_TYPE}" STREQUAL "Shared")
|
|
||||||
|
|
||||||
SET(OPENCASCADE_FOUND "NO")
|
|
||||||
IF(OPENCASCADE_LIBRARY AND OPENCASCADE_INCLUDE_DIR)
|
|
||||||
SET(OPENCASCADE_FOUND "YES")
|
|
||||||
ENDIF(OPENCASCADE_LIBRARY AND OPENCASCADE_INCLUDE_DIR)
|
|
||||||
|
|
||||||
IF(OPENCASCADE_INCLUDE_DIR)
|
|
||||||
SET(OPENCASCADE_FOUND "YES")
|
|
||||||
ENDIF(OPENCASCADE_INCLUDE_DIR)
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
# Locate OpenEXR
|
|
||||||
# This module defines
|
|
||||||
# OPENEXR_LIBRARY
|
|
||||||
# OPENEXR_FOUND, if false, do not try to link to OpenEXR
|
|
||||||
# OPENEXR_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $OPENEXR_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$OPENEXR_DIR
|
|
||||||
#
|
|
||||||
# Created by Robert Osfield.
|
|
||||||
|
|
||||||
|
|
||||||
FIND_PATH(OPENEXR_INCLUDE_DIR OpenEXR/ImfIO.h
|
|
||||||
$ENV{OPENEXR_DIR}/include
|
|
||||||
$ENV{OPENEXR_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include
|
|
||||||
/usr/freeware/include
|
|
||||||
)
|
|
||||||
|
|
||||||
# Macro to find exr libraries (deduplicating search paths)
|
|
||||||
# example: OPENEXR_FIND_VAR(OPENEXR_IlmImf_LIBRARY IlmImf)
|
|
||||||
MACRO(OPENEXR_FIND_VAR varname libname)
|
|
||||||
FIND_LIBRARY( ${varname}
|
|
||||||
NAMES ${libname} ${libname}-2_1 ${libname}-2_2
|
|
||||||
PATHS
|
|
||||||
$ENV{OPENEXR_DIR}/lib
|
|
||||||
$ENV{OPENEXR_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
ENDMACRO(OPENEXR_FIND_VAR)
|
|
||||||
|
|
||||||
# Macro to find exr libraries (and debug versions)
|
|
||||||
# example: OPENEXR_FIND(IlmImf)
|
|
||||||
MACRO(OPENEXR_FIND libname)
|
|
||||||
OPENEXR_FIND_VAR(OPENEXR_${libname}_LIBRARY ${libname})
|
|
||||||
OPENEXR_FIND_VAR(OPENEXR_${libname}_LIBRARY_DEBUG ${libname}d)
|
|
||||||
ENDMACRO(OPENEXR_FIND)
|
|
||||||
|
|
||||||
OPENEXR_FIND(IlmImf)
|
|
||||||
|
|
||||||
SET(OPENEXR_FOUND "NO")
|
|
||||||
IF(OPENEXR_INCLUDE_DIR AND OPENEXR_IlmImf_LIBRARY)
|
|
||||||
SET(OPENEXR_LIBRARIES ${OPENEXR_IlmImf_LIBRARY} )
|
|
||||||
SET(OPENEXR_LIBRARIES_VARS OPENEXR_IlmImf_LIBRARY )
|
|
||||||
SET(OPENEXR_FOUND "YES")
|
|
||||||
ENDIF(OPENEXR_INCLUDE_DIR AND OPENEXR_IlmImf_LIBRARY)
|
|
||||||
@@ -17,16 +17,6 @@
|
|||||||
#
|
#
|
||||||
# Created by Eric Wing.
|
# Created by Eric Wing.
|
||||||
|
|
||||||
# prefer FindOpenThreads from cmake distribution
|
|
||||||
if(EXISTS ${CMAKE_ROOT}/Modules/FindOpenThreads.cmake)
|
|
||||||
include(${CMAKE_ROOT}/Modules/FindOpenThreads.cmake)
|
|
||||||
|
|
||||||
if(OPENTHREADS_FOUND)
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
# Header files are presumed to be included like
|
# Header files are presumed to be included like
|
||||||
# #include <OpenThreads/Thread>
|
# #include <OpenThreads/Thread>
|
||||||
|
|
||||||
@@ -53,36 +43,36 @@ endif()
|
|||||||
# may change.
|
# may change.
|
||||||
|
|
||||||
FIND_PATH(OPENTHREADS_INCLUDE_DIR OpenThreads/Thread
|
FIND_PATH(OPENTHREADS_INCLUDE_DIR OpenThreads/Thread
|
||||||
PATHS
|
|
||||||
$ENV{OPENTHREADS_INCLUDE_DIR}
|
$ENV{OPENTHREADS_INCLUDE_DIR}
|
||||||
$ENV{OPENTHREADS_DIR}/include
|
$ENV{OPENTHREADS_DIR}/include
|
||||||
$ENV{OPENTHREADS_DIR}
|
$ENV{OPENTHREADS_DIR}
|
||||||
$ENV{OSG_INCLUDE_DIR}
|
$ENV{OSG_INCLUDE_DIR}
|
||||||
$ENV{OSG_DIR}/include
|
$ENV{OSG_DIR}/include
|
||||||
$ENV{OSG_DIR}
|
$ENV{OSG_DIR}
|
||||||
$ENV{OSGDIR}/include
|
|
||||||
$ENV{OSGDIR}
|
|
||||||
NO_DEFAULT_PATH
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_PATH(OPENTHREADS_INCLUDE_DIR OpenThreads/Thread
|
IF(NOT OPENTHREADS_INCLUDE_DIR)
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
FIND_PATH(OPENTHREADS_INCLUDE_DIR OpenThreads/Thread
|
||||||
NO_DEFAULT_PATH
|
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
||||||
PATH_SUFFIXES include
|
PATH_SUFFIXES include
|
||||||
)
|
)
|
||||||
|
ENDIF(NOT OPENTHREADS_INCLUDE_DIR)
|
||||||
|
|
||||||
FIND_PATH(OPENTHREADS_INCLUDE_DIR OpenThreads/Thread
|
IF(NOT OPENTHREADS_INCLUDE_DIR)
|
||||||
~/Library/Frameworks
|
FIND_PATH(OPENTHREADS_INCLUDE_DIR OpenThreads/Thread
|
||||||
/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/usr/local/include
|
/Library/Frameworks
|
||||||
/usr/include
|
/usr/local/include
|
||||||
/sw/include # Fink
|
/usr/include
|
||||||
/opt/local/include # DarwinPorts
|
/sw/include # Fink
|
||||||
/opt/csw/include # Blastwave
|
/opt/local/include # DarwinPorts
|
||||||
/opt/include
|
/opt/csw/include # Blastwave
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OpenThreads_ROOT]/include
|
/opt/include
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OpenThreads_ROOT]/include
|
||||||
)
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
|
)
|
||||||
|
ENDIF(NOT OPENTHREADS_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
||||||
FIND_LIBRARY(OPENTHREADS_LIBRARY
|
FIND_LIBRARY(OPENTHREADS_LIBRARY
|
||||||
@@ -96,39 +86,39 @@ FIND_LIBRARY(OPENTHREADS_LIBRARY
|
|||||||
$ENV{OSG_DIR}/lib64
|
$ENV{OSG_DIR}/lib64
|
||||||
$ENV{OSG_DIR}/lib
|
$ENV{OSG_DIR}/lib
|
||||||
$ENV{OSG_DIR}
|
$ENV{OSG_DIR}
|
||||||
$ENV{OSGDIR}/lib64
|
|
||||||
$ENV{OSGDIR}/lib
|
|
||||||
$ENV{OSGDIR}
|
|
||||||
NO_DEFAULT_PATH
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(OPENTHREADS_LIBRARY
|
IF(NOT OPENTHREADS_LIBRARY)
|
||||||
NAMES OpenThreads OpenThreadsWin32
|
FIND_LIBRARY(OPENTHREADS_LIBRARY
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
NAMES OpenThreads OpenThreadsWin32
|
||||||
NO_DEFAULT_PATH
|
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
||||||
PATH_SUFFIXES lib64 lib
|
PATH_SUFFIXES lib64 lib
|
||||||
)
|
)
|
||||||
|
ENDIF(NOT OPENTHREADS_LIBRARY)
|
||||||
|
|
||||||
FIND_LIBRARY(OPENTHREADS_LIBRARY
|
IF(NOT OPENTHREADS_LIBRARY)
|
||||||
NAMES OpenThreads OpenThreadsWin32
|
FIND_LIBRARY(OPENTHREADS_LIBRARY
|
||||||
PATHS
|
NAMES OpenThreads OpenThreadsWin32
|
||||||
~/Library/Frameworks
|
PATHS
|
||||||
/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/usr/local/lib64
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib64
|
||||||
/usr/lib64
|
/usr/local/lib
|
||||||
/usr/lib
|
/usr/lib64
|
||||||
/sw/lib64
|
/usr/lib
|
||||||
/sw/lib
|
/sw/lib64
|
||||||
/opt/local/lib64
|
/sw/lib
|
||||||
/opt/local/lib
|
/opt/local/lib64
|
||||||
/opt/csw/lib64
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib64
|
||||||
/opt/lib64
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib64
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OpenThreads_ROOT]/lib
|
/opt/lib
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OpenThreads_ROOT]/lib
|
||||||
)
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
|
)
|
||||||
|
ENDIF(NOT OPENTHREADS_LIBRARY)
|
||||||
|
|
||||||
|
|
||||||
FIND_LIBRARY(OPENTHREADS_LIBRARY_DEBUG
|
FIND_LIBRARY(OPENTHREADS_LIBRARY_DEBUG
|
||||||
@@ -143,37 +133,40 @@ FIND_LIBRARY(OPENTHREADS_LIBRARY_DEBUG
|
|||||||
$ENV{OSG_DIR}/lib64
|
$ENV{OSG_DIR}/lib64
|
||||||
$ENV{OSG_DIR}/lib
|
$ENV{OSG_DIR}/lib
|
||||||
$ENV{OSG_DIR}
|
$ENV{OSG_DIR}
|
||||||
$ENV{OSGDIR}/lib64
|
${CMAKE_PREFIX_PATH}/lib64
|
||||||
$ENV{OSGDIR}/lib
|
${CMAKE_PREFIX_PATH}/lib
|
||||||
$ENV{OSGDIR}
|
${CMAKE_PREFIX_PATH}
|
||||||
NO_DEFAULT_PATH
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(OPENTHREADS_LIBRARY_DEBUG
|
IF(NOT OPENTHREADS_LIBRARY_DEBUG)
|
||||||
NAMES OpenThreadsd OpenThreadsWin32d
|
FIND_LIBRARY(OPENTHREADS_LIBRARY_DEBUG
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
NAMES OpenThreadsd OpenThreadsWin32d
|
||||||
NO_DEFAULT_PATH
|
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
||||||
PATH_SUFFIXES lib64 lib
|
PATH_SUFFIXES lib64 lib
|
||||||
)
|
)
|
||||||
|
ENDIF(NOT OPENTHREADS_LIBRARY_DEBUG)
|
||||||
|
|
||||||
FIND_LIBRARY(OPENTHREADS_LIBRARY_DEBUG
|
IF(NOT OPENTHREADS_LIBRARY_DEBUG)
|
||||||
NAMES OpenThreadsd OpenThreadsWin32d
|
FIND_LIBRARY(OPENTHREADS_LIBRARY_DEBUG
|
||||||
PATHS
|
NAMES OpenThreadsd OpenThreadsWin32d
|
||||||
/usr/local/lib64
|
PATHS
|
||||||
/usr/local/lib
|
/usr/local/lib64
|
||||||
/usr/lib64
|
/usr/local/lib
|
||||||
/usr/lib
|
/usr/lib64
|
||||||
/sw/lib64
|
/usr/lib
|
||||||
/sw/lib
|
/sw/lib64
|
||||||
/opt/local/lib64
|
/sw/lib
|
||||||
/opt/local/lib
|
/opt/local/lib64
|
||||||
/opt/csw/lib64
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib64
|
||||||
/opt/lib64
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib64
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OpenThreads_ROOT]/lib
|
/opt/lib
|
||||||
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OpenThreads_ROOT]/lib
|
||||||
)
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
|
)
|
||||||
|
ENDIF(NOT OPENTHREADS_LIBRARY_DEBUG)
|
||||||
|
|
||||||
|
|
||||||
IF(OPENTHREADS_LIBRARY)
|
IF(OPENTHREADS_LIBRARY)
|
||||||
|
|||||||
@@ -10,9 +10,12 @@
|
|||||||
# Created by Robert Osfield.
|
# Created by Robert Osfield.
|
||||||
# Modified for the debug library by Jean-S<>bastien Guay.
|
# Modified for the debug library by Jean-S<>bastien Guay.
|
||||||
|
|
||||||
FIND_PATH(OPENVRML_INCLUDE_DIR openvrml/openvrml-common.h
|
FIND_PATH(OPENVRML_INCLUDE_DIR openvrml/openvrml/common.h
|
||||||
$ENV{OPENVRML_DIR}/include
|
$ENV{OPENVRML_DIR}/include
|
||||||
$ENV{OPENVRML_DIR}
|
$ENV{OPENVRML_DIR}
|
||||||
|
$ENV{OSGDIR}/include
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/include
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
@@ -21,6 +24,7 @@ FIND_PATH(OPENVRML_INCLUDE_DIR openvrml/openvrml-common.h
|
|||||||
/opt/local/include # DarwinPorts
|
/opt/local/include # DarwinPorts
|
||||||
/opt/csw/include # Blastwave
|
/opt/csw/include # Blastwave
|
||||||
/opt/include
|
/opt/include
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
/usr/freeware/include
|
/usr/freeware/include
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -29,6 +33,9 @@ FIND_LIBRARY(OPENVRML_LIBRARY
|
|||||||
PATHS
|
PATHS
|
||||||
$ENV{OPENVRML_DIR}/lib
|
$ENV{OPENVRML_DIR}/lib
|
||||||
$ENV{OPENVRML_DIR}
|
$ENV{OPENVRML_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
@@ -37,6 +44,7 @@ FIND_LIBRARY(OPENVRML_LIBRARY
|
|||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -45,6 +53,9 @@ FIND_LIBRARY(OPENVRML_LIBRARY_DEBUG
|
|||||||
PATHS
|
PATHS
|
||||||
$ENV{OPENVRML_DIR}/lib
|
$ENV{OPENVRML_DIR}/lib
|
||||||
$ENV{OPENVRML_DIR}
|
$ENV{OPENVRML_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
@@ -53,6 +64,7 @@ FIND_LIBRARY(OPENVRML_LIBRARY_DEBUG
|
|||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ FIND_PATH(PERFORMER_INCLUDE_DIR Performer/pfdu.h
|
|||||||
$ENV{PFROOT}
|
$ENV{PFROOT}
|
||||||
$ENV{PERFORMER_DIR}/include
|
$ENV{PERFORMER_DIR}/include
|
||||||
$ENV{PERFORMER_DIR}
|
$ENV{PERFORMER_DIR}
|
||||||
|
$ENV{OSGDIR}/include
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/include
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
@@ -22,6 +25,7 @@ FIND_PATH(PERFORMER_INCLUDE_DIR Performer/pfdu.h
|
|||||||
/opt/local/include # DarwinPorts
|
/opt/local/include # DarwinPorts
|
||||||
/opt/csw/include # Blastwave
|
/opt/csw/include # Blastwave
|
||||||
/opt/include
|
/opt/include
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
/usr/freeware/include
|
/usr/freeware/include
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -35,6 +39,7 @@ IF(MSVC)
|
|||||||
$ENV{PERFORMER_DIR}
|
$ENV{PERFORMER_DIR}
|
||||||
$ENV{OSGDIR}/lib
|
$ENV{OSGDIR}/lib
|
||||||
$ENV{OSGDIR}
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
@@ -43,6 +48,7 @@ IF(MSVC)
|
|||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
ELSE(MSVC)
|
ELSE(MSVC)
|
||||||
@@ -53,6 +59,9 @@ ELSE(MSVC)
|
|||||||
$ENV{PFROOT}
|
$ENV{PFROOT}
|
||||||
$ENV{PERFORMER_DIR}/lib
|
$ENV{PERFORMER_DIR}/lib
|
||||||
$ENV{PERFORMER_DIR}
|
$ENV{PERFORMER_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
@@ -61,6 +70,7 @@ ELSE(MSVC)
|
|||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
ENDIF(MSVC)
|
ENDIF(MSVC)
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
#use pkg-config to find various modues
|
|
||||||
INCLUDE(FindPkgConfig OPTIONAL)
|
|
||||||
|
|
||||||
IF(PKG_CONFIG_FOUND)
|
|
||||||
|
|
||||||
INCLUDE(FindPkgConfig)
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(CAIRO cairo)
|
|
||||||
PKG_CHECK_MODULES(POPPLER poppler-glib)
|
|
||||||
|
|
||||||
IF (POPPLER_FOUND)
|
|
||||||
|
|
||||||
INCLUDE(CheckCXXSourceRuns)
|
|
||||||
|
|
||||||
SET(CMAKE_REQUIRED_INCLUDES ${POPPLER_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
# Do step by step checking,
|
|
||||||
CHECK_CXX_SOURCE_RUNS("
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <poppler.h>
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
#ifdef POPPLER_HAS_CAIRO
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
#else
|
|
||||||
return EXIT_FAILURE
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
" POPPLER_HAS_CAIRO)
|
|
||||||
|
|
||||||
IF (NOT POPPLER_HAS_CAIRO)
|
|
||||||
SET(POPPLER_FOUND FALSE)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# IF (POPPLER_FOUND AND (NOT POPPLER_LIBRARIES OR NOT POPPLER_INCLUDE_DIRS) )
|
|
||||||
# SET(POPPLER_FOUND FALSE)
|
|
||||||
# ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
# Locate Apple QTKit (next-generation QuickTime)
|
|
||||||
# This module defines
|
|
||||||
# QTKIT_LIBRARY
|
|
||||||
# QTKIT_FOUND, if false, do not try to link to gdal
|
|
||||||
# QTKIT_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $QTKIT_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$QTKIT_DIR
|
|
||||||
#
|
|
||||||
# Created by Eric Wing.
|
|
||||||
|
|
||||||
# QTKit on OS X looks different than QTKit for Windows,
|
|
||||||
# so I am going to case the two.
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
FIND_PATH(QTKIT_INCLUDE_DIR QTKit/QTKit.h)
|
|
||||||
FIND_LIBRARY(QTKIT_LIBRARY QTKit)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
SET(QTKIT_FOUND "NO")
|
|
||||||
IF(QTKIT_LIBRARY AND QTKIT_INCLUDE_DIR)
|
|
||||||
SET(QTKIT_FOUND "YES")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
|
||||||
SET(QTKIT_FOUND "NO")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
# Technically QTKit is 64-bit capable, but the QTKit plug-in currently uses
|
|
||||||
# a few 32-bit only APIs to bridge QTKit and Core Video.
|
|
||||||
# As such, the plugin won't compile for 64-bit until Apple fixes this hole
|
|
||||||
# in their API.
|
|
||||||
# For simplicitly, I pretend QTKit is only 32-bit, but if/when Apple fixes
|
|
||||||
# this, we need an OS version check.
|
|
||||||
# Snow Leopard still lacks a 64-bit path for this.
|
|
||||||
#First check to see if we are running with a native 64-bit compiler (10.6 default) and implicit arch
|
|
||||||
IF(NOT CMAKE_OSX_ARCHITECTURES AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
||||||
SET(QTKIT_FOUND "NO")
|
|
||||||
ELSE()
|
|
||||||
#Otherwise check to see if 64-bit is explicitly called for.
|
|
||||||
LIST(FIND CMAKE_OSX_ARCHITECTURES "x86_64" has64Compile)
|
|
||||||
IF(NOT has64Compile EQUAL -1)
|
|
||||||
SET(QTKIT_FOUND "NO")
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# Locate Apple QuartzCore
|
|
||||||
# This module defines
|
|
||||||
# QUARTZCORE_LIBRARY
|
|
||||||
# QUARTZCORE_FOUND, if false, do not try to link to QUARTZCORE
|
|
||||||
# QUARTZCORE_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $QUARTZCORE_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$QUARTZCORE_DIR
|
|
||||||
#
|
|
||||||
# Created by Stephan Maximilian Huber.
|
|
||||||
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
FIND_PATH(QUARTZCORE_INCLUDE_DIR QuartzCore/QuartzCore.h)
|
|
||||||
FIND_LIBRARY(QUARTZCORE_LIBRARY QuartzCore)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
SET(QUARTZCORE_FOUND "NO")
|
|
||||||
IF(QUARTZCORE_LIBRARY AND QUARTZCORE_INCLUDE_DIR)
|
|
||||||
SET(QUARTZCORE_FOUND "YES")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
@@ -6,69 +6,27 @@
|
|||||||
#
|
#
|
||||||
# $QUICKTIME_DIR is an environment variable that would
|
# $QUICKTIME_DIR is an environment variable that would
|
||||||
# correspond to the ./configure --prefix=$QUICKTIME_DIR
|
# correspond to the ./configure --prefix=$QUICKTIME_DIR
|
||||||
|
# used in building gdal.
|
||||||
#
|
#
|
||||||
# Created by Eric Wing.
|
# Created by Eric Wing.
|
||||||
|
|
||||||
|
|
||||||
# QuickTime on OS X looks different than QuickTime for Windows,
|
# QuickTime on OS X looks different than QuickTime for Windows,
|
||||||
# so I am going to case the two.
|
# so I am going to case the two.
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime/QuickTime.h)
|
FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime/QuickTime.h)
|
||||||
FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
|
FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
|
||||||
ELSE()
|
ELSE(APPLE)
|
||||||
FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h
|
FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h
|
||||||
$ENV{QUICKTIME_DIR}/include
|
$ENV{QUICKTIME_DIR}/include
|
||||||
$ENV{QUICKTIME_DIR}
|
$ENV{QUICKTIME_DIR}
|
||||||
NO_DEFAULT_PATH
|
)
|
||||||
)
|
FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
|
||||||
FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h
|
ENDIF(APPLE)
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
PATH_SUFFIXES include
|
|
||||||
)
|
|
||||||
FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h)
|
|
||||||
|
|
||||||
FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime
|
|
||||||
$ENV{QUICKTIME_DIR}/lib
|
|
||||||
$ENV{QUICKTIME_DIR}
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime
|
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
PATH_SUFFIXES lib64 lib
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
SET(QUICKTIME_FOUND "NO")
|
SET(QUICKTIME_FOUND "NO")
|
||||||
IF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
|
IF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
|
||||||
SET(QUICKTIME_FOUND "YES")
|
SET(QUICKTIME_FOUND "YES")
|
||||||
ENDIF()
|
ENDIF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
|
||||||
|
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
|
||||||
SET(QUICKTIME_FOUND "NO")
|
|
||||||
ELSE()
|
|
||||||
IF(APPLE)
|
|
||||||
#Quicktime is not supported under 64bit OSX build so we need to detect it and disable it.
|
|
||||||
#First check to see if we are running with a native 64-bit compiler (10.6 default) and implicit arch
|
|
||||||
IF(NOT CMAKE_OSX_ARCHITECTURES AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
||||||
MESSAGE("Disabling QuickTime on 64-bit architectures")
|
|
||||||
SET(QUICKTIME_FOUND "NO")
|
|
||||||
ELSEIF(OSG_OSX_VERSION VERSION_GREATER 10.6)
|
|
||||||
# Quicktime officially deprecated starting 10.7
|
|
||||||
MESSAGE("Disabling QuickTime because it's not supported by the selected SDK ${OSG_OSX_VERSION}")
|
|
||||||
SET(QUICKTIME_FOUND "NO")
|
|
||||||
ELSE()
|
|
||||||
#Otherwise check to see if 64-bit is explicitly called for.
|
|
||||||
LIST(FIND CMAKE_OSX_ARCHITECTURES "x86_64" has64Compile)
|
|
||||||
IF(NOT has64Compile EQUAL -1)
|
|
||||||
MESSAGE("Disabling QuickTime on 64-bit architectures")
|
|
||||||
SET(QUICKTIME_FOUND "NO")
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
#use pkg-config to find various modues
|
|
||||||
INCLUDE(FindPkgConfig OPTIONAL)
|
|
||||||
|
|
||||||
IF(PKG_CONFIG_FOUND)
|
|
||||||
|
|
||||||
INCLUDE(FindPkgConfig)
|
|
||||||
|
|
||||||
#Version 2.35 introduces the rsvg_cleanup function which is used
|
|
||||||
PKG_CHECK_MODULES(RSVG librsvg-2.0>=2.35)
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(CAIRO cairo)
|
|
||||||
|
|
||||||
IF (RSVG_FOUND AND NOT CAIRO_FOUND)
|
|
||||||
SET(RSVG_FOUND FALSE)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,178 +0,0 @@
|
|||||||
# - Locate SDL library
|
|
||||||
# This module defines
|
|
||||||
# SDL2_LIBRARY, the name of the library to link against
|
|
||||||
# SDL2_FOUND, if false, do not try to link to SDL
|
|
||||||
# SDL2_INCLUDE_DIR, where to find SDL.h
|
|
||||||
# SDL2_VERSION_STRING, human-readable string containing the version of SDL
|
|
||||||
#
|
|
||||||
# This module responds to the flag:
|
|
||||||
# SDL2_BUILDING_LIBRARY
|
|
||||||
# If this is defined, then no SDL2_main will be linked in because
|
|
||||||
# only applications need main().
|
|
||||||
# Otherwise, it is assumed you are building an application and this
|
|
||||||
# module will attempt to locate and set the proper link flags
|
|
||||||
# as part of the returned SDL2_LIBRARY variable.
|
|
||||||
#
|
|
||||||
# Don't forget to include SDLmain.h and SDLmain.m your project for the
|
|
||||||
# OS X framework based version. (Other versions link to -lSDLmain which
|
|
||||||
# this module will try to find on your behalf.) Also for OS X, this
|
|
||||||
# module will automatically add the -framework Cocoa on your behalf.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Additional Note: If you see an empty SDL2_LIBRARY_TEMP in your configuration
|
|
||||||
# and no SDL2_LIBRARY, it means CMake did not find your SDL library
|
|
||||||
# (SDL.dll, libsdl.so, SDL.framework, etc).
|
|
||||||
# Set SDL2_LIBRARY_TEMP to point to your SDL library, and configure again.
|
|
||||||
# Similarly, if you see an empty SDL2MAIN_LIBRARY, you should set this value
|
|
||||||
# as appropriate. These values are used to generate the final SDL2_LIBRARY
|
|
||||||
# variable, but when these values are unset, SDL2_LIBRARY does not get created.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# $SDLDIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$SDLDIR
|
|
||||||
# used in building SDL.
|
|
||||||
# l.e.galup 9-20-02
|
|
||||||
#
|
|
||||||
# Modified by Eric Wing.
|
|
||||||
# Added code to assist with automated building by using environmental variables
|
|
||||||
# and providing a more controlled/consistent search behavior.
|
|
||||||
# Added new modifications to recognize OS X frameworks and
|
|
||||||
# additional Unix paths (FreeBSD, etc).
|
|
||||||
# Also corrected the header search path to follow "proper" SDL guidelines.
|
|
||||||
# Added a search for SDLmain which is needed by some platforms.
|
|
||||||
# Added a search for threads which is needed by some platforms.
|
|
||||||
# Added needed compile switches for MinGW.
|
|
||||||
#
|
|
||||||
# On OSX, this will prefer the Framework version (if found) over others.
|
|
||||||
# People will have to manually change the cache values of
|
|
||||||
# SDL2_LIBRARY to override this selection or set the CMake environment
|
|
||||||
# CMAKE_INCLUDE_PATH to modify the search paths.
|
|
||||||
#
|
|
||||||
# Note that the header path has changed from SDL/SDL.h to just SDL.h
|
|
||||||
# This needed to change because "proper" SDL convention
|
|
||||||
# is #include "SDL.h", not <SDL/SDL.h>. This is done for portability
|
|
||||||
# reasons because not all systems place things in SDL/ (see FreeBSD).
|
|
||||||
|
|
||||||
#=============================================================================
|
|
||||||
# Copyright 2003-2009 Kitware, Inc.
|
|
||||||
# Copyright 2012 Benjamin Eikel
|
|
||||||
#
|
|
||||||
# Distributed under the OSI-approved BSD License (the "License");
|
|
||||||
# see accompanying file Copyright.txt for details.
|
|
||||||
#
|
|
||||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
||||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
# See the License for more information.
|
|
||||||
#=============================================================================
|
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
|
||||||
# License text for the above reference.)
|
|
||||||
|
|
||||||
find_path(SDL2_INCLUDE_DIR SDL.h
|
|
||||||
HINTS
|
|
||||||
ENV SDL2DIR
|
|
||||||
PATH_SUFFIXES include/SDL2
|
|
||||||
)
|
|
||||||
|
|
||||||
# SDL-1.1 is the name used by FreeBSD ports...
|
|
||||||
# don't confuse it for the version number.
|
|
||||||
find_library(SDL2_LIBRARY_TEMP
|
|
||||||
NAMES SDL2
|
|
||||||
HINTS
|
|
||||||
ENV SDL2DIR
|
|
||||||
PATH_SUFFIXES lib
|
|
||||||
)
|
|
||||||
|
|
||||||
if(NOT SDL2_BUILDING_LIBRARY)
|
|
||||||
if(NOT ${SDL2_INCLUDE_DIR} MATCHES ".framework")
|
|
||||||
# Non-OS X framework versions expect you to also dynamically link to
|
|
||||||
# SDLmain. This is mainly for Windows and OS X. Other (Unix) platforms
|
|
||||||
# seem to provide SDLmain for compatibility even though they don't
|
|
||||||
# necessarily need it.
|
|
||||||
find_library(SDL2MAIN_LIBRARY
|
|
||||||
NAMES SDL2main
|
|
||||||
HINTS
|
|
||||||
ENV SDL2DIR
|
|
||||||
PATH_SUFFIXES lib
|
|
||||||
PATHS
|
|
||||||
/sw
|
|
||||||
/opt/local
|
|
||||||
/opt/csw
|
|
||||||
/opt
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# SDL may require threads on your system.
|
|
||||||
# The Apple build may not need an explicit flag because one of the
|
|
||||||
# frameworks may already provide it.
|
|
||||||
# But for non-OSX systems, I will use the CMake Threads package.
|
|
||||||
if(NOT APPLE)
|
|
||||||
find_package(Threads)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# MinGW needs an additional library, mwindows
|
|
||||||
# It's total link flags should look like -lmingw32 -lSDLmain -lSDL -lmwindows
|
|
||||||
# (Actually on second look, I think it only needs one of the m* libraries.)
|
|
||||||
if(MINGW)
|
|
||||||
set(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(SDL2_LIBRARY_TEMP)
|
|
||||||
# For SDLmain
|
|
||||||
if(SDL2MAIN_LIBRARY AND NOT SDL2_BUILDING_LIBRARY)
|
|
||||||
list(FIND SDL2_LIBRARY_TEMP "${SDL2MAIN_LIBRARY}" _SDL2_MAIN_INDEX)
|
|
||||||
if(_SDL2_MAIN_INDEX EQUAL -1)
|
|
||||||
set(SDL2_LIBRARY_TEMP "${SDL2MAIN_LIBRARY}" ${SDL2_LIBRARY_TEMP})
|
|
||||||
endif()
|
|
||||||
unset(_SDL2_MAIN_INDEX)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# For OS X, SDL uses Cocoa as a backend so it must link to Cocoa.
|
|
||||||
# CMake doesn't display the -framework Cocoa string in the UI even
|
|
||||||
# though it actually is there if I modify a pre-used variable.
|
|
||||||
# I think it has something to do with the CACHE STRING.
|
|
||||||
# So I use a temporary variable until the end so I can set the
|
|
||||||
# "real" variable in one-shot.
|
|
||||||
if(APPLE)
|
|
||||||
set(SDL2_LIBRARY_TEMP ${SDL2_LIBRARY_TEMP} "-framework Cocoa")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# For threads, as mentioned Apple doesn't need this.
|
|
||||||
# In fact, there seems to be a problem if I used the Threads package
|
|
||||||
# and try using this line, so I'm just skipping it entirely for OS X.
|
|
||||||
if(NOT APPLE)
|
|
||||||
set(SDL2_LIBRARY_TEMP ${SDL2_LIBRARY_TEMP} ${CMAKE_THREAD_LIBS_INIT})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# For MinGW library
|
|
||||||
if(MINGW)
|
|
||||||
set(SDL2_LIBRARY_TEMP ${MINGW32_LIBRARY} ${SDL2_LIBRARY_TEMP})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Set the final string here so the GUI reflects the final state.
|
|
||||||
set(SDL2_LIBRARY ${SDL2_LIBRARY_TEMP} CACHE STRING "Where the SDL Library can be found")
|
|
||||||
# Set the temp variable to INTERNAL so it is not seen in the CMake GUI
|
|
||||||
set(SDL2_LIBRARY_TEMP "${SDL2_LIBRARY_TEMP}" CACHE INTERNAL "")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(SDL2_INCLUDE_DIR AND EXISTS "${SDL2_INCLUDE_DIR}/SDL2_version.h")
|
|
||||||
file(STRINGS "${SDL2_INCLUDE_DIR}/SDL2_version.h" SDL2_VERSION_MAJOR_LINE REGEX "^#define[ \t]+SDL2_MAJOR_VERSION[ \t]+[0-9]+$")
|
|
||||||
file(STRINGS "${SDL2_INCLUDE_DIR}/SDL2_version.h" SDL2_VERSION_MINOR_LINE REGEX "^#define[ \t]+SDL2_MINOR_VERSION[ \t]+[0-9]+$")
|
|
||||||
file(STRINGS "${SDL2_INCLUDE_DIR}/SDL2_version.h" SDL2_VERSION_PATCH_LINE REGEX "^#define[ \t]+SDL2_PATCHLEVEL[ \t]+[0-9]+$")
|
|
||||||
string(REGEX REPLACE "^#define[ \t]+SDL2_MAJOR_VERSION[ \t]+([0-9]+)$" "\\1" SDL2_VERSION_MAJOR "${SDL2_VERSION_MAJOR_LINE}")
|
|
||||||
string(REGEX REPLACE "^#define[ \t]+SDL2_MINOR_VERSION[ \t]+([0-9]+)$" "\\1" SDL2_VERSION_MINOR "${SDL2_VERSION_MINOR_LINE}")
|
|
||||||
string(REGEX REPLACE "^#define[ \t]+SDL2_PATCHLEVEL[ \t]+([0-9]+)$" "\\1" SDL2_VERSION_PATCH "${SDL2_VERSION_PATCH_LINE}")
|
|
||||||
set(SDL2_VERSION_STRING ${SDL2_VERSION_MAJOR}.${SDL2_VERSION_MINOR}.${SDL2_VERSION_PATCH})
|
|
||||||
unset(SDL2_VERSION_MAJOR_LINE)
|
|
||||||
unset(SDL2_VERSION_MINOR_LINE)
|
|
||||||
unset(SDL2_VERSION_PATCH_LINE)
|
|
||||||
unset(SDL2_VERSION_MAJOR)
|
|
||||||
unset(SDL2_VERSION_MINOR)
|
|
||||||
unset(SDL2_VERSION_PATCH)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2
|
|
||||||
REQUIRED_VARS SDL2_LIBRARY SDL2_INCLUDE_DIR
|
|
||||||
VERSION_VAR SDL2_VERSION_STRING)
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
# Locate V8
|
|
||||||
# This module defines
|
|
||||||
# V8_LIBRARY
|
|
||||||
# V8_FOUND, if false, do not try to link to gdal
|
|
||||||
# V8_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $V8_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$V8_DIR
|
|
||||||
#
|
|
||||||
# Created by Robert Osfield (based on FindFLTK.cmake)
|
|
||||||
|
|
||||||
FIND_PATH(V8_INCLUDE_DIR v8.h
|
|
||||||
$ENV{V8_DIR}/include
|
|
||||||
$ENV{V8_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include
|
|
||||||
/usr/freeware/include
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(V8_LIBRARY
|
|
||||||
NAMES v8 libv8
|
|
||||||
PATHS
|
|
||||||
$ENV{V8_DIR}/lib
|
|
||||||
$ENV{V8_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(V8_FOUND "NO")
|
|
||||||
IF(V8_LIBRARY AND V8_INCLUDE_DIR)
|
|
||||||
SET(V8_FOUND "YES")
|
|
||||||
ENDIF()
|
|
||||||
@@ -12,6 +12,9 @@
|
|||||||
FIND_PATH(XINE_INCLUDE_DIR xine.h
|
FIND_PATH(XINE_INCLUDE_DIR xine.h
|
||||||
$ENV{XINE_DIR}/include
|
$ENV{XINE_DIR}/include
|
||||||
$ENV{XINE_DIR}
|
$ENV{XINE_DIR}
|
||||||
|
$ENV{OSGDIR}/include
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/include
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
@@ -20,6 +23,7 @@ FIND_PATH(XINE_INCLUDE_DIR xine.h
|
|||||||
/opt/local/include # DarwinPorts
|
/opt/local/include # DarwinPorts
|
||||||
/opt/csw/include # Blastwave
|
/opt/csw/include # Blastwave
|
||||||
/opt/include
|
/opt/include
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
/usr/freeware/include
|
/usr/freeware/include
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -28,6 +32,9 @@ FIND_LIBRARY(XINE_LIBRARY
|
|||||||
PATHS
|
PATHS
|
||||||
$ENV{XINE_DIR}/lib
|
$ENV{XINE_DIR}/lib
|
||||||
$ENV{XINE_DIR}
|
$ENV{XINE_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
~/Library/Frameworks
|
~/Library/Frameworks
|
||||||
/Library/Frameworks
|
/Library/Frameworks
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
@@ -36,6 +43,7 @@ FIND_LIBRARY(XINE_LIBRARY
|
|||||||
/opt/local/lib
|
/opt/local/lib
|
||||||
/opt/csw/lib
|
/opt/csw/lib
|
||||||
/opt/lib
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
/usr/freeware/lib64
|
/usr/freeware/lib64
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
56
CMakeModules/FindZLIB.cmake
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
# Locate gdal
|
||||||
|
# This module defines
|
||||||
|
# ZLIB_LIBRARY
|
||||||
|
# ZLIB_FOUND, if false, do not try to link to gdal
|
||||||
|
# ZLIB_INCLUDE_DIR, where to find the headers
|
||||||
|
#
|
||||||
|
# $ZLIB_DIR is an environment variable that would
|
||||||
|
# correspond to the ./configure --prefix=$ZLIB_DIR
|
||||||
|
# used in building gdal.
|
||||||
|
#
|
||||||
|
# Created by Ulrich Hertlein.
|
||||||
|
|
||||||
|
FIND_PATH(ZLIB_INCLUDE_DIR zlib.h
|
||||||
|
$ENV{ZLIB_DIR}/include
|
||||||
|
$ENV{ZLIB_DIR}
|
||||||
|
$ENV{OSGDIR}/include
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/include
|
||||||
|
~/Library/Frameworks
|
||||||
|
/Library/Frameworks
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
/sw/include # Fink
|
||||||
|
/opt/local/include # DarwinPorts
|
||||||
|
/opt/csw/include # Blastwave
|
||||||
|
/opt/include
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
||||||
|
/usr/freeware/include
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_LIBRARY(ZLIB_LIBRARY
|
||||||
|
NAMES z libz
|
||||||
|
PATHS
|
||||||
|
$ENV{ZLIB_DIR}/lib
|
||||||
|
$ENV{ZLIB_DIR}
|
||||||
|
$ENV{OSGDIR}/lib
|
||||||
|
$ENV{OSGDIR}
|
||||||
|
$ENV{OSG_ROOT}/lib
|
||||||
|
~/Library/Frameworks
|
||||||
|
/Library/Frameworks
|
||||||
|
/usr/local/lib
|
||||||
|
/usr/lib
|
||||||
|
/sw/lib
|
||||||
|
/opt/local/lib
|
||||||
|
/opt/csw/lib
|
||||||
|
/opt/lib
|
||||||
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
||||||
|
/usr/freeware/lib64
|
||||||
|
)
|
||||||
|
|
||||||
|
SET(ZLIB_FOUND "NO")
|
||||||
|
IF(ZLIB_LIBRARY AND ZLIB_INCLUDE_DIR)
|
||||||
|
SET(ZLIB_FOUND "YES")
|
||||||
|
ENDIF(ZLIB_LIBRARY AND ZLIB_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
# Locate ZeroConf / Bonjour
|
|
||||||
# This module defines
|
|
||||||
# ZEROCONF_LIBRARY
|
|
||||||
# ZEROCONF_FOUND, if false, do not try to link to gdal
|
|
||||||
# ZEROCONF_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $ZEROCONF_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$ZEROCONF_DIR
|
|
||||||
|
|
||||||
# Created by Stephan Maximilian Huber
|
|
||||||
|
|
||||||
SET(ZEROCONF_FOUND "NO")
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
# bonjour is part of the system on os x / ios
|
|
||||||
SET(ZEROCONF_FOUND "YES")
|
|
||||||
ELSE()
|
|
||||||
IF(WIN32)
|
|
||||||
# find the Bonjour SDK
|
|
||||||
FIND_PATH(ZEROCONF_INCLUDE_DIR dnssd.h
|
|
||||||
$ENV{ZEROCONF_DIR}/include
|
|
||||||
$ENV{ZEROCONF_DIR}
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
)
|
|
||||||
FIND_PATH(ZEROCONF_INCLUDE_DIR dnssd.h
|
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
PATH_SUFFIXES include
|
|
||||||
)
|
|
||||||
FIND_PATH(ZEROCONF_INCLUDE_DIR dnssd.h)
|
|
||||||
|
|
||||||
FIND_LIBRARY(ZEROCONF_LIBRARY dnssd
|
|
||||||
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
|
|
||||||
NO_DEFAULT_PATH
|
|
||||||
PATH_SUFFIXES lib64 lib
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(ZEROCONF_LIBRARY dnssd)
|
|
||||||
|
|
||||||
SET(ZEROCONF_FOUND "NO")
|
|
||||||
IF(ZEROCONF_LIBRARY AND ZEROCONF_INCLUDE_DIR)
|
|
||||||
SET(ZEROCONF_FOUND "YES")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ELSE()
|
|
||||||
# TODO find AVAHI on linux
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
# Locate ILMBASE
|
|
||||||
# This module defines
|
|
||||||
# ILMBASE_LIBRARY
|
|
||||||
# ILMBASE_FOUND, if false, do not try to link to ILMBASE
|
|
||||||
# ILMBASE_INCLUDE_DIR, where to find the headers
|
|
||||||
#
|
|
||||||
# $ILMBASE_DIR is an environment variable that would
|
|
||||||
# correspond to the ./configure --prefix=$ILMBASE_DIR
|
|
||||||
#
|
|
||||||
# Created by Robert Osfield.
|
|
||||||
|
|
||||||
|
|
||||||
FIND_PATH(ILMBASE_INCLUDE_DIR OpenEXR/ImathVec.h
|
|
||||||
$ENV{ILMBASE_DIR}/include
|
|
||||||
$ENV{ILMBASE_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include # Fink
|
|
||||||
/opt/local/include # DarwinPorts
|
|
||||||
/opt/csw/include # Blastwave
|
|
||||||
/opt/include
|
|
||||||
/usr/freeware/include
|
|
||||||
)
|
|
||||||
|
|
||||||
# Macro to find ilmbase libraries
|
|
||||||
# example: ILMBASE_FIND_VAR(OPENEXR_IlmThread_LIBRARY IlmThread)
|
|
||||||
MACRO(ILMBASE_FIND_VAR varname libname)
|
|
||||||
FIND_LIBRARY( ${varname}
|
|
||||||
NAMES ${libname} ${libname}-2_1 ${libname}-2_2
|
|
||||||
PATHS
|
|
||||||
$ENV{ILMBASE_DIR}/lib
|
|
||||||
$ENV{ILMBASE_DIR}
|
|
||||||
~/Library/Frameworks
|
|
||||||
/Library/Frameworks
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
ENDMACRO(ILMBASE_FIND_VAR)
|
|
||||||
|
|
||||||
# Macro to find exr libraries (and debug versions)
|
|
||||||
# example: ILMBASE_FIND(OPENEXR_IlmThread_LIBRARY IlmThread)
|
|
||||||
MACRO(ILMBASE_FIND libname)
|
|
||||||
ILMBASE_FIND_VAR(ILMBASE_${libname}_LIBRARY ${libname})
|
|
||||||
ILMBASE_FIND_VAR(ILMBASE_${libname}_LIBRARY_DEBUG ${libname}d)
|
|
||||||
ENDMACRO(ILMBASE_FIND)
|
|
||||||
|
|
||||||
ILMBASE_FIND(IlmThread)
|
|
||||||
ILMBASE_FIND(Iex)
|
|
||||||
ILMBASE_FIND(Half)
|
|
||||||
|
|
||||||
SET(ILMBASE_FOUND "NO")
|
|
||||||
IF(ILMBASE_INCLUDE_DIR AND ILMBASE_IlmThread_LIBRARY AND ILMBASE_Iex_LIBRARY AND ILMBASE_Half_LIBRARY)
|
|
||||||
SET(ILMBASE_LIBRARIES ${ILMBASE_IlmThread_LIBRARY} ${ILMBASE_Half_LIBRARY} ${ILMBASE_Iex_LIBRARY} )
|
|
||||||
SET(ILMBASE_LIBRARIES_VARS ILMBASE_IlmThread_LIBRARY ILMBASE_Half_LIBRARY ILMBASE_Iex_LIBRARY )
|
|
||||||
SET(ILMBASE_FOUND "YES")
|
|
||||||
ENDIF(ILMBASE_INCLUDE_DIR AND ILMBASE_IlmThread_LIBRARY AND ILMBASE_Iex_LIBRARY AND ILMBASE_Half_LIBRARY)
|
|
||||||
@@ -2,58 +2,37 @@
|
|||||||
|
|
||||||
# Required Vars:
|
# Required Vars:
|
||||||
# ${LIB_NAME}
|
# ${LIB_NAME}
|
||||||
# ${TARGET_H}
|
# ${LIB_PUBLIC_HEADERS}
|
||||||
|
|
||||||
SET(INSTALL_INCDIR include)
|
SET(INSTALL_INCDIR include)
|
||||||
SET(INSTALL_BINDIR bin)
|
SET(INSTALL_BINDIR bin)
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
SET(INSTALL_LIBDIR bin)
|
SET(INSTALL_LIBDIR bin)
|
||||||
SET(INSTALL_ARCHIVEDIR lib)
|
SET(INSTALL_ARCHIVEDIR lib)
|
||||||
ELSE()
|
ELSE(WIN32)
|
||||||
SET(INSTALL_LIBDIR lib${LIB_POSTFIX})
|
SET(INSTALL_LIBDIR lib${LIB_POSTFIX})
|
||||||
SET(INSTALL_ARCHIVEDIR lib${LIB_POSTFIX})
|
SET(INSTALL_ARCHIVEDIR lib${LIB_POSTFIX})
|
||||||
ENDIF()
|
ENDIF(WIN32)
|
||||||
|
|
||||||
SET(HEADERS_GROUP "Header Files")
|
SET(HEADERS_GROUP "Header Files")
|
||||||
|
|
||||||
SOURCE_GROUP(
|
SOURCE_GROUP(
|
||||||
${HEADERS_GROUP}
|
${HEADERS_GROUP}
|
||||||
FILES ${TARGET_H}
|
FILES ${LIB_PUBLIC_HEADERS}
|
||||||
)
|
)
|
||||||
|
|
||||||
IF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
IF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||||
HANDLE_MSVC_DLL()
|
HANDLE_MSVC_DLL()
|
||||||
ENDIF()
|
ENDIF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||||
|
|
||||||
INSTALL(
|
INSTALL(
|
||||||
TARGETS ${LIB_NAME}
|
TARGETS ${LIB_NAME}
|
||||||
RUNTIME DESTINATION ${INSTALL_BINDIR} COMPONENT libopenscenegraph
|
RUNTIME DESTINATION ${INSTALL_BINDIR}
|
||||||
LIBRARY DESTINATION ${INSTALL_LIBDIR} COMPONENT libopenscenegraph
|
LIBRARY DESTINATION ${INSTALL_LIBDIR}
|
||||||
ARCHIVE DESTINATION ${INSTALL_ARCHIVEDIR} COMPONENT libopenscenegraph-dev
|
ARCHIVE DESTINATION ${INSTALL_ARCHIVEDIR}
|
||||||
|
)
|
||||||
|
# FIXME: Do not run for OS X framework
|
||||||
|
INSTALL(
|
||||||
|
FILES ${LIB_PUBLIC_HEADERS}
|
||||||
|
DESTINATION ${INSTALL_INCDIR}/${LIB_NAME}
|
||||||
)
|
)
|
||||||
|
|
||||||
IF(MSVC AND DYNAMIC_OPENSCENEGRAPH)
|
|
||||||
GET_TARGET_PROPERTY(PREFIX ${LIB_NAME} PREFIX)
|
|
||||||
INSTALL(FILES ${OUTPUT_BINDIR}/${PREFIX}${LIB_NAME}${CMAKE_RELWITHDEBINFO_POSTFIX}.pdb DESTINATION ${INSTALL_BINDIR} COMPONENT libopenscenegraph CONFIGURATIONS RelWithDebInfo)
|
|
||||||
INSTALL(FILES ${OUTPUT_BINDIR}/${PREFIX}${LIB_NAME}${CMAKE_DEBUG_POSTFIX}.pdb DESTINATION ${INSTALL_BINDIR} COMPONENT libopenscenegraph CONFIGURATIONS Debug)
|
|
||||||
ENDIF(MSVC AND DYNAMIC_OPENSCENEGRAPH)
|
|
||||||
|
|
||||||
IF(NOT OSG_COMPILE_FRAMEWORKS)
|
|
||||||
INSTALL (
|
|
||||||
FILES ${TARGET_H}
|
|
||||||
DESTINATION ${INSTALL_INCDIR}/${LIB_NAME}
|
|
||||||
COMPONENT libopenscenegraph-dev
|
|
||||||
)
|
|
||||||
ELSE()
|
|
||||||
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
|
||||||
SET(CMAKE_INSTALL_RPATH "${OSG_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR}")
|
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES
|
|
||||||
FRAMEWORK TRUE
|
|
||||||
FRAMEWORK_VERSION ${OPENSCENEGRAPH_SOVERSION}
|
|
||||||
PUBLIC_HEADER "${TARGET_H}"
|
|
||||||
INSTALL_NAME_DIR "${OSG_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR}"
|
|
||||||
)
|
|
||||||
# MESSAGE("${OSG_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR}")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,188 +0,0 @@
|
|||||||
MACRO(SETUP_ANDROID_LIBRARY LIB_NAME)
|
|
||||||
|
|
||||||
#foreach(arg ${TARGET_LIBRARIES})
|
|
||||||
# set(MODULE_LIBS "${MODULE_LIBS} -l${arg}")
|
|
||||||
#endforeach(arg ${TARGET_LIBRARIES})
|
|
||||||
|
|
||||||
foreach(arg ${TARGET_SRC})
|
|
||||||
string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/" "" n_f ${arg})
|
|
||||||
IF ("${arg}" MATCHES ".*\\.c$" OR "${arg}" MATCHES ".*\\.cpp$")
|
|
||||||
#We only include source files, not header files, this removes anoying warnings
|
|
||||||
set(MODULE_SOURCES "${MODULE_SOURCES} ${n_f}")
|
|
||||||
ENDIF()
|
|
||||||
endforeach(arg ${TARGET_SRC})
|
|
||||||
|
|
||||||
#SET(MODULE_INCLUDES "${CMAKE_SOURCE_DIR}/include include")
|
|
||||||
GET_DIRECTORY_PROPERTY(loc_includes INCLUDE_DIRECTORIES)
|
|
||||||
foreach(arg ${loc_includes})
|
|
||||||
IF(NOT "${arg}" MATCHES "/usr/include" AND NOT "${arg}" MATCHES "/usr/local/include")
|
|
||||||
set(MODULE_INCLUDES "${MODULE_INCLUDES} ${arg}")
|
|
||||||
ENDIF()
|
|
||||||
endforeach(arg ${loc_includes})
|
|
||||||
|
|
||||||
GET_DIRECTORY_PROPERTY(loc_definitions COMPILE_DEFINITIONS)
|
|
||||||
foreach(arg ${loc_definitions})
|
|
||||||
set(DEFINITIONS "${DEFINITIONS} -D${arg}")
|
|
||||||
endforeach(arg ${loc_definitions})
|
|
||||||
|
|
||||||
message(STATUS "##############Creating Android Makefile#################")
|
|
||||||
message(STATUS "name: ${LIB_NAME}")
|
|
||||||
|
|
||||||
set(MODULE_NAME ${LIB_NAME})
|
|
||||||
set(MODULE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
set(MODULE_FLAGS_C ${DEFINITIONS})
|
|
||||||
set(MODULE_FLAGS_CPP ${DEFINITIONS})
|
|
||||||
#TODO: determine if GLES2 or GLES
|
|
||||||
IF(OSG_GLES1_AVAILABLE)
|
|
||||||
SET(OPENGLES_LIBRARY -lGLESv1_CM)
|
|
||||||
ELSEIF(OSG_GLES2_AVAILABLE)
|
|
||||||
SET(OPENGLES_LIBRARY -lGLESv2)
|
|
||||||
ENDIF()
|
|
||||||
#${MODULE_LIBS}
|
|
||||||
set(MODULE_LIBS_FLAGS "${OPENGLES_LIBRARY} -ldl")
|
|
||||||
if(NOT CPP_EXTENSION)
|
|
||||||
set(CPP_EXTENSION "cpp")
|
|
||||||
endif()
|
|
||||||
IF(NOT MODULE_USER_STATIC_OR_DYNAMIC)
|
|
||||||
MESSAGE(FATAL_ERROR "Not defined MODULE_USER_STATIC_OR_DYNAMIC")
|
|
||||||
ENDIF()
|
|
||||||
IF("MODULE_USER_STATIC_OR_DYNAMIC" MATCHES "STATIC")
|
|
||||||
SET(MODULE_BUILD_TYPE "\$\(BUILD_STATIC_LIBRARY\)")
|
|
||||||
SET(MODULE_LIBS_SHARED " ")
|
|
||||||
SET(MODULE_LIBS_STATIC ${TARGET_LIBRARIES})
|
|
||||||
ELSE()
|
|
||||||
SET(MODULE_BUILD_TYPE "\$\(BUILD_SHARED_LIBRARY\)")
|
|
||||||
SET(MODULE_LIBS_SHARED ${TARGET_LIBRARIES})
|
|
||||||
SET(MODULE_LIBS_STATIC " ")
|
|
||||||
ENDIF()
|
|
||||||
set(ENV{AND_OSG_LIB_NAMES} "$ENV{AND_OSG_LIB_NAMES} ${LIB_NAME}")
|
|
||||||
set(ENV{AND_OSG_LIB_PATHS} "$ENV{AND_OSG_LIB_PATHS}include ${CMAKE_CURRENT_BINARY_DIR}/Android.mk \n")
|
|
||||||
|
|
||||||
configure_file("${OSG_ANDROID_TEMPLATES}/Android.mk.modules.in" "${CMAKE_CURRENT_BINARY_DIR}/Android.mk")
|
|
||||||
|
|
||||||
ENDMACRO()
|
|
||||||
|
|
||||||
MACRO(ANDROID_3RD_PARTY)
|
|
||||||
################################################
|
|
||||||
#JPEG
|
|
||||||
################################################
|
|
||||||
FIND_PATH(JPEG_INCLUDE_DIR Android.mk
|
|
||||||
${CMAKE_SOURCE_DIR}/3rdparty/libjpeg NO_CMAKE_FIND_ROOT_PATH
|
|
||||||
)
|
|
||||||
#set(ENV{AND_OSG_LIB_NAMES} "$ENV{AND_OSG_LIB_NAMES} libjpeg")
|
|
||||||
#set(ENV{AND_OSG_LIB_PATHS} "$ENV{AND_OSG_LIB_PATHS}include ${JPEG_INCLUDE_DIR}/Android.mk \n")
|
|
||||||
if(JPEG_INCLUDE_DIR)
|
|
||||||
message(STATUS "Jpeg found ${JPEG_INCLUDE_DIR}" )
|
|
||||||
set(JPEG_FOUND "Yes")
|
|
||||||
install(DIRECTORY 3rdparty/build/libjpeg/ DESTINATION ./ )
|
|
||||||
else(JPEG_INCLUDE_DIR)
|
|
||||||
message(STATUS "Jpeg missing" )
|
|
||||||
endif()
|
|
||||||
################################################
|
|
||||||
#PNG
|
|
||||||
################################################
|
|
||||||
FIND_PATH(PNG_INCLUDE_DIR Android.mk
|
|
||||||
${CMAKE_SOURCE_DIR}/3rdparty/libpng NO_CMAKE_FIND_ROOT_PATH
|
|
||||||
)
|
|
||||||
#set(ENV{AND_OSG_LIB_NAMES} "$ENV{AND_OSG_LIB_NAMES} libpng")
|
|
||||||
#set(ENV{AND_OSG_LIB_PATHS} "$ENV{AND_OSG_LIB_PATHS}include ${PNG_INCLUDE_DIR}/Android.mk \n")
|
|
||||||
if(PNG_INCLUDE_DIR)
|
|
||||||
message(STATUS "PNG found ${PNG_INCLUDE_DIR}" )
|
|
||||||
set(PNG_FOUND "Yes")
|
|
||||||
install(DIRECTORY 3rdparty/build/libpng/ DESTINATION ./ )
|
|
||||||
else(PNG_INCLUDE_DIR)
|
|
||||||
message(STATUS "PNG missing" )
|
|
||||||
endif()
|
|
||||||
################################################
|
|
||||||
#GIF
|
|
||||||
################################################
|
|
||||||
FIND_PATH(GIFLIB_INCLUDE_DIR Android.mk
|
|
||||||
${CMAKE_SOURCE_DIR}/3rdparty/giflib NO_CMAKE_FIND_ROOT_PATH
|
|
||||||
)
|
|
||||||
#set(ENV{AND_OSG_LIB_NAMES} "$ENV{AND_OSG_LIB_NAMES} libgif")
|
|
||||||
#set(ENV{AND_OSG_LIB_PATHS} "$ENV{AND_OSG_LIB_PATHS}include ${GIFLIB_INCLUDE_DIR}/Android.mk \n")
|
|
||||||
if(GIFLIB_INCLUDE_DIR)
|
|
||||||
message(STATUS "GIF found ${GIFLIB_INCLUDE_DIR}" )
|
|
||||||
set(GIFLIB_FOUND "Yes")
|
|
||||||
install(DIRECTORY 3rdparty/build/giflib/ DESTINATION ./ )
|
|
||||||
else(GIFLIB_INCLUDE_DIR)
|
|
||||||
message(STATUS "GIF missing" )
|
|
||||||
endif()
|
|
||||||
################################################
|
|
||||||
#TIF
|
|
||||||
################################################
|
|
||||||
FIND_PATH(TIFF_INCLUDE_DIR Android.mk
|
|
||||||
${CMAKE_SOURCE_DIR}/3rdparty/libtiff NO_CMAKE_FIND_ROOT_PATH
|
|
||||||
)
|
|
||||||
#set(ENV{AND_OSG_LIB_NAMES} "$ENV{AND_OSG_LIB_NAMES} libtiff")
|
|
||||||
#set(ENV{AND_OSG_LIB_PATHS} "$ENV{AND_OSG_LIB_PATHS}include ${TIFF_INCLUDE_DIR}/Android.mk \n")
|
|
||||||
if(TIFF_INCLUDE_DIR)
|
|
||||||
message(STATUS "TIF found ${TIFF_INCLUDE_DIR}" )
|
|
||||||
set(TIFF_FOUND "Yes")
|
|
||||||
install(DIRECTORY 3rdparty/build/libtiff/ DESTINATION ./ )
|
|
||||||
else(TIFF_INCLUDE_DIR)
|
|
||||||
message(STATUS "TIF missing" )
|
|
||||||
endif()
|
|
||||||
################################################
|
|
||||||
#ZLIB
|
|
||||||
################################################
|
|
||||||
#FIND_PATH(ZLIB_INCLUDE_DIR Android.mk
|
|
||||||
# ${CMAKE_SOURCE_DIR}/3rdparty/zlib
|
|
||||||
#)
|
|
||||||
#set(ENV{AND_OSG_LIB_NAMES} "$ENV{AND_OSG_LIB_NAMES} zlib")
|
|
||||||
#set(ENV{AND_OSG_LIB_PATHS} "$ENV{AND_OSG_LIB_PATHS}include ${ZLIB_INCLUDE_DIR}/Android.mk \n")
|
|
||||||
#if(ZLIB_INCLUDE_DIR)
|
|
||||||
# message(STATUS "ZLIB found ${ZLIB_INCLUDE_DIR}" )
|
|
||||||
# set(ZLIB_FOUND "Yes")
|
|
||||||
# install(DIRECTORY 3rdparty/build/libjpeg/ DESTINATION ./ )
|
|
||||||
#else(ZLIB_INCLUDE_DIR)
|
|
||||||
# message(STATUS "ZLIB missing" )
|
|
||||||
#endif()
|
|
||||||
################################################
|
|
||||||
#CURL
|
|
||||||
################################################
|
|
||||||
FIND_PATH(CURL_DIR Android.mk
|
|
||||||
${CMAKE_SOURCE_DIR}/3rdparty/curl NO_CMAKE_FIND_ROOT_PATH
|
|
||||||
)
|
|
||||||
#set(ENV{AND_OSG_LIB_NAMES} "$ENV{AND_OSG_LIB_NAMES} libcurl")
|
|
||||||
#set(ENV{AND_OSG_LIB_PATHS} "$ENV{AND_OSG_LIB_PATHS}include ${CURL_DIR}/Android.mk \n")
|
|
||||||
set(CURL_INCLUDE_DIR ${CURL_DIR}/include)
|
|
||||||
set(CURL_INCLUDE_DIRS ${CURL_DIR}/include) #Both are defined in FindCurl
|
|
||||||
if(CURL_DIR)
|
|
||||||
message(STATUS "Curl found ${CURL_DIR}" )
|
|
||||||
set(CURL_FOUND "Yes")
|
|
||||||
install(DIRECTORY 3rdparty/build/curl/ DESTINATION ./ )
|
|
||||||
else(CURL_DIR)
|
|
||||||
message(STATUS "Curl missing" )
|
|
||||||
endif()
|
|
||||||
################################################
|
|
||||||
#FREETYPE
|
|
||||||
################################################
|
|
||||||
FIND_PATH(FREETYPE_DIR Android.mk
|
|
||||||
${CMAKE_SOURCE_DIR}/3rdparty/freetype NO_CMAKE_FIND_ROOT_PATH
|
|
||||||
)
|
|
||||||
#set(ENV{AND_OSG_LIB_NAMES} "$ENV{AND_OSG_LIB_NAMES} libft2")
|
|
||||||
#set(ENV{AND_OSG_LIB_PATHS} "$ENV{AND_OSG_LIB_PATHS}include ${FREETYPE_DIR}/Android.mk \n")
|
|
||||||
set(FREETYPE_INCLUDE_DIRS ${FREETYPE_DIR}/include ${FREETYPE_DIR}/include/freetype/config)
|
|
||||||
if(FREETYPE_DIR)
|
|
||||||
message(STATUS "FREETYPE found ${FREETYPE_DIR}" )
|
|
||||||
set(FREETYPE_FOUND "Yes")
|
|
||||||
install(DIRECTORY 3rdparty/build/freetype/ DESTINATION ./ )
|
|
||||||
else(FREETYPE_DIR)
|
|
||||||
message(STATUS "FREETYPE missing" )
|
|
||||||
endif()
|
|
||||||
################################################
|
|
||||||
#GDAL
|
|
||||||
################################################
|
|
||||||
FIND_PATH(GDAL_DIR gdal.h
|
|
||||||
${CMAKE_SOURCE_DIR}/3rdparty/gdal/include NO_CMAKE_FIND_ROOT_PATH
|
|
||||||
)
|
|
||||||
set(GDAL_INCLUDE_DIR "${GDAL_DIR}")
|
|
||||||
if(GDAL_DIR)
|
|
||||||
message(STATUS "GDAL found ${GDAL_DIR}" )
|
|
||||||
set(GDAL_FOUND "Yes")
|
|
||||||
install(DIRECTORY 3rdparty/build/gdal/ DESTINATION ./ )
|
|
||||||
else(GDAL_DIR)
|
|
||||||
message(STATUS "GDAL missing" )
|
|
||||||
endif()
|
|
||||||
ENDMACRO()
|
|
||||||
@@ -1,222 +0,0 @@
|
|||||||
# This script sets up packaging targets for each "COMPONENT" as specified in INSTALL commands
|
|
||||||
#
|
|
||||||
# for each component a CPackConfig-<component>.cmake is generated in the build tree
|
|
||||||
# and a target is added to call cpack for it (e.g. package_openscenegaph
|
|
||||||
# A target for generating a package with everything that gets INSTALLED is generated (package_openscenegraph-all)
|
|
||||||
# A target for making all of the abaove packages is generated (package_ALL)
|
|
||||||
#
|
|
||||||
# package filenames are created on the form <package>-<platform>-<arch>[-<compiler>]-<build_type>[-static].tar.gz
|
|
||||||
# ...where compiler optionally set using a cmake gui (OSG_CPACK_COMPILER). This script tries to guess compiler version for msvc generators
|
|
||||||
# ...build_type matches CMAKE_BUILD_TYPE for all generators but the msvc ones
|
|
||||||
|
|
||||||
# resolve architecture. The reason i "change" i686 to i386 is that debian packages
|
|
||||||
# require i386 so this is for the future
|
|
||||||
IF("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686")
|
|
||||||
SET(SYSTEM_ARCH "i386")
|
|
||||||
ELSE()
|
|
||||||
SET(SYSTEM_ARCH ${CMAKE_SYSTEM_PROCESSOR})
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# set a default system name - use CMake setting (Linux|Windows|...)
|
|
||||||
SET(SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
|
|
||||||
#message(STATUS "CMAKE_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}")
|
|
||||||
#message(STATUS "CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR}")
|
|
||||||
|
|
||||||
# for msvc the SYSTEM_NAME is set win32/64 instead of "Windows"
|
|
||||||
IF(MSVC)
|
|
||||||
IF(CMAKE_CL_64)
|
|
||||||
SET(SYSTEM_NAME "win64")
|
|
||||||
ELSE()
|
|
||||||
SET(SYSTEM_NAME "win32")
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
# Guess the compiler (is this desired for other platforms than windows?)
|
|
||||||
IF(NOT DEFINED OSG_CPACK_COMPILER)
|
|
||||||
INCLUDE(OsgDetermineCompiler)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# expose the compiler setting to the user
|
|
||||||
SET(OSG_CPACK_COMPILER "${OSG_COMPILER}" CACHE STRING "This ia short string (vc90, vc80sp1, gcc-4.3, ...) describing your compiler. The string is used for creating package filenames")
|
|
||||||
|
|
||||||
IF(OSG_CPACK_COMPILER)
|
|
||||||
SET(OSG_CPACK_SYSTEM_SPEC_STRING ${SYSTEM_NAME}-${SYSTEM_ARCH}-${OSG_CPACK_COMPILER})
|
|
||||||
ELSE()
|
|
||||||
SET(OSG_CPACK_SYSTEM_SPEC_STRING ${SYSTEM_NAME}-${SYSTEM_ARCH})
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
## variables that apply to all packages
|
|
||||||
SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${OPENSCENEGRAPH_VERSION}")
|
|
||||||
|
|
||||||
# these goes for all platforms. Setting these stops the CPack.cmake script from generating options about other package compression formats (.z .tz, etc.)
|
|
||||||
IF(WIN32)
|
|
||||||
SET(CPACK_GENERATOR "ZIP" CACHE STRING "CPack package generator type (i.e ZIP,NSIS,TGZ,DEB,RPM, -- see CPack for valid stypes")
|
|
||||||
ELSE()
|
|
||||||
SET(CPACK_GENERATOR "TGZ" CACHE STRING "CPack package generator type (i.e ZIP,NSIS,TGZ,DEB,RPM, -- see CPack for valid stypes")
|
|
||||||
ENDIF()
|
|
||||||
SET(CPACK_SOURCE_GENERATOR "TGZ")
|
|
||||||
|
|
||||||
|
|
||||||
# for ms visual studio we use it's internally defined variable to get the configuration (debug,release, ...)
|
|
||||||
IF(MSVC_IDE)
|
|
||||||
SET(OSG_CPACK_CONFIGURATION "$(OutDir)")
|
|
||||||
SET(PACKAGE_TARGET_PREFIX "Package ")
|
|
||||||
ELSE()
|
|
||||||
# on un*x an empty CMAKE_BUILD_TYPE means release
|
|
||||||
IF(CMAKE_BUILD_TYPE)
|
|
||||||
SET(OSG_CPACK_CONFIGURATION ${CMAKE_BUILD_TYPE})
|
|
||||||
ELSE()
|
|
||||||
SET(OSG_CPACK_CONFIGURATION "Release")
|
|
||||||
ENDIF()
|
|
||||||
SET(PACKAGE_TARGET_PREFIX "package_")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# Get all defined components
|
|
||||||
GET_CMAKE_PROPERTY(CPACK_COMPONENTS_ALL COMPONENTS)
|
|
||||||
IF(NOT CPACK_COMPONENTS_ALL)
|
|
||||||
# cmake 2.6.0 don't supply the COMPONENTS property.
|
|
||||||
# I set it manually to be the packages that can always be packaged
|
|
||||||
MESSAGE("When building packages please consider using cmake version 2.6.1 or above")
|
|
||||||
SET(CPACK_COMPONENTS_ALL libopenscenegraph libopenthreads openscenegraph libopenscenegraph-dev libopenthreads-dev)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# Create a target that will be used to generate all packages defined below
|
|
||||||
SET(PACKAGE_ALL_TARGETNAME "${PACKAGE_TARGET_PREFIX}ALL")
|
|
||||||
ADD_CUSTOM_TARGET(${PACKAGE_ALL_TARGETNAME})
|
|
||||||
|
|
||||||
# cpack configuration for debian packages
|
|
||||||
IF(${CPACK_GENERATOR} STREQUAL "DEB")
|
|
||||||
SET(OPENSCENEGRAPH_PACKAGE_MAINTAINER
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Name and email address of the package maintainer, e.g., 'Jon Doe <jon.doe@superawesomemail.com>'"
|
|
||||||
)
|
|
||||||
SET(CPACK_LIBOPENSCENEGRAPH_DEPENDENCIES
|
|
||||||
"libopenthreads"
|
|
||||||
CACHE STRING
|
|
||||||
"Dependend packages for the openscenegraph library package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_LIBOPENSCENEGRAPH-DEV_DEPENDENCIES
|
|
||||||
"libopenscenegraph"
|
|
||||||
CACHE STRING
|
|
||||||
"Dependend packages for the openscenegraph development package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_LIBOPENTHREADS_DEPENDENCIES
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Dependend packages for the openthreads library package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_LIBOPENTHREADS-DEV_DEPENDENCIES
|
|
||||||
"libopenthreads"
|
|
||||||
CACHE STRING
|
|
||||||
"Dependend packages for the openthreads development package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_OPENSCENEGRAPH_DEPENDENCIES
|
|
||||||
"libopenscenegraph"
|
|
||||||
CACHE STRING
|
|
||||||
"Dependend packages for the openscenegraph main package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_OPENSCENEGRAPH-ALL_DEPENDENCIES
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Dependend packages for the openscenegraph package with all components (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(CPACK_LIBOPENSCENEGRAPH_CONFLICTS
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Conflicting packages for the openscenegraph library package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_LIBOPENSCENEGRAPH-DEV_CONFLICTS
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Conflicting packages for the openscenegraph development package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_LIBOPENTHREADS_CONFLICTS
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Conflicting packages for the openthreads library package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_LIBOPENTHREADS-DEV_CONFLICTS
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Conflicting packages for the openthreads development package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_OPENSCENEGRAPH_CONFLICTS
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Conflicting packages for the openscenegraph main package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_OPENSCENEGRAPH-ALL_CONFLICTS
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Conflicting packages for the openscenegraph package with all components (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
MACRO(GENERATE_PACKAGING_TARGET package_name)
|
|
||||||
SET(CPACK_PACKAGE_NAME ${package_name})
|
|
||||||
|
|
||||||
# set debian dependencies AND conflicts
|
|
||||||
IF(${CPACK_GENERATOR} STREQUAL "DEB")
|
|
||||||
STRING(TOUPPER CPACK_${package_name}_DEPENDENCIES DEPENDENCIES_VAR)
|
|
||||||
STRING(TOUPPER CPACK_${package_name}_CONFLICTS CONFLICTS_VAR)
|
|
||||||
SET(OSG_PACKAGE_DEPENDS "${${DEPENDENCIES_VAR}}")
|
|
||||||
SET(OSG_PACKAGE_CONFLICTS "${${CONFLICTS_VAR}}")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# the doc packages don't need a system-arch specification
|
|
||||||
IF(${package} MATCHES -doc)
|
|
||||||
SET(OSG_PACKAGE_FILE_NAME ${package_name}-${OPENSCENEGRAPH_VERSION})
|
|
||||||
ELSE()
|
|
||||||
SET(OSG_PACKAGE_FILE_NAME ${package_name}-${OPENSCENEGRAPH_VERSION}-${OSG_CPACK_SYSTEM_SPEC_STRING}-${OSG_CPACK_CONFIGURATION})
|
|
||||||
IF(NOT DYNAMIC_OPENSCENEGRAPH)
|
|
||||||
SET(OSG_PACKAGE_FILE_NAME ${OSG_PACKAGE_FILE_NAME}-static)
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
CONFIGURE_FILE("${OpenSceneGraph_SOURCE_DIR}/CMakeModules/OsgCPackConfig.cmake.in" "${OpenSceneGraph_BINARY_DIR}/CPackConfig-${package_name}.cmake" IMMEDIATE)
|
|
||||||
|
|
||||||
SET(PACKAGE_TARGETNAME "${PACKAGE_TARGET_PREFIX}${package_name}")
|
|
||||||
|
|
||||||
# This is naive and will probably need fixing eventually
|
|
||||||
IF(MSVC)
|
|
||||||
SET(MOVE_COMMAND "move")
|
|
||||||
ELSE()
|
|
||||||
SET(MOVE_COMMAND "mv")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# Set in and out archive filenames. Windows = zip, others = tar.gz
|
|
||||||
IF(WIN32)
|
|
||||||
SET(ARCHIVE_EXT "zip")
|
|
||||||
ELSE()
|
|
||||||
SET(ARCHIVE_EXT "tar.gz")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# Create a target that creates the current package
|
|
||||||
# and rename the package to give it proper filename
|
|
||||||
ADD_CUSTOM_TARGET(${PACKAGE_TARGETNAME})
|
|
||||||
SET_TARGET_PROPERTIES(${PACKAGE_TARGETNAME} PROPERTIES FOLDER "Packaging")
|
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(TARGET ${PACKAGE_TARGETNAME}
|
|
||||||
COMMAND ${CMAKE_CPACK_COMMAND} -C ${OSG_CPACK_CONFIGURATION} --config ${OpenSceneGraph_BINARY_DIR}/CPackConfig-${package_name}.cmake
|
|
||||||
COMMENT "Run CPack packaging for ${package_name}..."
|
|
||||||
)
|
|
||||||
# Add the exact same custom command to the all package generating target.
|
|
||||||
# I can't use add_dependencies to do this because it would allow parallel building of packages so am going brute here
|
|
||||||
ADD_CUSTOM_COMMAND(TARGET ${PACKAGE_ALL_TARGETNAME}
|
|
||||||
COMMAND ${CMAKE_CPACK_COMMAND} -C ${OSG_CPACK_CONFIGURATION} --config ${OpenSceneGraph_BINARY_DIR}/CPackConfig-${package_name}.cmake
|
|
||||||
)
|
|
||||||
SET_TARGET_PROPERTIES(${PACKAGE_ALL_TARGETNAME} PROPERTIES FOLDER "Packaging")
|
|
||||||
|
|
||||||
ENDMACRO(GENERATE_PACKAGING_TARGET)
|
|
||||||
|
|
||||||
# Create configs and targets for a package including all components
|
|
||||||
SET(OSG_CPACK_COMPONENT ALL)
|
|
||||||
GENERATE_PACKAGING_TARGET(openscenegraph-all)
|
|
||||||
|
|
||||||
# Create configs and targets for each component
|
|
||||||
FOREACH(package ${CPACK_COMPONENTS_ALL})
|
|
||||||
SET(OSG_CPACK_COMPONENT ${package})
|
|
||||||
GENERATE_PACKAGING_TARGET(${package})
|
|
||||||
ENDFOREACH()
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
# This file will be configured to contain variables for CPack. These variables
|
|
||||||
# should be set in the CMake list file of the project before CPack module is
|
|
||||||
# included. Example variables are:
|
|
||||||
# CPACK_GENERATOR - Generator used to create package
|
|
||||||
# CPACK_INSTALL_CMAKE_PROJECTS - For each project (path, name, component)
|
|
||||||
# CPACK_CMAKE_GENERATOR - CMake Generator used for the projects
|
|
||||||
# CPACK_INSTALL_COMMANDS - Extra commands to install components
|
|
||||||
# CPACK_INSTALL_DIRECTORIES - Extra directories to install
|
|
||||||
# CPACK_PACKAGE_DESCRIPTION_FILE - Description file for the package
|
|
||||||
# CPACK_PACKAGE_DESCRIPTION_SUMMARY - Summary of the package
|
|
||||||
# CPACK_PACKAGE_EXECUTABLES - List of pairs of executables and labels
|
|
||||||
# CPACK_PACKAGE_FILE_NAME - Name of the package generated
|
|
||||||
# CPACK_PACKAGE_ICON - Icon used for the package
|
|
||||||
# CPACK_PACKAGE_INSTALL_DIRECTORY - Name of directory for the installer
|
|
||||||
# CPACK_PACKAGE_NAME - Package project name
|
|
||||||
# CPACK_PACKAGE_VENDOR - Package project vendor
|
|
||||||
# CPACK_PACKAGE_VERSION - Package project version
|
|
||||||
# CPACK_PACKAGE_VERSION_MAJOR - Package project version (major)
|
|
||||||
# CPACK_PACKAGE_VERSION_MINOR - Package project version (minor)
|
|
||||||
# CPACK_PACKAGE_VERSION_PATCH - Package project version (patch)
|
|
||||||
|
|
||||||
# There are certain generator specific ones
|
|
||||||
|
|
||||||
# NSIS Generator:
|
|
||||||
# CPACK_PACKAGE_INSTALL_REGISTRY_KEY - Name of the registry key for the installer
|
|
||||||
# CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS - Extra commands used during uninstall
|
|
||||||
# CPACK_NSIS_EXTRA_INSTALL_COMMANDS - Extra commands used during install
|
|
||||||
|
|
||||||
|
|
||||||
SET(CPACK_BINARY_BUNDLE "${CPACK_BINARY_BUNDLE}")
|
|
||||||
SET(CPACK_BINARY_CYGWIN "${CPACK_BINARY_CYGWIN}")
|
|
||||||
SET(CPACK_BINARY_DEB "${CPACK_BINARY_DEB}")
|
|
||||||
SET(CPACK_BINARY_NSIS "${CPACK_BINARY_NSIS}")
|
|
||||||
SET(CPACK_BINARY_OSXX11 "${CPACK_BINARY_OSXX11}")
|
|
||||||
SET(CPACK_BINARY_PACKAGEMAKER "${CPACK_BINARY_PACKAGEMAKER}")
|
|
||||||
SET(CPACK_BINARY_RPM "${CPACK_BINARY_RPM}")
|
|
||||||
SET(CPACK_BINARY_STGZ "${CPACK_BINARY_STGZ}")
|
|
||||||
SET(CPACK_BINARY_TBZ2 "${CPACK_BINARY_TBZ2}")
|
|
||||||
SET(CPACK_BINARY_TGZ "${CPACK_BINARY_TGZ}")
|
|
||||||
SET(CPACK_BINARY_TZ "${CPACK_BINARY_TZ}")
|
|
||||||
SET(CPACK_BINARY_ZIP "${CPACK_BINARY_ZIP}")
|
|
||||||
SET(CPACK_CMAKE_GENERATOR "${CMAKE_GENERATOR}")
|
|
||||||
SET(CPACK_COMPONENTS_ALL "${CPACK_COMPONENTS_ALL}")
|
|
||||||
SET(CPACK_COMPONENT_UNSPECIFIED_HIDDEN "TRUE")
|
|
||||||
SET(CPACK_COMPONENT_UNSPECIFIED_REQUIRED "TRUE")
|
|
||||||
SET(CPACK_GENERATOR "${CPACK_GENERATOR}")
|
|
||||||
SET(CPACK_INSTALL_CMAKE_PROJECTS "${OpenSceneGraph_BINARY_DIR};OpenSceneGraph;${OSG_CPACK_COMPONENT};/")
|
|
||||||
SET(CPACK_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
|
||||||
SET(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
|
||||||
SET(CPACK_MODULE_PATH "${OpenSceneGraph_SOURCE_DIR}/CMakeModules;")
|
|
||||||
SET(CPACK_NSIS_DISPLAY_NAME "${CMAKE_PROJECT_NAME} ${OPENSCENEGRAPH_VERSION}")
|
|
||||||
SET(CPACK_NSIS_INSTALLER_ICON_CODE "")
|
|
||||||
SET(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "")
|
|
||||||
SET(CPACK_OUTPUT_CONFIG_FILE "${PROJECT_BINARY_DIR}/CPackConfig-${OSG_CPACK_COMPONENT}.cmake")
|
|
||||||
SET(CPACK_PACKAGE_DEFAULT_LOCATION "/")
|
|
||||||
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${OpenSceneGraph_SOURCE_DIR}/README.md")
|
|
||||||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The OpenSceneGraph is an open source high performance 3d graphics toolkit")
|
|
||||||
SET(CPACK_PACKAGE_FILE_NAME "${OSG_PACKAGE_FILE_NAME}")
|
|
||||||
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
|
|
||||||
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CMAKE_PROJECT_NAME}-${OPENSCENEGRAPH_VERSION}")
|
|
||||||
SET(CPACK_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
|
|
||||||
SET(CPACK_PACKAGE_RELOCATABLE "true")
|
|
||||||
SET(CPACK_PACKAGE_VENDOR "The OpenSceneGraph developers and contributors lead by Robert Osfield")
|
|
||||||
SET(CPACK_PACKAGE_VERSION "${OPENSCENEGRAPH_VERSION}")
|
|
||||||
SET(CPACK_PACKAGE_VERSION_MAJOR "${OPENSCENEGRAPH_MAJOR_VERSION}")
|
|
||||||
SET(CPACK_PACKAGE_VERSION_MINOR "${OPENSCENEGRAPH_MINOR_VERSION}")
|
|
||||||
SET(CPACK_PACKAGE_VERSION_PATCH "${OPENSCENEGRAPH_PATCH_VERSION}")
|
|
||||||
SET(CPACK_RESOURCE_FILE_LICENSE "${OpenSceneGraph_SOURCE_DIR}/LICENSE.txt")
|
|
||||||
SET(CPACK_RESOURCE_FILE_README "${OpenSceneGraph_SOURCE_DIR}/README.md")
|
|
||||||
SET(CPACK_RESOURCE_FILE_WELCOME "${OpenSceneGraph_SOURCE_DIR}/NEWS.txt")
|
|
||||||
SET(CPACK_STRIP_FILES "ON")
|
|
||||||
|
|
||||||
# DEBIAN OPTIONS
|
|
||||||
IF(${CPACK_GENERATOR} STREQUAL "DEB")
|
|
||||||
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "${OPENSCENEGRAPH_PACKAGE_MAINTAINER}")
|
|
||||||
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "http://www.openscenegraph.org")
|
|
||||||
SET(CPACK_DEBIAN_PACKAGE_SECTION "Development")
|
|
||||||
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "${OSG_PACKAGE_DEPENDS}")
|
|
||||||
SET(CPACK_DEBIAN_PACKAGE_CONFLICTS "${OSG_PACKAGE_CONFLICTS}")
|
|
||||||
SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${OpenSceneGraph_SOURCE_DIR}/debian_scripts/postinst;")
|
|
||||||
ENDIF()
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
# - If Visual Studio is being used, this script sets the variable OSG_COMPILER
|
|
||||||
# The principal reason for this is due to MSVC 8.0 SP0 vs SP1 builds.
|
|
||||||
#
|
|
||||||
# Variable:
|
|
||||||
# OSG_COMPILER
|
|
||||||
#
|
|
||||||
|
|
||||||
# Not currently used...
|
|
||||||
#IF(CMAKE_COMPILER_IS_GNUCXX)
|
|
||||||
# EXEC_PROGRAM(
|
|
||||||
# ${CMAKE_CXX_COMPILER}
|
|
||||||
# ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
|
|
||||||
# OUTPUT_VARIABLE gcc_compiler_version
|
|
||||||
# )
|
|
||||||
# #MESSAGE("GCC Version: ${gcc_compiler_version}")
|
|
||||||
|
|
||||||
IF(MSVC60)
|
|
||||||
SET(OSG_COMPILER "vc60")
|
|
||||||
ELSEIF(MSVC70)
|
|
||||||
SET(OSG_COMPILER "vc70")
|
|
||||||
ELSEIF(MSVC71)
|
|
||||||
SET(OSG_COMPILER "vc71")
|
|
||||||
ELSEIF(MSVC80)
|
|
||||||
SET(OSG_COMPILER "vc80")
|
|
||||||
ELSEIF(MSVC90)
|
|
||||||
SET(OSG_COMPILER "vc90")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
|
|
||||||
IF(MSVC80)
|
|
||||||
MESSAGE(STATUS "Checking if compiler has service pack 1 installed...")
|
|
||||||
FILE(WRITE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cxx" "int main() {return 0;}\n")
|
|
||||||
|
|
||||||
TRY_COMPILE(_TRY_RESULT
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cxx
|
|
||||||
CMAKE_FLAGS -D CMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
OUTPUT_VARIABLE OUTPUT
|
|
||||||
)
|
|
||||||
|
|
||||||
IF(_TRY_RESULT)
|
|
||||||
# parse for exact compiler version
|
|
||||||
STRING(REGEX MATCH "Compiler Version [0-9]+.[0-9]+.[0-9]+.[0-9]+" vc_compiler_version "${OUTPUT}")
|
|
||||||
IF(vc_compiler_version)
|
|
||||||
#MESSAGE("${vc_compiler_version}")
|
|
||||||
STRING(REGEX MATCHALL "[0-9]+" CL_VERSION_LIST "${vc_compiler_version}")
|
|
||||||
LIST(GET CL_VERSION_LIST 0 CL_MAJOR_VERSION)
|
|
||||||
LIST(GET CL_VERSION_LIST 1 CL_MINOR_VERSION)
|
|
||||||
LIST(GET CL_VERSION_LIST 2 CL_PATCH_VERSION)
|
|
||||||
LIST(GET CL_VERSION_LIST 3 CL_EXTRA_VERSION)
|
|
||||||
ENDIF(vc_compiler_version)
|
|
||||||
|
|
||||||
# Standard vc80 is 14.00.50727.42, sp1 14.00.50727.762, sp2?
|
|
||||||
# Standard vc90 is 9.0.30729.1, sp1 ?
|
|
||||||
IF(CL_EXTRA_VERSION EQUAL 762)
|
|
||||||
SET(OSG_COMPILER "vc80sp1")
|
|
||||||
ELSE(CL_EXTRA_VERSION EQUAL 762)
|
|
||||||
SET(OSG_COMPILER "vc80")
|
|
||||||
ENDIF(CL_EXTRA_VERSION EQUAL 762)
|
|
||||||
|
|
||||||
# parse for exact visual studio version
|
|
||||||
#IF(MSVC_IDE)
|
|
||||||
# string(REGEX MATCH "Visual Studio Version [0-9]+.[0-9]+.[0-9]+.[0-9]+" vs_version "${OUTPUT}")
|
|
||||||
# IF(vs_version)
|
|
||||||
# MESSAGE("${vs_version}")
|
|
||||||
# string(REGEX MATCHALL "[0-9]+" VS_VERSION_LIST "${vs_version}")
|
|
||||||
# list(GET VS_VERSION_LIST 0 VS_MAJOR_VERSION)
|
|
||||||
# list(GET VS_VERSION_LIST 1 VS_MINOR_VERSION)
|
|
||||||
# list(GET VS_VERSION_LIST 2 VS_PATCH_VERSION)
|
|
||||||
# list(GET VS_VERSION_LIST 3 VS_EXTRA_VERSION)
|
|
||||||
# ENDIF(vs_version)
|
|
||||||
#ENDIF(MSVC_IDE)
|
|
||||||
ENDIF(_TRY_RESULT)
|
|
||||||
ENDIF(MSVC80)
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# - If Windows is used, this script sets the variable WIN32_WINNT to the corresponding windows version
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
message(STATUS "Checking windows version...")
|
|
||||||
macro(get_WIN32_WINNT version)
|
|
||||||
if (CMAKE_SYSTEM_VERSION)
|
|
||||||
set(ver ${CMAKE_SYSTEM_VERSION})
|
|
||||||
string(REGEX MATCH "^([0-9]+).([0-9])" ver ${ver})
|
|
||||||
string(REGEX MATCH "^([0-9]+)" verMajor ${ver})
|
|
||||||
# Check for Windows 10, b/c we'll need to convert to hex 'A'.
|
|
||||||
if ("${verMajor}" MATCHES "10")
|
|
||||||
set(verMajor "A")
|
|
||||||
string(REGEX REPLACE "^([0-9]+)" ${verMajor} ver ${ver})
|
|
||||||
endif ("${verMajor}" MATCHES "10")
|
|
||||||
# Remove all remaining '.' characters.
|
|
||||||
string(REPLACE "." "" ver ${ver})
|
|
||||||
# Prepend each digit with a zero.
|
|
||||||
string(REGEX REPLACE "([0-9A-Z])" "0\\1" ver ${ver})
|
|
||||||
set(${version} "0x${ver}")
|
|
||||||
endif(CMAKE_SYSTEM_VERSION)
|
|
||||||
endmacro(get_WIN32_WINNT)
|
|
||||||
endif(WIN32)
|
|
||||||
@@ -4,68 +4,36 @@
|
|||||||
# full path of the library name. in order to differentiate release and debug, this macro get the
|
# full path of the library name. in order to differentiate release and debug, this macro get the
|
||||||
# NAME of the variables, so the macro gets as arguments the target name and the following list of parameters
|
# NAME of the variables, so the macro gets as arguments the target name and the following list of parameters
|
||||||
# is intended as a list of variable names each one containing the path of the libraries to link to
|
# is intended as a list of variable names each one containing the path of the libraries to link to
|
||||||
# The existence of a variable name with _DEBUG appended is tested and, in case it' s value is used
|
# The existance of a varibale name with _DEBUG appended is tested and, in case it' s value is used
|
||||||
# for linking to when in debug mode
|
# for linking to when in debug mode
|
||||||
# the content of this library for linking when in debugging
|
# the content of this library for linking when in debugging
|
||||||
#######################################################################################################
|
#######################################################################################################
|
||||||
|
|
||||||
# VALID_BUILDER_VERSION: used for replacing CMAKE_VERSION (available in v2.6.3 RC9) and VERSION_GREATER/VERSION_LESS (available in 2.6.2 RC4).
|
|
||||||
# This can be replaced by "IF(${CMAKE_VERSION} VERSION_LESS "x.y.z")" from 2.6.4.
|
|
||||||
SET(VALID_BUILDER_VERSION OFF)
|
|
||||||
MACRO(BUILDER_VERSION_GREATER MAJOR_VER MINOR_VER PATCH_VER)
|
|
||||||
SET(VALID_BUILDER_VERSION OFF)
|
|
||||||
IF(CMAKE_MAJOR_VERSION GREATER ${MAJOR_VER})
|
|
||||||
SET(VALID_BUILDER_VERSION ON)
|
|
||||||
ELSEIF(CMAKE_MAJOR_VERSION EQUAL ${MAJOR_VER})
|
|
||||||
IF(CMAKE_MINOR_VERSION GREATER ${MINOR_VER})
|
|
||||||
SET(VALID_BUILDER_VERSION ON)
|
|
||||||
ELSEIF(CMAKE_MINOR_VERSION EQUAL ${MINOR_VER})
|
|
||||||
IF(CMAKE_PATCH_VERSION GREATER ${PATCH_VER})
|
|
||||||
SET(VALID_BUILDER_VERSION ON)
|
|
||||||
ENDIF(CMAKE_PATCH_VERSION GREATER ${PATCH_VER})
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
ENDMACRO(BUILDER_VERSION_GREATER MAJOR_VER MINOR_VER PATCH_VER)
|
|
||||||
|
|
||||||
|
|
||||||
# CMAKE_VERSION_TEST: Define whether "IF(${CMAKE_VERSION} VERSION_LESS "x.y.z")" can be used or not.
|
|
||||||
BUILDER_VERSION_GREATER(2 8 0)
|
|
||||||
SET(CMAKE_VERSION_TEST ${VALID_BUILDER_VERSION}) # >= 2.8.0
|
|
||||||
|
|
||||||
SET(VALID_BUILDER_VERSION OFF)
|
|
||||||
|
|
||||||
|
|
||||||
MACRO(LINK_WITH_VARIABLES TRGTNAME)
|
MACRO(LINK_WITH_VARIABLES TRGTNAME)
|
||||||
FOREACH(varname ${ARGN})
|
FOREACH(varname ${ARGN})
|
||||||
IF(${varname}_DEBUG)
|
IF(${varname}_DEBUG)
|
||||||
IF(${varname}_RELEASE)
|
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}}" debug "${${varname}_DEBUG}")
|
||||||
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}_RELEASE}" debug "${${varname}_DEBUG}")
|
|
||||||
ELSE(${varname}_RELEASE)
|
|
||||||
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}}" debug "${${varname}_DEBUG}")
|
|
||||||
ENDIF(${varname}_RELEASE)
|
|
||||||
ELSE(${varname}_DEBUG)
|
ELSE(${varname}_DEBUG)
|
||||||
TARGET_LINK_LIBRARIES(${TRGTNAME} ${${varname}} )
|
TARGET_LINK_LIBRARIES(${TRGTNAME} "${${varname}}" )
|
||||||
ENDIF(${varname}_DEBUG)
|
ENDIF(${varname}_DEBUG)
|
||||||
ENDFOREACH(varname)
|
ENDFOREACH(varname)
|
||||||
ENDMACRO(LINK_WITH_VARIABLES TRGTNAME)
|
ENDMACRO(LINK_WITH_VARIABLES TRGTNAME)
|
||||||
|
|
||||||
MACRO(LINK_INTERNAL TRGTNAME)
|
MACRO(LINK_INTERNAL TRGTNAME)
|
||||||
IF(NOT CMAKE24)
|
FOREACH(LINKLIB ${ARGN})
|
||||||
TARGET_LINK_LIBRARIES(${TRGTNAME} ${ARGN})
|
IF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||||
ELSE(NOT CMAKE24)
|
#when using versioned names, the .dll name differ from .lib name, there is a problem with that:
|
||||||
FOREACH(LINKLIB ${ARGN})
|
#CMake 2.4.7, at least seem to use PREFIX instead of IMPORT_PREFIX for computing linkage info to use into projects,
|
||||||
IF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
# so we full path name to specify linkage, this prevent automatic inferencing of dependencies, so we add explicit depemdencies
|
||||||
#when using versioned names, the .dll name differ from .lib name, there is a problem with that:
|
#to library targets used
|
||||||
#CMake 2.4.7, at least seem to use PREFIX instead of IMPORT_PREFIX for computing linkage info to use into projects,
|
|
||||||
# so we full path name to specify linkage, this prevent automatic inferencing of dependencies, so we add explicit depemdencies
|
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${OUTPUT_LIBDIR}/${LINKLIB}" debug "${OUTPUT_LIBDIR}/${LINKLIB}${CMAKE_DEBUG_POSTFIX}")
|
||||||
#to library targets used
|
ADD_DEPENDENCIES(${TRGTNAME} ${LINKLIB})
|
||||||
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${OUTPUT_LIBDIR}/${LINKLIB}${CMAKE_RELEASE_POSTFIX}.lib" debug "${OUTPUT_LIBDIR}/${LINKLIB}${CMAKE_DEBUG_POSTFIX}.lib")
|
ELSE(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||||
ADD_DEPENDENCIES(${TRGTNAME} ${LINKLIB})
|
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${LINKLIB}" debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}")
|
||||||
ELSE(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
ENDIF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||||
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${LINKLIB}${CMAKE_RELEASE_POSTFIX}" debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}")
|
ENDFOREACH(LINKLIB)
|
||||||
ENDIF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
|
||||||
ENDFOREACH(LINKLIB)
|
|
||||||
ENDIF(NOT CMAKE24)
|
|
||||||
ENDMACRO(LINK_INTERNAL TRGTNAME)
|
ENDMACRO(LINK_INTERNAL TRGTNAME)
|
||||||
|
|
||||||
MACRO(LINK_EXTERNAL TRGTNAME)
|
MACRO(LINK_EXTERNAL TRGTNAME)
|
||||||
@@ -80,18 +48,11 @@ ENDMACRO(LINK_EXTERNAL TRGTNAME)
|
|||||||
#######################################################################################################
|
#######################################################################################################
|
||||||
|
|
||||||
MACRO(LINK_CORELIB_DEFAULT CORELIB_NAME)
|
MACRO(LINK_CORELIB_DEFAULT CORELIB_NAME)
|
||||||
#SET(ALL_GL_LIBRARIES ${OPENGL_LIBRARIES})
|
LINK_EXTERNAL(${CORELIB_NAME} ${OPENGL_LIBRARIES})
|
||||||
SET(ALL_GL_LIBRARIES ${OPENGL_gl_LIBRARY})
|
|
||||||
IF (OSG_GLES1_AVAILABLE OR OSG_GLES2_AVAILABLE OR OSG_GLES3_AVAILABLE)
|
|
||||||
SET(ALL_GL_LIBRARIES ${ALL_GL_LIBRARIES} ${EGL_LIBRARY})
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
LINK_EXTERNAL(${CORELIB_NAME} ${ALL_GL_LIBRARIES})
|
|
||||||
LINK_WITH_VARIABLES(${CORELIB_NAME} OPENTHREADS_LIBRARY)
|
LINK_WITH_VARIABLES(${CORELIB_NAME} OPENTHREADS_LIBRARY)
|
||||||
IF(OPENSCENEGRAPH_SONAMES)
|
IF(OPENSCENEGRAPH_SONAMES)
|
||||||
SET_TARGET_PROPERTIES(${CORELIB_NAME} PROPERTIES VERSION ${OPENSCENEGRAPH_VERSION} SOVERSION ${OPENSCENEGRAPH_SOVERSION})
|
SET_TARGET_PROPERTIES(${CORELIB_NAME} PROPERTIES VERSION ${OPENSCENEGRAPH_VERSION} SOVERSION ${OPENSCENEGRAPH_SOVERSION})
|
||||||
ENDIF(OPENSCENEGRAPH_SONAMES)
|
ENDIF(OPENSCENEGRAPH_SONAMES)
|
||||||
|
|
||||||
ENDMACRO(LINK_CORELIB_DEFAULT CORELIB_NAME)
|
ENDMACRO(LINK_CORELIB_DEFAULT CORELIB_NAME)
|
||||||
|
|
||||||
|
|
||||||
@@ -110,7 +71,7 @@ ENDMACRO(LINK_CORELIB_DEFAULT CORELIB_NAME)
|
|||||||
MACRO(SETUP_LINK_LIBRARIES)
|
MACRO(SETUP_LINK_LIBRARIES)
|
||||||
######################################################################
|
######################################################################
|
||||||
#
|
#
|
||||||
# This set up the libraries to link to, it assumes there are two variable: one common for a group of examples or plugins
|
# This set up the libraries to link to, it assumes there are two variable: one common for a group of examples or plagins
|
||||||
# kept in the variable TARGET_COMMON_LIBRARIES and an example or plugin specific kept in TARGET_ADDED_LIBRARIES
|
# kept in the variable TARGET_COMMON_LIBRARIES and an example or plugin specific kept in TARGET_ADDED_LIBRARIES
|
||||||
# they are combined in a single list checked for unicity
|
# they are combined in a single list checked for unicity
|
||||||
# the suffix ${CMAKE_DEBUG_POSTFIX} is used for differentiating optimized and debug
|
# the suffix ${CMAKE_DEBUG_POSTFIX} is used for differentiating optimized and debug
|
||||||
@@ -122,35 +83,28 @@ MACRO(SETUP_LINK_LIBRARIES)
|
|||||||
FOREACH(LINKLIB ${TARGET_ADDED_LIBRARIES})
|
FOREACH(LINKLIB ${TARGET_ADDED_LIBRARIES})
|
||||||
SET(TO_INSERT TRUE)
|
SET(TO_INSERT TRUE)
|
||||||
FOREACH (value ${TARGET_COMMON_LIBRARIES})
|
FOREACH (value ${TARGET_COMMON_LIBRARIES})
|
||||||
IF ("${value}" STREQUAL "${LINKLIB}")
|
IF (${value} STREQUAL ${LINKLIB})
|
||||||
SET(TO_INSERT FALSE)
|
SET(TO_INSERT FALSE)
|
||||||
ENDIF ("${value}" STREQUAL "${LINKLIB}")
|
ENDIF (${value} STREQUAL ${LINKLIB})
|
||||||
ENDFOREACH (value ${TARGET_COMMON_LIBRARIES})
|
ENDFOREACH (value ${TARGET_COMMON_LIBRARIES})
|
||||||
IF(TO_INSERT)
|
IF(TO_INSERT)
|
||||||
LIST(APPEND TARGET_LIBRARIES ${LINKLIB})
|
LIST(APPEND TARGET_LIBRARIES ${LINKLIB})
|
||||||
ENDIF(TO_INSERT)
|
ENDIF(TO_INSERT)
|
||||||
ENDFOREACH(LINKLIB)
|
ENDFOREACH(LINKLIB)
|
||||||
|
|
||||||
#SET(ALL_GL_LIBRARIES ${OPENGL_LIBRARIES})
|
|
||||||
SET(ALL_GL_LIBRARIES ${OPENGL_gl_LIBRARY})
|
|
||||||
IF (OSG_GLES1_AVAILABLE OR OSG_GLES2_AVAILABLE OR OSG_GLES3_AVAILABLE)
|
|
||||||
SET(ALL_GL_LIBRARIES ${ALL_GL_LIBRARIES} ${EGL_LIBRARY})
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# FOREACH(LINKLIB ${TARGET_LIBRARIES})
|
# FOREACH(LINKLIB ${TARGET_LIBRARIES})
|
||||||
# TARGET_LINK_LIBRARIES(${TARGET_TARGETNAME} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}")
|
# TARGET_LINK_LIBRARIES(${TARGET_TARGETNAME} optimized ${LINKLIB} debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}")
|
||||||
# ENDFOREACH(LINKLIB)
|
# ENDFOREACH(LINKLIB)
|
||||||
LINK_INTERNAL(${TARGET_TARGETNAME} ${TARGET_LIBRARIES})
|
LINK_INTERNAL(${TARGET_TARGETNAME} ${TARGET_LIBRARIES})
|
||||||
# FOREACH(LINKLIB ${TARGET_EXTERNAL_LIBRARIES})
|
FOREACH(LINKLIB ${TARGET_EXTERNAL_LIBRARIES})
|
||||||
# TARGET_LINK_LIBRARIES(${TARGET_TARGETNAME} ${LINKLIB})
|
TARGET_LINK_LIBRARIES(${TARGET_TARGETNAME} ${LINKLIB})
|
||||||
# ENDFOREACH(LINKLIB)
|
ENDFOREACH(LINKLIB)
|
||||||
TARGET_LINK_LIBRARIES(${TARGET_TARGETNAME} ${TARGET_EXTERNAL_LIBRARIES})
|
|
||||||
IF(TARGET_LIBRARIES_VARS)
|
IF(TARGET_LIBRARIES_VARS)
|
||||||
LINK_WITH_VARIABLES(${TARGET_TARGETNAME} ${TARGET_LIBRARIES_VARS})
|
LINK_WITH_VARIABLES(${TARGET_TARGETNAME} ${TARGET_LIBRARIES_VARS})
|
||||||
ENDIF(TARGET_LIBRARIES_VARS)
|
ENDIF(TARGET_LIBRARIES_VARS)
|
||||||
IF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
IF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||||
#when using full path name to specify linkage, it seems that already linked libs must be specified
|
#when using full path name to specify linkage, it seems that already linked libs must be specified
|
||||||
LINK_EXTERNAL(${TARGET_TARGETNAME} ${ALL_GL_LIBRARIES})
|
LINK_EXTERNAL(${TARGET_TARGETNAME} ${OPENGL_LIBRARIES})
|
||||||
ENDIF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
ENDIF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||||
|
|
||||||
ENDMACRO(SETUP_LINK_LIBRARIES)
|
ENDMACRO(SETUP_LINK_LIBRARIES)
|
||||||
@@ -159,101 +113,9 @@ ENDMACRO(SETUP_LINK_LIBRARIES)
|
|||||||
# this is the common set of command for all the plugins
|
# this is the common set of command for all the plugins
|
||||||
#
|
#
|
||||||
|
|
||||||
# Sets the output directory property for CMake >= 2.6.0, giving an output path RELATIVE to default one
|
|
||||||
MACRO(SET_OUTPUT_DIR_PROPERTY_260 TARGET_TARGETNAME RELATIVE_OUTDIR)
|
|
||||||
BUILDER_VERSION_GREATER(2 8 0)
|
|
||||||
IF(NOT VALID_BUILDER_VERSION)
|
|
||||||
# If CMake <= 2.8.0 (Testing CMAKE_VERSION is possible in >= 2.6.4)
|
|
||||||
IF(MSVC_IDE)
|
|
||||||
# Using the "prefix" hack
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "../${RELATIVE_OUTDIR}/")
|
|
||||||
ELSE(MSVC_IDE)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "${RELATIVE_OUTDIR}/")
|
|
||||||
ENDIF(MSVC_IDE)
|
|
||||||
ELSE(NOT VALID_BUILDER_VERSION)
|
|
||||||
# Using the output directory properties
|
|
||||||
|
|
||||||
# Global properties (All generators but VS & Xcode)
|
|
||||||
FILE(TO_CMAKE_PATH TMPVAR "CMAKE_ARCHIVE_OUTPUT_DIRECTORY/${RELATIVE_OUTDIR}")
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${TMPVAR}")
|
|
||||||
FILE(TO_CMAKE_PATH TMPVAR "CMAKE_RUNTIME_OUTPUT_DIRECTORY/${RELATIVE_OUTDIR}")
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${TMPVAR}")
|
|
||||||
FILE(TO_CMAKE_PATH TMPVAR "CMAKE_LIBRARY_OUTPUT_DIRECTORY/${RELATIVE_OUTDIR}")
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${TMPVAR}")
|
|
||||||
|
|
||||||
# Per-configuration property (VS, Xcode)
|
|
||||||
FOREACH(CONF ${CMAKE_CONFIGURATION_TYPES}) # For each configuration (Debug, Release, MinSizeRel... and/or anything the user chooses)
|
|
||||||
STRING(TOUPPER "${CONF}" CONF) # Go uppercase (DEBUG, RELEASE...)
|
|
||||||
|
|
||||||
# We use "FILE(TO_CMAKE_PATH", to create nice looking paths
|
|
||||||
FILE(TO_CMAKE_PATH "${CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CONF}}/${RELATIVE_OUTDIR}" TMPVAR)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES "ARCHIVE_OUTPUT_DIRECTORY_${CONF}" "${TMPVAR}")
|
|
||||||
FILE(TO_CMAKE_PATH "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONF}}/${RELATIVE_OUTDIR}" TMPVAR)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES "RUNTIME_OUTPUT_DIRECTORY_${CONF}" "${TMPVAR}")
|
|
||||||
FILE(TO_CMAKE_PATH "${CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CONF}}/${RELATIVE_OUTDIR}" TMPVAR)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES "LIBRARY_OUTPUT_DIRECTORY_${CONF}" "${TMPVAR}")
|
|
||||||
ENDFOREACH(CONF ${CMAKE_CONFIGURATION_TYPES})
|
|
||||||
ENDIF(NOT VALID_BUILDER_VERSION)
|
|
||||||
ENDMACRO(SET_OUTPUT_DIR_PROPERTY_260 TARGET_TARGETNAME RELATIVE_OUTDIR)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#######################################################################################################
|
|
||||||
# macro for common setup of libraries it expect some variables to be set:
|
|
||||||
# either within the local CMakeLists or higher in hierarchy
|
|
||||||
# LIB_NAME is the name of the target library
|
|
||||||
# TARGET_SRC are the sources of the target
|
|
||||||
# TARGET_H are the eventual headers of the target
|
|
||||||
# TARGET_H_NO_MODULE_INSTALL are headers that belong to target but shouldn't get installed by the ModuleInstall script
|
|
||||||
# TARGET_LIBRARIES are the libraries to link to that are internal to the project and have d suffix for debug
|
|
||||||
# TARGET_EXTERNAL_LIBRARIES are external libraries and are not differentiated with d suffix
|
|
||||||
# TARGET_LABEL is the label IDE should show up for targets
|
|
||||||
##########################################################################################################
|
|
||||||
|
|
||||||
MACRO(SETUP_LIBRARY LIB_NAME)
|
|
||||||
IF(GLCORE_FOUND)
|
|
||||||
INCLUDE_DIRECTORIES( ${GLCORE_INCLUDE_DIR} )
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
SET(TARGET_NAME ${LIB_NAME} )
|
|
||||||
SET(TARGET_TARGETNAME ${LIB_NAME} )
|
|
||||||
ADD_LIBRARY(${LIB_NAME}
|
|
||||||
${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
|
|
||||||
${TARGET_H}
|
|
||||||
${TARGET_H_NO_MODULE_INSTALL}
|
|
||||||
${TARGET_SRC}
|
|
||||||
)
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES FOLDER "OSG Core")
|
|
||||||
IF(APPLE)
|
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE)
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES XCODE_ATTRIBUTE_ENABLE_BITCODE ${IPHONE_ENABLE_BITCODE})
|
|
||||||
ENDIF()
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES XCODE_ATTRIBUTE_WARNING_CFLAGS "")
|
|
||||||
ENDIF()
|
|
||||||
IF(TARGET_LABEL)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}")
|
|
||||||
ENDIF(TARGET_LABEL)
|
|
||||||
|
|
||||||
IF(TARGET_LIBRARIES)
|
|
||||||
LINK_INTERNAL(${LIB_NAME} ${TARGET_LIBRARIES})
|
|
||||||
ENDIF()
|
|
||||||
IF(TARGET_EXTERNAL_LIBRARIES)
|
|
||||||
LINK_EXTERNAL(${LIB_NAME} ${TARGET_EXTERNAL_LIBRARIES})
|
|
||||||
ENDIF()
|
|
||||||
IF(TARGET_LIBRARIES_VARS)
|
|
||||||
LINK_WITH_VARIABLES(${LIB_NAME} ${TARGET_LIBRARIES_VARS})
|
|
||||||
ENDIF(TARGET_LIBRARIES_VARS)
|
|
||||||
LINK_CORELIB_DEFAULT(${LIB_NAME})
|
|
||||||
|
|
||||||
INCLUDE(ModuleInstall OPTIONAL)
|
|
||||||
ENDMACRO(SETUP_LIBRARY LIB_NAME)
|
|
||||||
|
|
||||||
MACRO(SETUP_PLUGIN PLUGIN_NAME)
|
MACRO(SETUP_PLUGIN PLUGIN_NAME)
|
||||||
IF(GLCORE_FOUND)
|
|
||||||
INCLUDE_DIRECTORIES( ${GLCORE_INCLUDE_DIR} )
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
SET(TARGET_NAME ${PLUGIN_NAME} )
|
SET(TARGET_NAME ${PLUGIN_NAME} )
|
||||||
|
|
||||||
#MESSAGE("in -->SETUP_PLUGIN<-- ${TARGET_NAME}-->${TARGET_SRC} <--> ${TARGET_H}<--")
|
#MESSAGE("in -->SETUP_PLUGIN<-- ${TARGET_NAME}-->${TARGET_SRC} <--> ${TARGET_H}<--")
|
||||||
|
|
||||||
@@ -266,34 +128,7 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME)
|
|||||||
SET(TARGET_LABEL "${TARGET_DEFAULT_LABEL_PREFIX} ${TARGET_NAME}")
|
SET(TARGET_LABEL "${TARGET_DEFAULT_LABEL_PREFIX} ${TARGET_NAME}")
|
||||||
ENDIF(NOT TARGET_LABEL)
|
ENDIF(NOT TARGET_LABEL)
|
||||||
|
|
||||||
## plugins gets put in libopenscenegraph by default
|
# here we use the command to generate the library
|
||||||
IF(${ARGC} GREATER 1)
|
|
||||||
SET(PACKAGE_COMPONENT libopenscenegraph-${ARGV1})
|
|
||||||
|
|
||||||
# add cpack config variables for plugin with own package
|
|
||||||
IF(BUILD_OSG_PACKAGES)
|
|
||||||
IF("${CPACK_GENERATOR}" STREQUAL "DEB")
|
|
||||||
STRING(TOUPPER ${PACKAGE_COMPONENT} UPPER_PACKAGE_COMPONENT)
|
|
||||||
SET(CPACK_${UPPER_PACKAGE_COMPONENT}_DEPENDENCIES
|
|
||||||
"libopenscenegraph"
|
|
||||||
CACHE STRING
|
|
||||||
"Dependend packages for the ${PACKAGE_COMPONENT} package with all components (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
SET(CPACK_${UPPER_PACKAGE_COMPONENT}_CONFLICTS
|
|
||||||
""
|
|
||||||
CACHE STRING
|
|
||||||
"Conflicting packages for the ${PACKAGE_COMPONENT} package (uses deb dependecy format), e.g., 'libc6, libcurl3-gnutls, libgif4, libjpeg8, libpng12-0'"
|
|
||||||
)
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
ELSE(${ARGC} GREATER 1)
|
|
||||||
SET(PACKAGE_COMPONENT libopenscenegraph)
|
|
||||||
ENDIF(${ARGC} GREATER 1)
|
|
||||||
|
|
||||||
# Add the VisualStudio versioning info
|
|
||||||
SET(TARGET_SRC ${TARGET_SRC} ${OPENSCENEGRAPH_VERSIONINFO_RC})
|
|
||||||
|
|
||||||
# here we use the command to generate the library
|
|
||||||
|
|
||||||
IF (DYNAMIC_OPENSCENEGRAPH)
|
IF (DYNAMIC_OPENSCENEGRAPH)
|
||||||
ADD_LIBRARY(${TARGET_TARGETNAME} MODULE ${TARGET_SRC} ${TARGET_H})
|
ADD_LIBRARY(${TARGET_TARGETNAME} MODULE ${TARGET_SRC} ${TARGET_H})
|
||||||
@@ -301,62 +136,38 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME)
|
|||||||
ADD_LIBRARY(${TARGET_TARGETNAME} STATIC ${TARGET_SRC} ${TARGET_H})
|
ADD_LIBRARY(${TARGET_TARGETNAME} STATIC ${TARGET_SRC} ${TARGET_H})
|
||||||
ENDIF(DYNAMIC_OPENSCENEGRAPH)
|
ENDIF(DYNAMIC_OPENSCENEGRAPH)
|
||||||
|
|
||||||
IF(MSVC)
|
#not sure if needed, but for plugins only Msvc need the d suffix
|
||||||
IF(NOT CMAKE24)
|
IF(NOT MSVC)
|
||||||
SET_OUTPUT_DIR_PROPERTY_260(${TARGET_TARGETNAME} "${OSG_PLUGINS}") # Sets the ouput to be /osgPlugin-X.X.X ; also ensures the /Debug /Release are removed
|
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES DEBUG_POSTFIX "")
|
||||||
ELSE(NOT CMAKE24)
|
ELSE(NOT MSVC)
|
||||||
|
IF(OSG_MSVC_VERSIONED_DLL)
|
||||||
|
|
||||||
IF(OSG_MSVC_VERSIONED_DLL)
|
#this is a hack... the build place is set to lib/<debug or release> by LIBARARY_OUTPUT_PATH equal to OUTPUT_LIBDIR
|
||||||
|
#the .lib will be crated in ../ so going straight in lib by the IMPORT_PREFIX property
|
||||||
|
#because we want dll placed in OUTPUT_BINDIR ie the bin folder sibling of lib, we can use ../../bin to go there,
|
||||||
|
#it is hardcoded, we should compute OUTPUT_BINDIR position relative to OUTPUT_LIBDIR ... to be implemented
|
||||||
|
#changing bin to something else breaks this hack
|
||||||
|
#the dll are placed in bin/${OSG_PLUGINS}
|
||||||
|
|
||||||
#this is a hack... the build place is set to lib/<debug or release> by LIBARARY_OUTPUT_PATH equal to OUTPUT_LIBDIR
|
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "../../bin/${OSG_PLUGINS}/")
|
||||||
#the .lib will be crated in ../ so going straight in lib by the IMPORT_PREFIX property
|
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES IMPORT_PREFIX "../")
|
||||||
#because we want dll placed in OUTPUT_BINDIR ie the bin folder sibling of lib, we can use ../../bin to go there,
|
ELSE(OSG_MSVC_VERSIONED_DLL)
|
||||||
#it is hardcoded, we should compute OUTPUT_BINDIR position relative to OUTPUT_LIBDIR ... to be implemented
|
|
||||||
#changing bin to something else breaks this hack
|
|
||||||
#the dll are placed in bin/${OSG_PLUGINS}
|
|
||||||
|
|
||||||
IF(NOT MSVC_IDE)
|
#in standard mode (unversioned) the .lib and .dll are placed in lib/<debug or release>/${OSG_PLUGINS}.
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "../bin/${OSG_PLUGINS}/")
|
#here the PREFIX property has been used, the same result would be accomplidhe by prepending ${OSG_PLUGINS}/ to OUTPUT_NAME target property
|
||||||
ELSE(NOT MSVC_IDE)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "../../bin/${OSG_PLUGINS}/" IMPORT_PREFIX "../")
|
|
||||||
ENDIF(NOT MSVC_IDE)
|
|
||||||
|
|
||||||
ELSE(OSG_MSVC_VERSIONED_DLL)
|
|
||||||
|
|
||||||
#in standard mode (unversioned) the .lib and .dll are placed in lib/<debug or release>/${OSG_PLUGINS}.
|
|
||||||
#here the PREFIX property has been used, the same result would be accomplidhe by prepending ${OSG_PLUGINS}/ to OUTPUT_NAME target property
|
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "${OSG_PLUGINS}/")
|
|
||||||
ENDIF(OSG_MSVC_VERSIONED_DLL)
|
|
||||||
|
|
||||||
ENDIF(NOT CMAKE24)
|
|
||||||
ENDIF(MSVC)
|
|
||||||
|
|
||||||
|
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "${OSG_PLUGINS}/")
|
||||||
|
ENDIF(OSG_MSVC_VERSIONED_DLL)
|
||||||
|
ENDIF(NOT MSVC)
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}")
|
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}")
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES FOLDER "Plugins")
|
|
||||||
IF(APPLE)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES XCODE_ATTRIBUTE_WARNING_CFLAGS "")
|
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES XCODE_ATTRIBUTE_ENABLE_BITCODE ${IPHONE_ENABLE_BITCODE})
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
SETUP_LINK_LIBRARIES()
|
SETUP_LINK_LIBRARIES()
|
||||||
|
|
||||||
#the installation path are differentiated for win32 that install in bib versus other architecture that install in lib${LIB_POSTFIX}/${OSG_PLUGINS}
|
#the installation path are differentiated for win32 that install in bib versus other architecture that install in lib${LIB_POSTFIX}/${OSG_PLUGINS}
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
INSTALL(TARGETS ${TARGET_TARGETNAME}
|
INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib/${OSG_PLUGINS} LIBRARY DESTINATION bin/${OSG_PLUGINS} )
|
||||||
RUNTIME DESTINATION bin COMPONENT ${PACKAGE_COMPONENT}
|
|
||||||
ARCHIVE DESTINATION lib/${OSG_PLUGINS} COMPONENT libopenscenegraph-dev
|
|
||||||
LIBRARY DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT})
|
|
||||||
IF(MSVC AND DYNAMIC_OPENSCENEGRAPH)
|
|
||||||
INSTALL(FILES ${OUTPUT_BINDIR}/${OSG_PLUGINS}/${TARGET_TARGETNAME}${CMAKE_RELWITHDEBINFO_POSTFIX}.pdb DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT} CONFIGURATIONS RelWithDebInfo)
|
|
||||||
INSTALL(FILES ${OUTPUT_BINDIR}/${OSG_PLUGINS}/${TARGET_TARGETNAME}${CMAKE_DEBUG_POSTFIX}.pdb DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT} CONFIGURATIONS Debug)
|
|
||||||
ENDIF(MSVC AND DYNAMIC_OPENSCENEGRAPH)
|
|
||||||
ELSE(WIN32)
|
ELSE(WIN32)
|
||||||
INSTALL(TARGETS ${TARGET_TARGETNAME}
|
INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib${LIB_POSTFIX}/${OSG_PLUGINS} LIBRARY DESTINATION lib${LIB_POSTFIX}/${OSG_PLUGINS} )
|
||||||
RUNTIME DESTINATION bin COMPONENT ${PACKAGE_COMPONENT}
|
|
||||||
ARCHIVE DESTINATION lib${LIB_POSTFIX}/${OSG_PLUGINS} COMPONENT libopenscenegraph-dev
|
|
||||||
LIBRARY DESTINATION lib${LIB_POSTFIX}/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT})
|
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
ENDMACRO(SETUP_PLUGIN)
|
ENDMACRO(SETUP_PLUGIN)
|
||||||
|
|
||||||
@@ -367,10 +178,6 @@ ENDMACRO(SETUP_PLUGIN)
|
|||||||
|
|
||||||
MACRO(SETUP_EXE IS_COMMANDLINE_APP)
|
MACRO(SETUP_EXE IS_COMMANDLINE_APP)
|
||||||
#MESSAGE("in -->SETUP_EXE<-- ${TARGET_NAME}-->${TARGET_SRC} <--> ${TARGET_H}<--")
|
#MESSAGE("in -->SETUP_EXE<-- ${TARGET_NAME}-->${TARGET_SRC} <--> ${TARGET_H}<--")
|
||||||
IF(GLCORE_FOUND)
|
|
||||||
INCLUDE_DIRECTORIES( ${GLCORE_INCLUDE_DIR} )
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(NOT TARGET_TARGETNAME)
|
IF(NOT TARGET_TARGETNAME)
|
||||||
SET(TARGET_TARGETNAME "${TARGET_DEFAULT_PREFIX}${TARGET_NAME}")
|
SET(TARGET_TARGETNAME "${TARGET_DEFAULT_PREFIX}${TARGET_NAME}")
|
||||||
ENDIF(NOT TARGET_TARGETNAME)
|
ENDIF(NOT TARGET_TARGETNAME)
|
||||||
@@ -392,8 +199,6 @@ MACRO(SETUP_EXE IS_COMMANDLINE_APP)
|
|||||||
# Bundle version is the version the OS looks at.
|
# Bundle version is the version the OS looks at.
|
||||||
SET(MACOSX_BUNDLE_BUNDLE_VERSION "${OPENSCENEGRAPH_MAJOR_VERSION}.${OPENSCENEGRAPH_MINOR_VERSION}.${OPENSCENEGRAPH_PATCH_VERSION}")
|
SET(MACOSX_BUNDLE_BUNDLE_VERSION "${OPENSCENEGRAPH_MAJOR_VERSION}.${OPENSCENEGRAPH_MINOR_VERSION}.${OPENSCENEGRAPH_PATCH_VERSION}")
|
||||||
SET(MACOSX_BUNDLE_GUI_IDENTIFIER "org.openscenegraph.${TARGET_TARGETNAME}" )
|
SET(MACOSX_BUNDLE_GUI_IDENTIFIER "org.openscenegraph.${TARGET_TARGETNAME}" )
|
||||||
# replace underscore by hyphen
|
|
||||||
STRING(REGEX REPLACE "_" "-" MACOSX_BUNDLE_GUI_IDENTIFIER ${MACOSX_BUNDLE_GUI_IDENTIFIER})
|
|
||||||
SET(MACOSX_BUNDLE_BUNDLE_NAME "${TARGET_NAME}" )
|
SET(MACOSX_BUNDLE_BUNDLE_NAME "${TARGET_NAME}" )
|
||||||
# SET(MACOSX_BUNDLE_ICON_FILE "myicon.icns")
|
# SET(MACOSX_BUNDLE_ICON_FILE "myicon.icns")
|
||||||
# SET(MACOSX_BUNDLE_COPYRIGHT "")
|
# SET(MACOSX_BUNDLE_COPYRIGHT "")
|
||||||
@@ -415,25 +220,12 @@ MACRO(SETUP_EXE IS_COMMANDLINE_APP)
|
|||||||
ADD_EXECUTABLE(${TARGET_TARGETNAME} ${PLATFORM_SPECIFIC_CONTROL} ${TARGET_SRC} ${TARGET_H})
|
ADD_EXECUTABLE(${TARGET_TARGETNAME} ${PLATFORM_SPECIFIC_CONTROL} ${TARGET_SRC} ${TARGET_H})
|
||||||
|
|
||||||
ENDIF(${IS_COMMANDLINE_APP})
|
ENDIF(${IS_COMMANDLINE_APP})
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}")
|
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}")
|
||||||
|
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES OUTPUT_NAME ${TARGET_NAME})
|
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES OUTPUT_NAME ${TARGET_NAME})
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES DEBUG_OUTPUT_NAME "${TARGET_NAME}${CMAKE_DEBUG_POSTFIX}")
|
IF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES RELEASE_OUTPUT_NAME "${TARGET_NAME}${CMAKE_RELEASE_POSTFIX}")
|
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "../")
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES RELWITHDEBINFO_OUTPUT_NAME "${TARGET_NAME}${CMAKE_RELWITHDEBINFO_POSTFIX}")
|
ENDIF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES MINSIZEREL_OUTPUT_NAME "${TARGET_NAME}${CMAKE_MINSIZEREL_POSTFIX}")
|
|
||||||
|
|
||||||
IF(MSVC_IDE AND OSG_MSVC_VERSIONED_DLL)
|
|
||||||
SET_OUTPUT_DIR_PROPERTY_260(${TARGET_TARGETNAME} "") # Ensure the /Debug /Release are removed
|
|
||||||
ENDIF(MSVC_IDE AND OSG_MSVC_VERSIONED_DLL)
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES XCODE_ATTRIBUTE_WARNING_CFLAGS "")
|
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE)
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES XCODE_ATTRIBUTE_ENABLE_BITCODE ${IPHONE_ENABLE_BITCODE})
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
SETUP_LINK_LIBRARIES()
|
SETUP_LINK_LIBRARIES()
|
||||||
|
|
||||||
ENDMACRO(SETUP_EXE)
|
ENDMACRO(SETUP_EXE)
|
||||||
@@ -451,17 +243,7 @@ MACRO(SETUP_APPLICATION APPLICATION_NAME)
|
|||||||
|
|
||||||
SETUP_EXE(${IS_COMMANDLINE_APP})
|
SETUP_EXE(${IS_COMMANDLINE_APP})
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES FOLDER "Applications")
|
INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin )
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin BUNDLE DESTINATION bin)
|
|
||||||
ELSE(APPLE)
|
|
||||||
INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin COMPONENT openscenegraph )
|
|
||||||
IF(MSVC)
|
|
||||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/bin/${TARGET_NAME}${CMAKE_RELWITHDEBINFO_POSTFIX}.pdb DESTINATION bin COMPONENT openscenegraph CONFIGURATIONS RelWithDebInfo)
|
|
||||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/bin/${TARGET_NAME}${CMAKE_DEBUG_POSTFIX}.pdb DESTINATION bin COMPONENT openscenegraph CONFIGURATIONS Debug)
|
|
||||||
ENDIF(MSVC)
|
|
||||||
ENDIF(APPLE)
|
|
||||||
|
|
||||||
ENDMACRO(SETUP_APPLICATION)
|
ENDMACRO(SETUP_APPLICATION)
|
||||||
|
|
||||||
@@ -484,17 +266,7 @@ MACRO(SETUP_EXAMPLE EXAMPLE_NAME)
|
|||||||
|
|
||||||
SETUP_EXE(${IS_COMMANDLINE_APP})
|
SETUP_EXE(${IS_COMMANDLINE_APP})
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES FOLDER "Examples")
|
INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION share/OpenSceneGraph/bin )
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION share/OpenSceneGraph/bin BUNDLE DESTINATION share/OpenSceneGraph/bin )
|
|
||||||
ELSE(APPLE)
|
|
||||||
INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION share/OpenSceneGraph/bin COMPONENT openscenegraph-examples )
|
|
||||||
IF(MSVC)
|
|
||||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/bin/${TARGET_NAME}${CMAKE_RELWITHDEBINFO_POSTFIX}.pdb DESTINATION share/OpenSceneGraph/bin COMPONENT openscenegraph-examples CONFIGURATIONS RelWithDebInfo)
|
|
||||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/bin/${TARGET_NAME}${CMAKE_DEBUG_POSTFIX}.pdb DESTINATION share/OpenSceneGraph/bin COMPONENT openscenegraph-examples CONFIGURATIONS Debug)
|
|
||||||
ENDIF(MSVC)
|
|
||||||
ENDIF(APPLE)
|
|
||||||
|
|
||||||
ENDMACRO(SETUP_EXAMPLE)
|
ENDMACRO(SETUP_EXAMPLE)
|
||||||
|
|
||||||
@@ -507,12 +279,12 @@ ENDMACRO(SETUP_COMMANDLINE_EXAMPLE)
|
|||||||
|
|
||||||
# Takes two optional arguments -- osg prefix and osg version
|
# Takes two optional arguments -- osg prefix and osg version
|
||||||
MACRO(HANDLE_MSVC_DLL)
|
MACRO(HANDLE_MSVC_DLL)
|
||||||
#this is a hack... the build place is set to lib/<debug or release> by LIBARARY_OUTPUT_PATH equal to OUTPUT_LIBDIR
|
#this is a hack... the build place is set to lib/<debug or release> by LIBARARY_OUTPUT_PATH equal to OUTPUT_LIBDIR
|
||||||
#the .lib will be crated in ../ so going straight in lib by the IMPORT_PREFIX property
|
#the .lib will be crated in ../ so going straight in lib by the IMPORT_PREFIX property
|
||||||
#because we want dll placed in OUTPUT_BINDIR ie the bin folder sibling of lib, we can use ../../bin to go there,
|
#because we want dll placed in OUTPUT_BINDIR ie the bin folder sibling of lib, we can use ../../bin to go there,
|
||||||
#it is hardcoded, we should compute OUTPUT_BINDIR position relative to OUTPUT_LIBDIR ... to be implemented
|
#it is hardcoded, we should compute OUTPUT_BINDIR position relative to OUTPUT_LIBDIR ... to be implemented
|
||||||
#changing bin to something else breaks this hack
|
#changing bin to something else breaks this hack
|
||||||
#the dll are versioned by prefixing the name with osg${OPENSCENEGRAPH_SOVERSION}-
|
#the dll are versioned by prefixing the name with osg${OPENSCENEGRAPH_SOVERSION}-
|
||||||
|
|
||||||
# LIB_PREFIX: use "osg" by default, else whatever we've been given.
|
# LIB_PREFIX: use "osg" by default, else whatever we've been given.
|
||||||
IF(${ARGC} GREATER 0)
|
IF(${ARGC} GREATER 0)
|
||||||
@@ -528,46 +300,9 @@ MACRO(HANDLE_MSVC_DLL)
|
|||||||
SET(LIB_SOVERSION ${OPENSCENEGRAPH_SOVERSION})
|
SET(LIB_SOVERSION ${OPENSCENEGRAPH_SOVERSION})
|
||||||
ENDIF(${ARGC} GREATER 1)
|
ENDIF(${ARGC} GREATER 1)
|
||||||
|
|
||||||
SET_OUTPUT_DIR_PROPERTY_260(${LIB_NAME} "") # Ensure the /Debug /Release are removed
|
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "../../bin/${LIB_PREFIX}${LIB_SOVERSION}-")
|
||||||
IF(NOT MSVC_IDE)
|
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES IMPORT_PREFIX "../")
|
||||||
IF (NOT CMAKE24)
|
|
||||||
BUILDER_VERSION_GREATER(2 8 0)
|
|
||||||
IF(NOT VALID_BUILDER_VERSION)
|
|
||||||
# If CMake < 2.8.1
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "../bin/${LIB_PREFIX}${LIB_SOVERSION}-" IMPORT_PREFIX "../")
|
|
||||||
ELSE(NOT VALID_BUILDER_VERSION)
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "${LIB_PREFIX}${LIB_SOVERSION}-")
|
|
||||||
ENDIF(NOT VALID_BUILDER_VERSION)
|
|
||||||
ELSE (NOT CMAKE24)
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "../bin/${LIB_PREFIX}${LIB_SOVERSION}-" IMPORT_PREFIX "../")
|
|
||||||
SET(NEW_LIB_NAME "${OUTPUT_BINDIR}/${LIB_PREFIX}${LIB_SOVERSION}-${LIB_NAME}")
|
|
||||||
ADD_CUSTOM_COMMAND(
|
|
||||||
TARGET ${LIB_NAME}
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy "${NEW_LIB_NAME}.lib" "${OUTPUT_LIBDIR}/${LIB_NAME}.lib"
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy "${NEW_LIB_NAME}.exp" "${OUTPUT_LIBDIR}/${LIB_NAME}.exp"
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E remove "${NEW_LIB_NAME}.lib"
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E remove "${NEW_LIB_NAME}.exp"
|
|
||||||
)
|
|
||||||
ENDIF (NOT CMAKE24)
|
|
||||||
ELSE(NOT MSVC_IDE)
|
|
||||||
IF (NOT CMAKE24)
|
|
||||||
BUILDER_VERSION_GREATER(2 8 0)
|
|
||||||
IF(NOT VALID_BUILDER_VERSION)
|
|
||||||
# If CMake < 2.8.1
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "../../bin/${LIB_PREFIX}${LIB_SOVERSION}-" IMPORT_PREFIX "../")
|
|
||||||
ELSE(NOT VALID_BUILDER_VERSION)
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "${LIB_PREFIX}${LIB_SOVERSION}-")
|
|
||||||
ENDIF(NOT VALID_BUILDER_VERSION)
|
|
||||||
ELSE (NOT CMAKE24)
|
|
||||||
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "../../bin/${LIB_PREFIX}${LIB_SOVERSION}-" IMPORT_PREFIX "../")
|
|
||||||
ENDIF (NOT CMAKE24)
|
|
||||||
ENDIF(NOT MSVC_IDE)
|
|
||||||
|
|
||||||
# SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "../../bin/osg${OPENSCENEGRAPH_SOVERSION}-")
|
# SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "../../bin/osg${OPENSCENEGRAPH_SOVERSION}-")
|
||||||
# SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES IMPORT_PREFIX "../")
|
# SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES IMPORT_PREFIX "../")
|
||||||
ENDMACRO(HANDLE_MSVC_DLL)
|
ENDMACRO(HANDLE_MSVC_DLL)
|
||||||
|
|
||||||
MACRO(REMOVE_CXX_FLAG flag)
|
|
||||||
STRING(REPLACE "${flag}" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
||||||
ENDMACRO()
|
|
||||||
|
|||||||
@@ -1,220 +1,180 @@
|
|||||||
|
|
||||||
INCLUDE(ListHandle)
|
INCLUDE(ListHandle)
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Macro: FILTER_OUT FILTERS INPUTS OUTPUT
|
|
||||||
#
|
|
||||||
# Mimicks Gnu Make's $(filter-out) which removes elements
|
|
||||||
# from a list that match the pattern.
|
|
||||||
# Arguments:
|
|
||||||
# FILTERS - list of patterns that need to be removed
|
|
||||||
# INPUTS - list of inputs that will be worked on
|
|
||||||
# OUTPUT - the filtered list to be returned
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# SET(MYLIST this that and the other)
|
|
||||||
# SET(FILTS this that)
|
|
||||||
#
|
|
||||||
# FILTER_OUT("${FILTS}" "${MYLIST}" OUT)
|
|
||||||
# MESSAGE("OUTPUT = ${OUT}")
|
|
||||||
#
|
|
||||||
# The output -
|
|
||||||
# OUTPUT = and;the;other
|
|
||||||
#
|
|
||||||
#---------------------------------------------------
|
|
||||||
MACRO(FILTER_OUT FILTERS INPUTS OUTPUT)
|
|
||||||
SET(FOUT "")
|
|
||||||
FOREACH(INP ${INPUTS})
|
|
||||||
SET(FILTERED 0)
|
|
||||||
|
|
||||||
FOREACH(FILT ${FILTERS})
|
MACRO(FILTER_OUT FILTERS INPUTS OUTPUT)
|
||||||
IF(${FILTERED} EQUAL 0)
|
# Mimicks Gnu Make's $(filter-out) which removes elements
|
||||||
IF("${FILT}" STREQUAL "${INP}")
|
# from a list that match the pattern.
|
||||||
SET(FILTERED 1)
|
# Arguments:
|
||||||
ENDIF()
|
# FILTERS - list of patterns that need to be removed
|
||||||
ENDIF()
|
# INPUTS - list of inputs that will be worked on
|
||||||
ENDFOREACH()
|
# OUTPUT - the filtered list to be returned
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# SET(MYLIST this that and the other)
|
||||||
|
# SET(FILTS this that)
|
||||||
|
#
|
||||||
|
# FILTER_OUT("${FILTS}" "${MYLIST}" OUT)
|
||||||
|
# MESSAGE("OUTPUT = ${OUT}")
|
||||||
|
#
|
||||||
|
# The output -
|
||||||
|
# OUTPUT = and;the;other
|
||||||
|
#
|
||||||
|
SET(FOUT "")
|
||||||
|
FOREACH(INP ${INPUTS})
|
||||||
|
SET(FILTERED 0)
|
||||||
|
FOREACH(FILT ${FILTERS})
|
||||||
|
IF(${FILTERED} EQUAL 0)
|
||||||
|
IF("${FILT}" STREQUAL "${INP}")
|
||||||
|
SET(FILTERED 1)
|
||||||
|
ENDIF("${FILT}" STREQUAL "${INP}")
|
||||||
|
ENDIF(${FILTERED} EQUAL 0)
|
||||||
|
ENDFOREACH(FILT ${FILTERS})
|
||||||
|
IF(${FILTERED} EQUAL 0)
|
||||||
|
SET(FOUT ${FOUT} ${INP})
|
||||||
|
ENDIF(${FILTERED} EQUAL 0)
|
||||||
|
ENDFOREACH(INP ${INPUTS})
|
||||||
|
SET(${OUTPUT} ${FOUT})
|
||||||
|
ENDMACRO(FILTER_OUT FILTERS INPUTS OUTPUT)
|
||||||
|
|
||||||
IF(${FILTERED} EQUAL 0)
|
|
||||||
SET(FOUT ${FOUT} ${INP})
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDFOREACH(INP ${INPUTS})
|
MACRO(GET_HEADERS_EXTENSIONLESS DIR GLOB_PATTERN OUTPUT)
|
||||||
SET(${OUTPUT} ${FOUT})
|
FILE(GLOB TMP "${DIR}/${GLOB_PATTERN}" )
|
||||||
ENDMACRO()
|
#FOREACH(F ${TMP})
|
||||||
|
# MESSAGE(STATUS "header-->${F}<--")
|
||||||
#---------------------------------------------------
|
#ENDFOREACH(F ${TMP})
|
||||||
# Macro: GET_HEADERS_EXTENSIONLESS DIR GLOB_PATTERN OUTPUT
|
FILTER_OUT("${DIR}/CVS" "${TMP}" TMP)
|
||||||
#
|
FILTER_OUT("${DIR}/cvs" "${TMP}" ${OUTPUT})
|
||||||
#---------------------------------------------------
|
FILTER_OUT("${DIR}/.svn" "${TMP}" ${OUTPUT})
|
||||||
MACRO(GET_HEADERS_EXTENSIONLESS DIR GLOB_PATTERN OUTPUT)
|
ENDMACRO(GET_HEADERS_EXTENSIONLESS DIR GLOB_PATTERN OUTPUT)
|
||||||
FILE(GLOB TMP "${DIR}/${GLOB_PATTERN}" )
|
|
||||||
#FOREACH(F ${TMP})
|
|
||||||
# MESSAGE(STATUS "header-->${F}<--")
|
|
||||||
#ENDFOREACH(F ${TMP})
|
|
||||||
FILTER_OUT("${DIR}/CVS" "${TMP}" TMP)
|
|
||||||
FILTER_OUT("${DIR}/cvs" "${TMP}" ${OUTPUT})
|
|
||||||
FILTER_OUT("${DIR}/.svn" "${TMP}" ${OUTPUT})
|
|
||||||
ENDMACRO()
|
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Macro: ADD_DIRS_TO_ENV_VAR _VARNAME
|
|
||||||
#
|
|
||||||
#---------------------------------------------------
|
|
||||||
|
|
||||||
MACRO(ADD_DIRS_TO_ENV_VAR _VARNAME )
|
MACRO(ADD_DIRS_TO_ENV_VAR _VARNAME )
|
||||||
FOREACH(_ADD_PATH ${ARGN})
|
FOREACH(_ADD_PATH ${ARGN})
|
||||||
FILE(TO_NATIVE_PATH ${_ADD_PATH} _ADD_NATIVE)
|
FILE(TO_NATIVE_PATH ${_ADD_PATH} _ADD_NATIVE)
|
||||||
#SET(_CURR_ENV_PATH $ENV{PATH})
|
#SET(_CURR_ENV_PATH $ENV{PATH})
|
||||||
#LIST(SET _CURR_ENV_PATH ${_ADD_PATH})
|
#LIST(SET _CURR_ENV_PATH ${_ADD_PATH})
|
||||||
#SET(ENV{PATH} ${_CURR_ENV_PATH})${_FILE}
|
#SET(ENV{PATH} ${_CURR_ENV_PATH})${_FILE}
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
SET(ENV{${_VARNAME}} "$ENV{${_VARNAME}};${_ADD_NATIVE}")
|
SET(ENV{${_VARNAME}} "$ENV{${_VARNAME}};${_ADD_NATIVE}")
|
||||||
ELSE()
|
ELSE(WIN32)
|
||||||
SET(ENV{${_VARNAME}} "$ENV{${_VARNAME}}:${_ADD_NATIVE}")
|
SET(ENV{${_VARNAME}} "$ENV{${_VARNAME}}:${_ADD_NATIVE}")
|
||||||
ENDIF()
|
ENDIF(WIN32)
|
||||||
#MESSAGE(" env ${_VARNAME} --->$ENV{${_VARNAME}}<---")
|
#MESSAGE(" env ${_VARNAME} --->$ENV{${_VARNAME}}<---")
|
||||||
ENDFOREACH()
|
ENDFOREACH(_ADD_PATH)
|
||||||
ENDMACRO()
|
ENDMACRO(ADD_DIRS_TO_ENV_VAR _VARNAME )
|
||||||
|
|
||||||
#---------------------------------------------------
|
#---------------------------------------------------
|
||||||
# Macro: CORRECT_PATH VAR PATH
|
# MACRO CORRECT_PATH VAR PATH
|
||||||
#
|
# corrects slashes in PATH to be cmake conformous ( / )
|
||||||
# Corrects slashes in PATH to be cmake conformous ( / )
|
|
||||||
# and puts result in VAR
|
# and puts result in VAR
|
||||||
#---------------------------------------------------
|
#---------------------------------------------------
|
||||||
|
|
||||||
MACRO(CORRECT_PATH VAR PATH)
|
MACRO(CORRECT_PATH VAR PATH)
|
||||||
SET(${VAR} ${PATH})
|
SET(${VAR} ${PATH})
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
STRING(REGEX REPLACE "/" "\\\\" ${VAR} "${PATH}")
|
STRING(REGEX REPLACE "/" "\\\\" ${VAR} "${PATH}")
|
||||||
ENDIF()
|
ENDIF(WIN32)
|
||||||
ENDMACRO()
|
ENDMACRO(CORRECT_PATH)
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Macro: TARGET_LOCATIONS_SET_FILE FILE
|
|
||||||
# TODO: Ok, this seems a bit ridiculuous.
|
|
||||||
#---------------------------------------------------
|
|
||||||
|
|
||||||
MACRO(TARGET_LOCATIONS_SET_FILE FILE)
|
MACRO(TARGET_LOCATIONS_SET_FILE FILE)
|
||||||
SET(ACCUM_FILE_TARGETS ${FILE})
|
SET(ACCUM_FILE_TARGETS ${FILE})
|
||||||
FILE(WRITE ${ACCUM_FILE_TARGETS} "")
|
FILE(WRITE ${ACCUM_FILE_TARGETS} "")
|
||||||
ENDMACRO()
|
ENDMACRO(TARGET_LOCATIONS_SET_FILE FILE)
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Macro: TARGET_LOCATIONS_ACCUM TARGET_NAME
|
|
||||||
#
|
|
||||||
#---------------------------------------------------
|
|
||||||
|
|
||||||
MACRO(TARGET_LOCATIONS_ACCUM TARGET_NAME)
|
MACRO(TARGET_LOCATIONS_ACCUM TARGET_NAME)
|
||||||
IF(ACCUM_FILE_TARGETS)
|
IF(ACCUM_FILE_TARGETS)
|
||||||
IF(EXISTS ${ACCUM_FILE_TARGETS})
|
IF(EXISTS ${ACCUM_FILE_TARGETS})
|
||||||
GET_TARGET_PROPERTY(_FILE_LOCATION ${TARGET_NAME} LOCATION)
|
GET_TARGET_PROPERTY(_FILE_LOCATION ${TARGET_NAME} LOCATION)
|
||||||
FILE(APPEND ${ACCUM_FILE_TARGETS} "${_FILE_LOCATION};")
|
FILE(APPEND ${ACCUM_FILE_TARGETS} "${_FILE_LOCATION};")
|
||||||
#SET(_TARGETS_LIST ${_TARGETS_LIST} "${_FILE_LOCATION}" CACHE INTERNAL "lista dll")
|
#SET(_TARGETS_LIST ${_TARGETS_LIST} "${_FILE_LOCATION}" CACHE INTERNAL "lista dll")
|
||||||
#MESSAGE("adding target -->${TARGET_NAME}<-- file -->${_FILE_LOCATION}<-- to list -->${_TARGETS_LIST}<--")
|
#MESSAGE("adding target -->${TARGET_NAME}<-- file -->${_FILE_LOCATION}<-- to list -->${_TARGETS_LIST}<--")
|
||||||
#SET(ACCUM_FILE_TARGETS ${ACCUM_FILE_TARGETS} ${_FILE_LOCATION})
|
#SET(ACCUM_FILE_TARGETS ${ACCUM_FILE_TARGETS} ${_FILE_LOCATION})
|
||||||
ENDIF()
|
ENDIF(EXISTS ${ACCUM_FILE_TARGETS})
|
||||||
ENDIF()
|
ENDIF(ACCUM_FILE_TARGETS)
|
||||||
ENDMACRO()
|
ENDMACRO(TARGET_LOCATIONS_ACCUM TARGET_NAME)
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Macro: TARGET_LOCATIONS_GET_LIST _VAR
|
|
||||||
#
|
|
||||||
#---------------------------------------------------
|
|
||||||
|
|
||||||
MACRO(TARGET_LOCATIONS_GET_LIST _VAR)
|
MACRO(TARGET_LOCATIONS_GET_LIST _VAR)
|
||||||
IF(ACCUM_FILE_TARGETS)
|
IF(ACCUM_FILE_TARGETS)
|
||||||
IF(EXISTS ${ACCUM_FILE_TARGETS})
|
IF(EXISTS ${ACCUM_FILE_TARGETS})
|
||||||
FILE(READ ${ACCUM_FILE_TARGETS} ${_VAR})
|
FILE(READ ${ACCUM_FILE_TARGETS} ${_VAR})
|
||||||
ENDIF(EXISTS ${ACCUM_FILE_TARGETS})
|
ENDIF(EXISTS ${ACCUM_FILE_TARGETS})
|
||||||
ENDIF()
|
ENDIF(ACCUM_FILE_TARGETS)
|
||||||
ENDMACRO()
|
ENDMACRO(TARGET_LOCATIONS_GET_LIST _VAR)
|
||||||
|
|
||||||
#---------------------------------------------------
|
|
||||||
# Macro: FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY SEARCHPATHLIST
|
|
||||||
#
|
|
||||||
#---------------------------------------------------
|
|
||||||
|
|
||||||
MACRO(FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY SEARCHPATHLIST)
|
MACRO(FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY SEARCHPATHLIST)
|
||||||
MESSAGE(STATUS "searching ${DEPNAME} -->${INCLUDEFILE}<-->${LIBRARY}<-->${SEARCHPATHLIST}<--")
|
|
||||||
|
|
||||||
SET(MY_PATH_INCLUDE )
|
MESSAGE(STATUS "searching ${DEPNAME} -->${INCLUDEFILE}<-->${LIBRARY}<-->${SEARCHPATHLIST}<--")
|
||||||
SET(MY_PATH_LIB )
|
|
||||||
SET(MY_PATH_BIN )
|
|
||||||
|
|
||||||
FOREACH( MYPATH ${SEARCHPATHLIST} )
|
SET(MY_PATH_INCLUDE )
|
||||||
SET(MY_PATH_INCLUDE ${MY_PATH_INCLUDE} ${MYPATH}/include)
|
SET(MY_PATH_LIB )
|
||||||
SET(MY_PATH_LIB ${MY_PATH_LIB} ${MYPATH}/lib)
|
SET(MY_PATH_BIN )
|
||||||
SET(MY_PATH_BIN ${MY_PATH_BIN} ${MYPATH}/bin)
|
|
||||||
ENDFOREACH()
|
|
||||||
|
|
||||||
SET(MYLIBRARY "${LIBRARY}")
|
FOREACH( MYPATH ${SEARCHPATHLIST} )
|
||||||
SEPARATE_ARGUMENTS(MYLIBRARY)
|
SET(MY_PATH_INCLUDE ${MY_PATH_INCLUDE} ${MYPATH}/include)
|
||||||
|
SET(MY_PATH_LIB ${MY_PATH_LIB} ${MYPATH}/lib)
|
||||||
|
SET(MY_PATH_BIN ${MY_PATH_BIN} ${MYPATH}/bin)
|
||||||
|
ENDFOREACH( MYPATH ${SEARCHPATHLIST} )
|
||||||
|
|
||||||
#MESSAGE( " include paths: -->${MY_PATH_INCLUDE}<--")
|
SET(MYLIBRARY "${LIBRARY}")
|
||||||
|
SEPARATE_ARGUMENTS(MYLIBRARY)
|
||||||
|
|
||||||
#MESSAGE( " ${DEPNAME}_INCLUDE_DIR --> ${${DEPNAME}_INCLUDE_DIR}<--")
|
#MESSAGE( " include paths: -->${MY_PATH_INCLUDE}<--")
|
||||||
|
|
||||||
FIND_PATH("${DEPNAME}_INCLUDE_DIR" ${INCLUDEFILE}
|
#MESSAGE( " ${DEPNAME}_INCLUDE_DIR --> ${${DEPNAME}_INCLUDE_DIR}<--")
|
||||||
${MY_PATH_INCLUDE}
|
|
||||||
)
|
|
||||||
MARK_AS_ADVANCED("${DEPNAME}_INCLUDE_DIR")
|
|
||||||
#MESSAGE( " ${DEPNAME}_INCLUDE_DIR --> ${${DEPNAME}_INCLUDE_DIR}<--")
|
|
||||||
|
|
||||||
FIND_LIBRARY("${DEPNAME}_LIBRARY"
|
FIND_PATH("${DEPNAME}_INCLUDE_DIR" ${INCLUDEFILE}
|
||||||
NAMES ${MYLIBRARY}
|
${MY_PATH_INCLUDE}
|
||||||
PATHS ${MY_PATH_LIB}
|
)
|
||||||
)
|
MARK_AS_ADVANCED("${DEPNAME}_INCLUDE_DIR")
|
||||||
IF(${DEPNAME}_LIBRARY)
|
#MESSAGE( " ${DEPNAME}_INCLUDE_DIR --> ${${DEPNAME}_INCLUDE_DIR}<--")
|
||||||
GET_FILENAME_COMPONENT(MYLIBNAME ${${DEPNAME}_LIBRARY} NAME_WE)
|
|
||||||
GET_FILENAME_COMPONENT(MYBINPATH ${${DEPNAME}_LIBRARY} PATH)
|
|
||||||
GET_FILENAME_COMPONENT(MYBINPATH ${MYBINPATH} PATH)
|
|
||||||
SET(MYBINPATH "${MYBINPATH}/bin")
|
|
||||||
IF(EXISTS ${MYBINPATH})
|
|
||||||
SET(MYFOUND 0)
|
|
||||||
FOREACH(MYPATH ${MY_ACCUM_BINARY_DEP})
|
|
||||||
IF(MYPATH MATCHES ${MYBINPATH})
|
|
||||||
SET(MYFOUND 1)
|
|
||||||
#MESSAGE("found -->${MYPATH}<-->${MYBINPATH}<--")
|
|
||||||
ENDIF()
|
|
||||||
ENDFOREACH()
|
|
||||||
IF(MYFOUND EQUAL 0)
|
|
||||||
SET(MY_ACCUM_BINARY_DEP ${MY_ACCUM_BINARY_DEP} ${MYBINPATH})
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
|
||||||
#MESSAGE("${DEPNAME}_BINDEP searching -->${MYLIBNAME}${CMAKE_SHARED_MODULE_SUFFIX}<--in-->${MY_PATH_BIN}<--")
|
|
||||||
# FIND_FILE("${DEPNAME}_BINDEP"
|
|
||||||
# ${MYLIBNAME}${CMAKE_SHARED_MODULE_SUFFIX}
|
|
||||||
# PATHS ${MY_PATH_BIN}
|
|
||||||
# )
|
|
||||||
# FIND_LIBRARY("${DEPNAME}_BINDEP"
|
|
||||||
# NAMES ${MYLIBRARY}
|
|
||||||
# PATHS ${MY_PATH_BIN}
|
|
||||||
# )
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED("${DEPNAME}_LIBRARY")
|
FIND_LIBRARY("${DEPNAME}_LIBRARY"
|
||||||
#MESSAGE( " ${DEPNAME}_LIBRARY --> ${${DEPNAME}_LIBRARY}<--")
|
NAMES ${MYLIBRARY}
|
||||||
IF(${DEPNAME}_INCLUDE_DIR)
|
PATHS ${MY_PATH_LIB}
|
||||||
IF(${DEPNAME}_LIBRARY)
|
)
|
||||||
SET( ${DEPNAME}_FOUND "YES" )
|
IF(${DEPNAME}_LIBRARY)
|
||||||
SET( ${DEPNAME}_LIBRARIES ${${DEPNAME}_LIBRARY} )
|
GET_FILENAME_COMPONENT(MYLIBNAME ${${DEPNAME}_LIBRARY} NAME_WE)
|
||||||
ENDIF()
|
GET_FILENAME_COMPONENT(MYBINPATH ${${DEPNAME}_LIBRARY} PATH)
|
||||||
ENDIF()
|
GET_FILENAME_COMPONENT(MYBINPATH ${MYBINPATH} PATH)
|
||||||
ENDMACRO()
|
SET(MYBINPATH "${MYBINPATH}/bin")
|
||||||
|
IF(EXISTS ${MYBINPATH})
|
||||||
#---------------------------------------------------
|
SET(MYFOUND 0)
|
||||||
# Macro: MACRO_MESSAGE MYTEXT
|
FOREACH(MYPATH ${MY_ACCUM_BINARY_DEP})
|
||||||
#
|
IF(MYPATH MATCHES ${MYBINPATH})
|
||||||
#---------------------------------------------------
|
SET(MYFOUND 1)
|
||||||
|
#MESSAGE("found -->${MYPATH}<-->${MYBINPATH}<--")
|
||||||
|
ENDIF(MYPATH MATCHES ${MYBINPATH})
|
||||||
|
ENDFOREACH(MYPATH )
|
||||||
|
IF(MYFOUND EQUAL 0)
|
||||||
|
SET(MY_ACCUM_BINARY_DEP ${MY_ACCUM_BINARY_DEP} ${MYBINPATH})
|
||||||
|
ENDIF(MYFOUND EQUAL 0)
|
||||||
|
ENDIF(EXISTS ${MYBINPATH})
|
||||||
|
#MESSAGE("${DEPNAME}_BINDEP searching -->${MYLIBNAME}${CMAKE_SHARED_MODULE_SUFFIX}<--in-->${MY_PATH_BIN}<--")
|
||||||
|
# FIND_FILE("${DEPNAME}_BINDEP"
|
||||||
|
# ${MYLIBNAME}${CMAKE_SHARED_MODULE_SUFFIX}
|
||||||
|
# PATHS ${MY_PATH_BIN}
|
||||||
|
# )
|
||||||
|
# FIND_LIBRARY("${DEPNAME}_BINDEP"
|
||||||
|
# NAMES ${MYLIBRARY}
|
||||||
|
# PATHS ${MY_PATH_BIN}
|
||||||
|
# )
|
||||||
|
ENDIF(${DEPNAME}_LIBRARY)
|
||||||
|
MARK_AS_ADVANCED("${DEPNAME}_LIBRARY")
|
||||||
|
#MESSAGE( " ${DEPNAME}_LIBRARY --> ${${DEPNAME}_LIBRARY}<--")
|
||||||
|
IF(${DEPNAME}_INCLUDE_DIR)
|
||||||
|
IF(${DEPNAME}_LIBRARY)
|
||||||
|
SET( ${DEPNAME}_FOUND "YES" )
|
||||||
|
SET( ${DEPNAME}_LIBRARIES ${${DEPNAME}_LIBRARY} )
|
||||||
|
ENDIF(${DEPNAME}_LIBRARY)
|
||||||
|
ENDIF(${DEPNAME}_INCLUDE_DIR)
|
||||||
|
ENDMACRO(FIND_DEPENDENCY DEPNAME INCLUDEFILE LIBRARY SEARCHPATHLIST)
|
||||||
|
|
||||||
#SET(MACRO_MESSAGE_DEBUG TRUE)
|
#SET(MACRO_MESSAGE_DEBUG TRUE)
|
||||||
MACRO(MACRO_MESSAGE MYTEXT)
|
MACRO(MACRO_MESSAGE MYTEXT)
|
||||||
IF(MACRO_MESSAGE_DEBUG)
|
IF(MACRO_MESSAGE_DEBUG)
|
||||||
MESSAGE("in file -->${CMAKE_CURRENT_LIST_FILE}<-- line -->${CMAKE_CURRENT_LIST_LINE}<-- message ${MYTEXT}")
|
MESSAGE("in file -->${CMAKE_CURRENT_LIST_FILE}<-- line -->${CMAKE_CURRENT_LIST_LINE}<-- message ${MYTEXT}")
|
||||||
ELSE()
|
ELSE(MACRO_MESSAGE_DEBUG)
|
||||||
MESSAGE(STATUS "in file -->${CMAKE_CURRENT_LIST_FILE}<-- line -->${CMAKE_CURRENT_LIST_LINE}<-- message ${MYTEXT}")
|
MESSAGE(STATUS "in file -->${CMAKE_CURRENT_LIST_FILE}<-- line -->${CMAKE_CURRENT_LIST_LINE}<-- message ${MYTEXT}")
|
||||||
ENDIF()
|
ENDIF(MACRO_MESSAGE_DEBUG)
|
||||||
ENDMACRO()
|
ENDMACRO(MACRO_MESSAGE MYTEXT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
find . -name Makefile | xargs rm -rf
|
|
||||||
find . -name cmake_install.cmake | xargs rm -rf
|
|
||||||
find . -name CMakeFiles | xargs rm -rf
|
|
||||||
rm -rf CMakeCache.txt cmake_uninstall.cmake install_manifest.txt
|
|
||||||
rm -rf lib bin
|
|
||||||
|
|
||||||
@@ -1,31 +1,22 @@
|
|||||||
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
||||||
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
|
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
|
||||||
ENDIF()
|
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
||||||
|
|
||||||
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
|
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
|
||||||
STRING(REGEX REPLACE "\n" ";" files "${files}")
|
STRING(REGEX REPLACE "\n" ";" files "${files}")
|
||||||
|
|
||||||
FOREACH(file ${files})
|
FOREACH(file ${files})
|
||||||
MESSAGE(STATUS "Uninstalling \"${file}\"")
|
MESSAGE(STATUS "Uninstalling \"${file}\"")
|
||||||
IF(EXISTS "${file}")
|
IF(EXISTS "${file}")
|
||||||
EXEC_PROGRAM(
|
EXEC_PROGRAM(
|
||||||
"@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
|
"@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
|
||||||
OUTPUT_VARIABLE rm_out
|
OUTPUT_VARIABLE rm_out
|
||||||
RETURN_VALUE rm_retval
|
RETURN_VALUE rm_retval
|
||||||
)
|
)
|
||||||
IF(NOT "${rm_retval}" STREQUAL 0)
|
IF("${rm_retval}" STREQUAL 0)
|
||||||
MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
|
ELSE("${rm_retval}" STREQUAL 0)
|
||||||
ENDIF()
|
MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
|
||||||
ELSEIF(IS_SYMLINK "${file}")
|
ENDIF("${rm_retval}" STREQUAL 0)
|
||||||
EXEC_PROGRAM(
|
ELSE(EXISTS "${file}")
|
||||||
"@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
|
MESSAGE(STATUS "File \"${file}\" does not exist.")
|
||||||
OUTPUT_VARIABLE rm_out
|
ENDIF(EXISTS "${file}")
|
||||||
RETURN_VALUE rm_retval
|
ENDFOREACH(file)
|
||||||
)
|
|
||||||
IF(NOT "${rm_retval}" STREQUAL 0)
|
|
||||||
MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
|
|
||||||
ENDIF()
|
|
||||||
ELSE()
|
|
||||||
MESSAGE(STATUS "File \"${file}\" does not exist.")
|
|
||||||
ENDIF()
|
|
||||||
ENDFOREACH()
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
## This file should be placed in the root directory of your project.
|
|
||||||
## Then modify the CMakeLists.txt file in the root directory of your
|
|
||||||
## project to incorporate the testing dashboard.
|
|
||||||
## # The following are required to uses Dart and the Cdash dashboard
|
|
||||||
## ENABLE_TESTING()
|
|
||||||
## INCLUDE(Dart)
|
|
||||||
set(CTEST_PROJECT_NAME "OpenSceneGraph")
|
|
||||||
set(CTEST_NIGHTLY_START_TIME "00:00:00 CET")
|
|
||||||
|
|
||||||
set(CTEST_DROP_METHOD "http")
|
|
||||||
set(CTEST_DROP_SITE "cdash.openscenegraph.org")
|
|
||||||
set(CTEST_DROP_LOCATION "/submit.php?project=OpenSceneGraph")
|
|
||||||
set(CTEST_DROP_SITE_CDASH TRUE)
|
|
||||||
60
LICENSE.txt
@@ -1,7 +1,7 @@
|
|||||||
OpenSceneGraph Public License, Version 1.0
|
OpenSceneGraph Public License, Version 0.0
|
||||||
==========================================
|
==========================================
|
||||||
|
|
||||||
Copyright (C) 2018 Robert Osfield.
|
Copyright (C) 2002 Robert Osfield.
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this licence document, but changing it is not allowed.
|
of this licence document, but changing it is not allowed.
|
||||||
@@ -13,18 +13,16 @@
|
|||||||
under the terms of the OpenSceneGraph Public License (OSGPL) version 0.0
|
under the terms of the OpenSceneGraph Public License (OSGPL) version 0.0
|
||||||
or later.
|
or later.
|
||||||
|
|
||||||
Notes: the OSGPL is based on the LGPL-2.1-only WITH WxWindows-exception-3.1,
|
Notes: the OSGPL is based on the LGPL, with the 4 exceptions laid in the wxWindows
|
||||||
with the 4 exceptions laid out in the wxWindows section below. The LGPL is
|
section below. The LGPL in the final section of this license.
|
||||||
contained in the final section of this license.
|
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
wxWindows Library Licence, Version 3
|
||||||
|
====================================
|
||||||
|
|
||||||
wxWindows Library Licence, Version 3.1
|
Copyright (C) 1998 Julian Smart, Robert Roebling [, ...]
|
||||||
======================================
|
|
||||||
|
|
||||||
Copyright (c) 1998-2005 Julian Smart, Robert Roebling et al
|
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this licence document, but changing it is not allowed.
|
of this licence document, but changing it is not allowed.
|
||||||
@@ -44,20 +42,20 @@
|
|||||||
|
|
||||||
You should have received a copy of the GNU Library General Public Licence
|
You should have received a copy of the GNU Library General Public Licence
|
||||||
along with this software, usually in a file named COPYING.LIB. If not,
|
along with this software, usually in a file named COPYING.LIB. If not,
|
||||||
write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
Boston, MA 02110-1301 USA.
|
Boston, MA 02111-1307 USA.
|
||||||
|
|
||||||
EXCEPTION NOTICE
|
EXCEPTION NOTICE
|
||||||
|
|
||||||
1. As a special exception, the copyright holders of this library give
|
1. As a special exception, the copyright holders of this library give
|
||||||
permission for additional uses of the text contained in this release of
|
permission for additional uses of the text contained in this release of
|
||||||
the library as licenced under the wxWindows Library Licence, applying
|
the library as licenced under the wxWindows Library Licence, applying
|
||||||
either version 3.1 of the Licence, or (at your option) any later version of
|
either version 3 of the Licence, or (at your option) any later version of
|
||||||
the Licence as published by the copyright holders of version
|
the Licence as published by the copyright holders of version 3 of the
|
||||||
3.1 of the Licence document.
|
Licence document.
|
||||||
|
|
||||||
2. The exception is that you may use, copy, link, modify and distribute
|
2. The exception is that you may use, copy, link, modify and distribute
|
||||||
under your own terms, binary object code versions of works based
|
under the user's own terms, binary object code versions of works based
|
||||||
on the Library.
|
on the Library.
|
||||||
|
|
||||||
3. If you copy code from files distributed under the terms of the GNU
|
3. If you copy code from files distributed under the terms of the GNU
|
||||||
@@ -74,11 +72,9 @@
|
|||||||
code and/or adjust the licensing conditions notice accordingly.
|
code and/or adjust the licensing conditions notice accordingly.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
GNU LESSER GENERAL PUBLIC LICENSE
|
Version 2.1, February 1999
|
||||||
Version 2.1, February 1999
|
|
||||||
|
|
||||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
@@ -89,7 +85,7 @@
|
|||||||
as the successor of the GNU Library Public License, version 2, hence
|
as the successor of the GNU Library Public License, version 2, hence
|
||||||
the version number 2.1.]
|
the version number 2.1.]
|
||||||
|
|
||||||
Preamble
|
Preamble
|
||||||
|
|
||||||
The licenses for most software are designed to take away your
|
The licenses for most software are designed to take away your
|
||||||
freedom to share and change it. By contrast, the GNU General Public
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
@@ -134,7 +130,7 @@ modified by someone else and passed on, the recipients should know
|
|||||||
that what they have is not the original version, so that the original
|
that what they have is not the original version, so that the original
|
||||||
author's reputation will not be affected by problems that might be
|
author's reputation will not be affected by problems that might be
|
||||||
introduced by others.
|
introduced by others.
|
||||||
|
|
||||||
Finally, software patents pose a constant threat to the existence of
|
Finally, software patents pose a constant threat to the existence of
|
||||||
any free program. We wish to make sure that a company cannot
|
any free program. We wish to make sure that a company cannot
|
||||||
effectively restrict the users of a free program by obtaining a
|
effectively restrict the users of a free program by obtaining a
|
||||||
@@ -190,8 +186,8 @@ modification follow. Pay close attention to the difference between a
|
|||||||
"work based on the library" and a "work that uses the library". The
|
"work based on the library" and a "work that uses the library". The
|
||||||
former contains code derived from the library, whereas the latter must
|
former contains code derived from the library, whereas the latter must
|
||||||
be combined with the library in order to run.
|
be combined with the library in order to run.
|
||||||
|
|
||||||
GNU LESSER GENERAL PUBLIC LICENSE
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
0. This License Agreement applies to any software library or other
|
0. This License Agreement applies to any software library or other
|
||||||
@@ -237,7 +233,7 @@ Library.
|
|||||||
You may charge a fee for the physical act of transferring a copy,
|
You may charge a fee for the physical act of transferring a copy,
|
||||||
and you may at your option offer warranty protection in exchange for a
|
and you may at your option offer warranty protection in exchange for a
|
||||||
fee.
|
fee.
|
||||||
|
|
||||||
2. You may modify your copy or copies of the Library or any portion
|
2. You may modify your copy or copies of the Library or any portion
|
||||||
of it, thus forming a work based on the Library, and copy and
|
of it, thus forming a work based on the Library, and copy and
|
||||||
distribute such modifications or work under the terms of Section 1
|
distribute such modifications or work under the terms of Section 1
|
||||||
@@ -295,7 +291,7 @@ instead of to this License. (If a newer version than version 2 of the
|
|||||||
ordinary GNU General Public License has appeared, then you can specify
|
ordinary GNU General Public License has appeared, then you can specify
|
||||||
that version instead if you wish.) Do not make any other change in
|
that version instead if you wish.) Do not make any other change in
|
||||||
these notices.
|
these notices.
|
||||||
|
|
||||||
Once this change is made in a given copy, it is irreversible for
|
Once this change is made in a given copy, it is irreversible for
|
||||||
that copy, so the ordinary GNU General Public License applies to all
|
that copy, so the ordinary GNU General Public License applies to all
|
||||||
subsequent copies and derivative works made from that copy.
|
subsequent copies and derivative works made from that copy.
|
||||||
@@ -346,7 +342,7 @@ Library will still fall under Section 6.)
|
|||||||
distribute the object code for the work under the terms of Section 6.
|
distribute the object code for the work under the terms of Section 6.
|
||||||
Any executables containing that work also fall under Section 6,
|
Any executables containing that work also fall under Section 6,
|
||||||
whether or not they are linked directly with the Library itself.
|
whether or not they are linked directly with the Library itself.
|
||||||
|
|
||||||
6. As an exception to the Sections above, you may also combine or
|
6. As an exception to the Sections above, you may also combine or
|
||||||
link a "work that uses the Library" with the Library to produce a
|
link a "work that uses the Library" with the Library to produce a
|
||||||
work containing portions of the Library, and distribute that work
|
work containing portions of the Library, and distribute that work
|
||||||
@@ -408,7 +404,7 @@ restrictions of other proprietary libraries that do not normally
|
|||||||
accompany the operating system. Such a contradiction means you cannot
|
accompany the operating system. Such a contradiction means you cannot
|
||||||
use both them and the Library together in an executable that you
|
use both them and the Library together in an executable that you
|
||||||
distribute.
|
distribute.
|
||||||
|
|
||||||
7. You may place library facilities that are a work based on the
|
7. You may place library facilities that are a work based on the
|
||||||
Library side-by-side in a single library together with other library
|
Library side-by-side in a single library together with other library
|
||||||
facilities not covered by this License, and distribute such a combined
|
facilities not covered by this License, and distribute such a combined
|
||||||
@@ -449,7 +445,7 @@ subject to these terms and conditions. You may not impose any further
|
|||||||
restrictions on the recipients' exercise of the rights granted herein.
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
You are not responsible for enforcing compliance by third parties with
|
You are not responsible for enforcing compliance by third parties with
|
||||||
this License.
|
this License.
|
||||||
|
|
||||||
11. If, as a consequence of a court judgment or allegation of patent
|
11. If, as a consequence of a court judgment or allegation of patent
|
||||||
infringement or for any other reason (not limited to patent issues),
|
infringement or for any other reason (not limited to patent issues),
|
||||||
conditions are imposed on you (whether by court order, agreement or
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
@@ -501,7 +497,7 @@ conditions either of that version or of any later version published by
|
|||||||
the Free Software Foundation. If the Library does not specify a
|
the Free Software Foundation. If the Library does not specify a
|
||||||
license version number, you may choose any version ever published by
|
license version number, you may choose any version ever published by
|
||||||
the Free Software Foundation.
|
the Free Software Foundation.
|
||||||
|
|
||||||
14. If you wish to incorporate parts of the Library into other free
|
14. If you wish to incorporate parts of the Library into other free
|
||||||
programs whose distribution conditions are incompatible with these,
|
programs whose distribution conditions are incompatible with these,
|
||||||
write to the author to ask for permission. For software which is
|
write to the author to ask for permission. For software which is
|
||||||
@@ -511,7 +507,7 @@ decision will be guided by the two goals of preserving the free status
|
|||||||
of all derivatives of our free software and of promoting the sharing
|
of all derivatives of our free software and of promoting the sharing
|
||||||
and reuse of software generally.
|
and reuse of software generally.
|
||||||
|
|
||||||
NO WARRANTY
|
NO WARRANTY
|
||||||
|
|
||||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||||
@@ -534,8 +530,8 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
|||||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
DAMAGES.
|
DAMAGES.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
How to Apply These Terms to Your New Libraries
|
How to Apply These Terms to Your New Libraries
|
||||||
|
|
||||||
If you develop a new library, and you want it to be of the greatest
|
If you develop a new library, and you want it to be of the greatest
|
||||||
|
|||||||
419
NEWS.txt
@@ -1,400 +1,9 @@
|
|||||||
OSG News
|
OSG News
|
||||||
========
|
========
|
||||||
|
|
||||||
OpenSceneGraph 3.6 release
|
|
||||||
PERTHSHIRE, Scotland - 7th April 2018 - OpenSceneGraph Professional Services announces the release of OpenSceneGraph 3.6.0, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. The OpenSceneGraph is written entirely in Standard C++ and built upon OpenGL (1.2 to 4.6) and OpenGL ES (1.0 to 3.0), and offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets. OpenSceneGraph 3.6 runs on all Microsoft Windows platforms, Apple OS/X, iOS, GNU/Linux, Android, Solaris, HP-UX, AIX and FreeBSD operating systems.
|
|
||||||
|
|
||||||
Updates include:
|
|
||||||
|
|
||||||
* OpenThreads::Affinity introduced to enable setting of processor affinity on viewer and database threads
|
|
||||||
* osgText rewritten to improve visual quality, add signed distance field support and full GLES2/3 and GL3/4 support
|
|
||||||
* Added VertexArrayObject support, enable full OpenGL Core Profile support under OSX.
|
|
||||||
* Added OpenCASCADE plugin
|
|
||||||
* Added STEP (.stp) plugin
|
|
||||||
* Improvements to FBX and COLLADA loaders
|
|
||||||
* Improvements to gles plugin to provide better Sketchfab support
|
|
||||||
* Added osgemscripten example
|
|
||||||
* Improvements to osgAnimation
|
|
||||||
* NodeVisitor ValueMap for storing values that can be stored and accessed across frames, such as update, event and cull traversals
|
|
||||||
* ShapeDrawable rewritten as an osg::Geometry to improve performance and flexibility
|
|
||||||
* Added osg::MultiDrawArrays support
|
|
||||||
* Added osgdeferred example that illustrates how to implement deferred rendering
|
|
||||||
* Added MultiDrawIndirect support
|
|
||||||
* Moved glDispatchCompute control out of osg::Program into a dedicated osg::DispatchCompute class to improve control of compute shaders
|
|
||||||
* KdTree support added for PolytopeIntersector, and ability to work with points, lines and polygons
|
|
||||||
* osgQt has been moved out to it's own dedicated osgQt github repository
|
|
||||||
* CMake build support for iOS bitcode builds
|
|
||||||
* CoverityScan testing introduced, fixes bring defect density to 0.0 per 1,0000 lines of code!
|
|
||||||
* Support for Codedoc automated documentation
|
|
||||||
* Support for Travis automated build system
|
|
||||||
|
|
||||||
|
|
||||||
Downloads and Licensing:
|
|
||||||
|
|
||||||
OpenSceneGraph is open-source, so full source code is provided, and can be copied, modified and used free of charge for commercial and non-commercial use. Access to the source allows end users greater flexibility in how they develop, debug and deploy their applications. They gain productivity and freedom by being able to leverage the tool chain in accordance with their own release cycles. Downloads of binaries and source can be found at http://www.openscenegraph.org/index.php/download-section/stable-releases and at our github repository https://github.com/openscenegraph/OpenSceneGraph/.
|
|
||||||
|
|
||||||
OpenSceneGraph is released under the OpenSceneGraph Public License, which is based on the Lesser GNU Public License (LGPL), permitting the software to be used free of charge across the full spectrum of commercial and open-source applications. Furthermore, it allows both static and dynamic linking of the OpenSceneGraph libraries without restricting the licensing of the user's software. Further details http://www.openscenegraph.org/index.php/about/licensing
|
|
||||||
|
|
||||||
|
|
||||||
Professional support and services:
|
|
||||||
|
|
||||||
OpenSceneGraph project is backed up with professional services by OpenSceneGraph Professional Services, based in Scotland, and a range of Contractors from around the world http://www.openscenegraph.org/index.php/support/professional-support. For enquires email robert@openscenegraph.com. Services available include:
|
|
||||||
|
|
||||||
Confidential Professional Support
|
|
||||||
Bespoke development
|
|
||||||
Consultancy
|
|
||||||
Training
|
|
||||||
|
|
||||||
|
|
||||||
Community support and contributions:
|
|
||||||
|
|
||||||
The diverse and growing community of over 5000 developers is centred around the public osg-users mailing list/forum, where members discuss how best to use OpenSceneGraph, provide mutual support, and coordinate development of new features and bug fixes. Members of this community come from many different countries with backgrounds ranging from some of the world's largest aerospace companies, game companies, and visual simulation specialists to university researchers, students and hobbyists.
|
|
||||||
|
|
||||||
The OpenSceneGraph project owes a great deal to the community for its development and support, in particular we wish to thank the 568 individuals from around the world that have directly contributed to the development and refinement of the OpenSceneGraph code base.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
OpenSceneGraph 3.4 release introduces shader composition, new osgUI library, displacement mapping, volume rendering, lua scripting support and much more
|
|
||||||
PERTHSHIRE, Scotland - 12th August 2015 - OpenSceneGraph Professional Services announces the release of OpenSceneGraph 3.4, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. OpenSceneGraph 3.4 written entirely in Standard C++ and built upon OpenGL, offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets - a real-time visualization tool which eclipses commercial scene graph toolkits in functionality, stability and performance. OpenSceneGraph 3.4 runs on all Microsoft Windows platforms, Apple OS/X, iOS, GNU/Linux, Android, IRIX, Solaris, HP-UX, AIX and FreeBSD operating systems.
|
|
||||||
Updates include:
|
|
||||||
|
|
||||||
* New #pragma(tic) composition shader functionality built into the core OSG that provides a easy to use yet flexible scheme for controlling and composing shaders at runtime levering GLSL support for #define and #pragma.
|
|
||||||
* New osgTerrain::DisplacementMappingTechnique to uses vertex, geometry and fragment shader based displacement mapping technique that dramatically lowers the CPU and GPU memory footprint and bandwidth needs for the same visual quality. The new scheme enables paged terrain that work robustly on smaller hardware, or with far higher loads without framedrops. This new technique levels #pragma(tic) shader composition to enable one to toggle on/off features in the shaders at runtime in a way that is as convenient to use as toggle modes in a fixed function pipeline scene graph.
|
|
||||||
* New osgVolume::MultipassTechique that uses multipass rendering and shaders to enable seamless mixing of traditional 3D geometry and volumes, support for geometry hulls that constrain where the volume should be rendered as well as improving the ray tracing shaders so that they are both faster and have higher visual quality than the previous generation of ray traced shaders supported by OSG-3.2 releases and before.
|
|
||||||
* New osgDB::Classiterface class that provides an easy to use mechanism for introspection of scene graph classes, allowing one to get, set properties and invoke methods in a generic way, making the task of integrating 3rd prarty tools such as scripting languages straight forward.
|
|
||||||
* New Lua scripting support via a plugin that integrates Lua 5.2.3 and the OSG via the OSG's native serialization codes.
|
|
||||||
* New osgUI NodeKit, that enables User Interface elements to be placed directly into 3D scene graph. The classes are fully scriptable so you create create UI and behaviours all within lua scripts.
|
|
||||||
* Improvements to OpenGL ES 1.1, ES 2.0 and ES3.0 support, including platform specific extensions
|
|
||||||
* Improvements to OpenGL 4.x support with a range of new extensions support
|
|
||||||
* Updates to osgQt to support Qt5 and provide better support for Qt4
|
|
||||||
|
|
||||||
Downloads and Licensing:
|
|
||||||
|
|
||||||
OpenSceneGraph is open-source, so full source code is provided, and can be copied, modified and used free of charge for commercial and non-commercial use. Access to the source allows end users greater flexibility in how they develop, debug and deploy their applications. They gain productivity and freedom by being able to leverage the tool chain in accordance with their own release cycles. Downloads of binaries and source can be found in the Downloads section of the openscenegraph.org website.
|
|
||||||
|
|
||||||
OpenSceneGraph is released under the OpenSceneGraph Public License, which is based on the Lesser GNU Public License (LGPL), permitting the software to be used free of charge across the full spectrum of commercial and open-source applications. Furthermore, it allows both static and dynamic linking of the OpenSceneGraph libraries without restricting the licensing of the user's software.
|
|
||||||
Professional support and services
|
|
||||||
|
|
||||||
OpenSceneGraph project is backed up with professional services by OpenSceneGraph Professional Services, based in Scotland, and a range of Contractors from around the world. Services available include:
|
|
||||||
|
|
||||||
Confidential Professional Support
|
|
||||||
Bespoke development
|
|
||||||
Consultancy
|
|
||||||
Training
|
|
||||||
|
|
||||||
Community support and contributions:
|
|
||||||
|
|
||||||
The diverse and growing community of over 5000 developers is centred around the public osg-users mailing list/forum, where members discuss how best to use OpenSceneGraph, provide mutual support, and coordinate development of new features and bug fixes. Members of this community come from many different countries with backgrounds ranging from some of the world's largest aerospace companies, game companies, and visual simulation specialists to university researchers, students and hobbyists.
|
|
||||||
|
|
||||||
The OpenSceneGraph project owes a great deal to the community for its development and support, in particular we wish to thank the 550 individuals from around the world that have directly contributed to the development and refinement of the OpenSceneGraph code base.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
= !OpenSceneGraph 3.2 release improves support iOS and Android, supports a range of new OpenGL features much more.
|
|
||||||
|
|
||||||
PERTHSHIRE, Scotland - 24th July 2013 - !OpenSceneGraph Professional Services announces the release of !OpenSceneGraph 3.2, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. !OpenSceneGraph 3.2 written entirely in Standard C++ and built upon OpenGL, offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets - a real-time visualization tool which eclipses commercial scene graph toolkits in functionality, stability and performance. !OpenSceneGraph 3.2 runs on all Microsoft Windows platforms, Apple OS/X, iOS, GNU/Linux, Android, IRIX, Solaris, HP-UX, AIX and FreeBSD operating systems.
|
|
||||||
|
|
||||||
=== Open-source development delivers industry-leading features and performance ===
|
|
||||||
The !OpenSceneGraph 3.2 release is the culmination of 14 years of work by the open-source community that has grown up around the project. The real-time graphics industry and academia embraced it from the very beginning, deploying it in real-world applications, and actively participating in its development, testing and refinement. The end result is a high-quality library with a feature set relevant to application developers' needs in both the desktop and mobile space.
|
|
||||||
|
|
||||||
=== Updates include: ===
|
|
||||||
|
|
||||||
* Improvements to OpenGL ES 1.1 and 2.0 support, including platform specific extensions
|
|
||||||
* Revamped QTKit, imageio and quicktime plugins for improved support of iOS and OSX
|
|
||||||
* New avfoundation plugin for reading video on iOS and OSX
|
|
||||||
* New ktx plugin for reading Khronos Texture Files
|
|
||||||
* New OpenGL extensions support including compute shaders, tessellation shaders, integer array formats and associated Vec* classes, primitive restart
|
|
||||||
* Improvements to osgManipulator NodeKit that introduce new manipulators and improve flexibility and customizability
|
|
||||||
* Updates to osgQt to support Qt5 and provide better support for Qt4
|
|
||||||
* New osgGA::Device base class for receiving from and sending events to both real and virtual devices in a generic, extensible way
|
|
||||||
* New ZeroConf, RestHTTP and OSC plugins to enable remote control of applications such as controlling desktop systems from tablets and phones
|
|
||||||
* Improvements to osgVolume NodeKit and DICOM plugin for better medical visualization
|
|
||||||
* New TrackVis .trk track files plugin for the visualization of brain scans.
|
|
||||||
* Improvements to osgPresentation NodeKit and Present3D application to make it possible to create non-linear interactive, remote controlled shows
|
|
||||||
* New osgViewer::ViewConfig class with range of implementations to make it easier to configure viewers for advanced rendering support
|
|
||||||
* Support for GPU based Keystone correction with onscreen editing making it possible to use low cost projectors in off axis setups
|
|
||||||
* Clean up of osg::Geometry class removing all deprecated slow path API's resulting in a smaller and faster Geometry class
|
|
||||||
* Addition of deprecated_osg namespace and deprecated_osg::Geometry class that provides deprecated BIND_PER_PRIMITIVE and array indices APIs to add with porting
|
|
||||||
* New ViewDependentShadowMap shadow rendering class that combines enables robust combining of parallel split and perspective shadow map techniques
|
|
||||||
* Updates of plugins to work with the latest FBX, ffmpeg, NVTT, OpenVRML, LibVNCServer releases
|
|
||||||
|
|
||||||
|
|
||||||
=== Downloads and Licensing ===
|
|
||||||
!OpenSceneGraph is open-source, so full source code is provided, and can be copied, modified and used free of charge for commercial and non-commercial use. Access to the source allows end users greater flexibility in how they develop, debug and deploy their applications. They gain productivity and freedom by being able to leverage the tool chain in accordance with their own release cycles. Downloads of binaries and source can be found in the [http://www.openscenegraph.org/index.php/download-section/stable-releases Downloads] section of the openscenegraph.org website.
|
|
||||||
|
|
||||||
!OpenSceneGraph is released under the [http://www.openscenegraph.org/projects/osg/wiki/Legal OpenSceneGraph Public License], which is based on the Lesser GNU Public License (LGPL), permitting the software to be used free of charge across the full spectrum of commercial and open-source applications. Furthermore, it allows both static and dynamic linking of the !OpenSceneGraph libraries without restricting the licensing of the user's software.
|
|
||||||
|
|
||||||
=== Professional support and services ===
|
|
||||||
!OpenSceneGraph project is backed up with professional services by [http://www.openscenegraph.com OpenSceneGraph Professional Services], based in Scotland, and [http://www.skew-matrix.com Skew-Matrix] and [http://www.alphapixel.com AlphaPixel] both based in the USA, and a range of [wiki:Community/Contractors Contractors] from around the world. Services available include:
|
|
||||||
|
|
||||||
* Confidential Professional Support
|
|
||||||
* Bespoke development
|
|
||||||
* Consultancy
|
|
||||||
* Training
|
|
||||||
|
|
||||||
=== Community support and contributions ===
|
|
||||||
The diverse and growing community of over 5000 developers is centred around the public osg-users mailing list/forum, where members discuss how best to use !OpenSceneGraph, provide mutual support, and coordinate development of new features and bug fixes. Members of this community come from many different countries with backgrounds ranging from some of the world's largest aerospace companies, game companies, and visual simulation specialists to university researchers, students and hobbyists.
|
|
||||||
|
|
||||||
The !OpenSceneGraph project owes a great deal to the community for its development and support, in particular we wish to thank the [http://www.openscenegraph.org/index.php/about/http:/www.openscenegraph.org/index.php/about/142-contributors-to-openscenegraph-3-2-0 511 individuals] from around the world that have directly contributed to the development and refinement of the !OpenSceneGraph code base.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
= !OpenSceneGraph 3.0 release adds support OpenGL ES 1.1, OpenGL ES 2.0, OpenGL 3.x to 4.0, support for Andoid and IOS platforms and much more.
|
|
||||||
|
|
||||||
PERTHSHIRE, Scotland - 28th June 2011 - !OpenSceneGraph Professional Services announces the release of !OpenSceneGraph 3.0, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. !OpenSceneGraph 3.0 written entirely in Standard C++ and built upon OpenGL, offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets - a real-time visualization tool which eclipses commercial scene graph toolkits in functionality, stability and performance. !OpenSceneGraph 3.0 runs on all Microsoft Windows platforms, Apple OS/X, iOS, GNU/Linux, Android, IRIX, Solaris, HP-UX, AIX and FreeBSD operating systems.
|
|
||||||
|
|
||||||
=== Open-source development delivers industry-leading features and performance ===
|
|
||||||
The !OpenSceneGraph 3.0 release is the culmination of 12 years of work by the lead developers and the open-source community that has grown up around the project. The real-time graphics industry and academia embraced it from the very beginning, deploying it in real-world applications, and actively participating in its development, testing and refinement. The end result is a high-quality library with a feature set relevant to application developers' needs.
|
|
||||||
|
|
||||||
=== Updates include: ===
|
|
||||||
|
|
||||||
* OpenGL ES 1.1, and OpenGL ES 2.0 support
|
|
||||||
* OpenGL 3.x and 4.x support along with associated OpenGL extensions
|
|
||||||
* Supoort for Android on tablets and phones
|
|
||||||
* Support for IOS on tablets and phones (end users applications have already been accepted on the App Store)
|
|
||||||
* Introduction of Present3D application for immersive 3D presentations
|
|
||||||
* New extensible serializers that provide new .osgb binary, .osgt ascii and .osgx xml file native formats
|
|
||||||
* New generalized serializable metadata architecture
|
|
||||||
* New osgQt library that makes it straight forward to integrate !OpenSceneGraph with Qt, including web browsing via QWebKit.
|
|
||||||
* New FBX plugin based on the Audodesk FBX DSK that enables reading of the the .fbx 3D authoring and interchange format
|
|
||||||
* New directshow plugin for handling movies under Windows
|
|
||||||
* New pov plugin for exporting a scene to POV-Ray format, enabling use of POV-Ray to do photo-realistic ray tracing
|
|
||||||
* New ply plugin for reading ply files
|
|
||||||
* Improvements to osgText that enable bevelling of 3D text and highter quality 2D fonts
|
|
||||||
* Improvements to osgVolume enabling high quality ray traced volume rendering
|
|
||||||
* Improvements to osgManipulator making it more flexible
|
|
||||||
* Improvements to osgParticle to support shader based particle effects
|
|
||||||
* Revamped 3ds plugin for reading and writing of .3ds files
|
|
||||||
* Revamped dxf plugin for reading and writing of .dxf files
|
|
||||||
* Support for Cocoa and 64bit OSX build
|
|
||||||
* Improved thread safety and efficiency of database paging
|
|
||||||
* New Texture and buffer object pools for efficiently managing GL object resources
|
|
||||||
|
|
||||||
=== Downloads and Licensing ===
|
|
||||||
!OpenSceneGraph is open-source, so full source code is provided, and can be copied, modified and used free of charge for commercial and non-commercial use. Access to the source allows end users greater flexibility in how they develop, debug and deploy their applications. They gain productivity and freedom by being able to leverage the tool chain in accordance with their own release cycles. Downloads of binaries and source can be found in the [http://www.openscenegraph.org/projects/osg/wiki/Downloads Downloads] section of the openscenegraph.org website.
|
|
||||||
|
|
||||||
!OpenSceneGraph is released under the [http://www.openscenegraph.org/projects/osg/wiki/Legal OpenSceneGraph Public License], which is based on the Lesser GNU Public License (LGPL), permitting the software to be used free of charge across the full spectrum of commercial and open-source applications. Furthermore, it allows both static and dynamic linking of the !OpenSceneGraph libraries without restricting the licensing of the user's software.
|
|
||||||
|
|
||||||
=== !OpenSceneGraph Books now available ===
|
|
||||||
|
|
||||||
The new book dedicated to the !OpenSceneGraph 3.0 release is now available https://www.packtpub.com/openscenegraph-3-0-beginners-guide/book.
|
|
||||||
|
|
||||||
=== Professional support and services ===
|
|
||||||
!OpenSceneGraph project is backed up with professional services by [http://www.openscenegraph.com OpenSceneGraph Professional Services], based in Scotland, and [http://www.skew-matrix.com Skew-Matrix] and [http://www.alphapixel.com AlphaPixel] both based in the USA, and a range of [wiki:Community/Contractors Contractors] from around the world. Services available include:
|
|
||||||
|
|
||||||
* Confidential Professional Support
|
|
||||||
* Bespoke development
|
|
||||||
* Consultancy
|
|
||||||
* Training
|
|
||||||
|
|
||||||
=== Community support and contributions ===
|
|
||||||
The diverse and growing community of over 5000 developers is centred around the public osg-users mailing list/forum, where members discuss how best to use !OpenSceneGraph, provide mutual support, and coordinate development of new features and bug fixes. Members of this community come from many different countries with backgrounds ranging from some of the world's largest aerospace companies, game companies, and visual simulation specialists to university researchers, students and hobbyists.
|
|
||||||
|
|
||||||
The !OpenSceneGraph project owes a great deal to the community for its development and support, in particular we wish to thank the [http://www.openscenegraph.org/projects/osg/wiki/Support/Contributors/ThreePointZero 464 individuals] from around the world that have directly contributed to the development and refinement of the !OpenSceneGraph code base.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
= !OpenSceneGraph 2.8 release adds osgAnimation and osgVolume libraries, DICOM support, LispSM shadowing and much more. =
|
|
||||||
|
|
||||||
PERTHSHIRE, Scotland - 12th February 2009 - !OpenSceneGraph Professional Services announces the release of !OpenSceneGraph 2.8, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. !OpenSceneGraph 2.8 written entirely in Standard C++ and built upon OpenGL, offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets - a real-time visualization tool which eclipses commercial scene graph toolkits in functionality, stability and performance. !OpenSceneGraph 2.8 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris, HP-UX, AIX and FreeBSD operating systems.
|
|
||||||
|
|
||||||
=== Open-source development delivers industry-leading features and performance ===
|
|
||||||
The !OpenSceneGraph 2.8 release is the culmination of 10 years of work by the lead developers and the open-source community that has grown up around the project. The real-time graphics industry and academia embraced it from the very beginning, deploying it in real-world applications, and actively participating in its development, testing and refinement. The end result is a high-quality library with a feature set relevant to application developers' needs.
|
|
||||||
|
|
||||||
=== Updates include: ===
|
|
||||||
|
|
||||||
* New osgVolume library for volume rendering, with support for:
|
|
||||||
* High quality GPU based Ray tracing
|
|
||||||
* Transfer functions
|
|
||||||
* Per pixel lighting
|
|
||||||
* Iso surface rendering
|
|
||||||
* Maximum Intensity Projection rendering
|
|
||||||
* Non-power-of-two 3D textures, and 3D texture compression
|
|
||||||
* DICOM loading for reading dicom medical data
|
|
||||||
* New osgAnimation library for character and scene animation.
|
|
||||||
* New plugin for reading Biovision hierarchical files (.BVH) to generate character motion animations.
|
|
||||||
* New osgShadow support for Light Space Perspective Shadow Maps (LispSM).
|
|
||||||
* Three new scene graph widgets for placing traditional 2D capability into fully interactive 3D scenes:
|
|
||||||
* PDF widget (based on libPoppler)
|
|
||||||
* VNC client widget (based on libVNCServer)
|
|
||||||
* Internet browser client widget (based on Gecko/UBrowser)
|
|
||||||
* New plugins for loading Half-Life 2 maps and models.
|
|
||||||
* New plugin for loading EXR, high dynamic range imagery
|
|
||||||
* Improvements to !DatabasePager, tailored for low latency paging.
|
|
||||||
* Improved runtime stats collection and on screen reporting.
|
|
||||||
* Performance improvements through optimization of matrix operations.
|
|
||||||
* Support for the OpenGL "draw instanced" extension.
|
|
||||||
* Support for zlib compressed native .ive and .gz files
|
|
||||||
* Improvements to COLLADA support.
|
|
||||||
* Build reporting using CDash
|
|
||||||
* New packaging support using CPack
|
|
||||||
* A wide range of build and bug fixes
|
|
||||||
|
|
||||||
=== Downloads and Licensing ===
|
|
||||||
!OpenSceneGraph is open-source, so full source code is provided, and can be copied, modified and used free of charge for commercial and non-commercial use. Access to the source allows end users greater flexibility in how they develop, debug and deploy their applications. They gain productivity and freedom by being able to leverage the tool chain in accordance with their own release cycles. Downloads of binaries and source can be found in the [http://www.openscenegraph.org/projects/osg/wiki/Downloads Downloads] section of the openscenegraph.org website.
|
|
||||||
|
|
||||||
!OpenSceneGraph is released under the [http://www.openscenegraph.org/projects/osg/wiki/Legal OpenSceneGraph Public License], which is based on the Lesser GNU Public License (LGPL), permitting the software to be used free of charge across the full spectrum of commercial and open-source applications. Furthermore, it allows both static and dynamic linking of the !OpenSceneGraph libraries without restricting the licensing of the user's software.
|
|
||||||
|
|
||||||
=== !OpenSceneGraph Books now available ===
|
|
||||||
|
|
||||||
The !OpenSceneGraph Quick Start Guide is now available in Chinese as well as English, and alongside the Reference Manual, books can be found at [http://www.osgbooks.com OsgBooks].
|
|
||||||
|
|
||||||
=== Professional support and services ===
|
|
||||||
!OpenSceneGraph project is backed up with professional services by [http://www.openscenegraph.com OpenSceneGraph Professional Services], based in Scotland, and [http://www.skew-matrix.com Skew-Matrix] and [http://www.blue-newt.com Blue-Newt Software] both based in the USA, and a range of [wiki:Community/Contractors Contractors] from around the world. Services available include:
|
|
||||||
|
|
||||||
* Confidential Professional Support
|
|
||||||
* Bespoke development
|
|
||||||
* Consultancy
|
|
||||||
* Training
|
|
||||||
|
|
||||||
=== Community support and contributions ===
|
|
||||||
The diverse and growing community of over 2000 developers is centred around the public osg-users mailing list, where members discuss how best to use !OpenSceneGraph, provide mutual support, and coordinate development of new features and bug fixes. Members of this community come from many different countries with backgrounds ranging from some of the world's largest aerospace companies, game companies, and visual simulation specialists to university researchers, students and hobbyists.
|
|
||||||
|
|
||||||
The !OpenSceneGraph project owes a great deal to the community for its development and support, in particular we wish to thank the [http://www.openscenegraph.org/projects/osg/wiki/Support/Contributors/TwoPointEight 365 individuals] from around the world that have directly contributed to the development and refinement of the !OpenSceneGraph code base.
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
About !OpenSceneGraph: [[BR]]
|
|
||||||
The !OpenSceneGraph Project was founded in September 1999 by Don Burns and Robert Osfield.
|
|
||||||
Further information, screenshots, downloads, documentation, and support links can be found on the !OpenSceneGraph project website http://www.openscenegraph.org.
|
|
||||||
|
|
||||||
About !OpenSceneGraph Professional Services:[[BR]]
|
|
||||||
!OpenSceneGraph Professional Services, founded by project lead Robert Osfield in April 2001, is based in Callander, Perhshire, Scotland, and provides professional services on top of !OpenSceneGraph. Further information about the services it provides can be found at http://www.openscenegraph.com.
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
= !OpenSceneGraph 2.6 release adds osgWidget library, KdTree intersections, Anti-aliased FBOsand much more. =
|
|
||||||
|
|
||||||
PERTHSHIRE, Scotland - 5th August 2008 - !OpenSceneGraph Professional Services announces the release of !OpenSceneGraph 2.6, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. !OpenSceneGraph 2.6 written entirely in Standard C++ and built upon OpenGL, offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets - a real-time visualization tool which eclipses commercial scene graph toolkits in functionality, stability and performance. !OpenSceneGraph 2.6 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris, HP-UX, AIX and FreeBSD operating systems.
|
|
||||||
|
|
||||||
=== Open-source development delivers industry-leading features and performance ===
|
|
||||||
The !OpenSceneGraph 2.6 release is the culmination of 9 years of work by the lead developers and the open-source community that has grown up around the project. The real-time graphics industry and academia embraced it from the very beginning, deploying it in real-world applications, and actively participating in its development, testing and refinement. The end result is a high-quality library with a feature set relevant to application developers' needs.
|
|
||||||
|
|
||||||
=== Updates include: ===
|
|
||||||
|
|
||||||
* New osgWidget library for scene graph based graphics user interface elements (beta release).
|
|
||||||
* KdTree support, with automatic KdTree generation on load and use of KdTree during line intersections which massively improves intersection speeds.
|
|
||||||
* Precision improvements to line intersections, provide accurate whole earth intersection.
|
|
||||||
* OpenGL Multi-sample FrameBufferObject support.
|
|
||||||
* New osg::ImageSequence class for doing texture animation of a series of image files.
|
|
||||||
* New database optimizer that is able to remove static transforms by duplicating shared geometries.
|
|
||||||
* Use glGenerateMipmap to speed up mipmap generation in non power-of-two textures.
|
|
||||||
* New osgViewer::ScreenCaptureHandler for adding screen shot support to osgViewer applications.
|
|
||||||
* New osgscreencapture example that demonstrates use of double buffer PixelBufferObject's for streaming of imagery from the screen.
|
|
||||||
* New utility application osgfilecache which can be used to populate the local cache for given lat/lon ranges and levels.
|
|
||||||
* Rewritten DatabasePager that now supports multiple database reading threads. This includes handling of HTTP requests via a separate reading thread, vastly improving the speed of updates when handling HTTP hosted databases that have already partially been downloaded to local file cache.
|
|
||||||
* Support for a file cache for locally caching paged databases hosted over HTTP.
|
|
||||||
* Support for http authentication in osgDB and the libcurl plugin
|
|
||||||
* New osgconv --format <fmt>, --formats and --plugins command line options for listing available plugins and the file formats/options they support.
|
|
||||||
* Performance improvements in handling TerraPage.
|
|
||||||
* Animated GIF support.
|
|
||||||
* New SVG image loader.
|
|
||||||
* Improvements to the .obj loader to support a wider range of .obj files and material properties.
|
|
||||||
* Support for thread safe Atomic reference counting.
|
|
||||||
* Support for COLLADA DOM 2.x
|
|
||||||
* Support for Philips WOWvx 3D auto-stereoscopic displays
|
|
||||||
* New include/osg/Config and include/OpenThreads/Config configuration files, that are automatically generated by CMake, which make more straight forward to build end users applications against OpenSceneGraph versions built with non default build options.
|
|
||||||
* Support for CMake 2.6
|
|
||||||
* A wide range of build and bug fixes
|
|
||||||
|
|
||||||
|
|
||||||
=== Downloads and Licensing ===
|
|
||||||
!OpenSceneGraph is open-source so full source code is provided, and can be copied, modified and used free of charge for commercial and non-commercial use. Access to the source allows end users greater flexibility in how they develop, debug and deploy their applications. They gain productivity and freedom by being able to leverage the tool chain in accordance with their own release cycles. Downloads of binaries and source can be found in the [http://www.openscenegraph.org/projects/osg/wiki/Downloads Downloads] section of the openscenegraph.org website.
|
|
||||||
|
|
||||||
!OpenSceneGraph is released under the [http://www.openscenegraph.org/projects/osg/wiki/Legal OpenSceneGraph Public License], which is based on the Lesser GNU Public License (LGPL), permitting the software to be used free of charge across the full spectrum of commercial and open-source applications. Furthermore, it allows both static and dynamic linking of the !OpenSceneGraph libraries without restricting the licensing of the user's software.
|
|
||||||
|
|
||||||
=== !OpenSceneGraph Books now available ===
|
|
||||||
|
|
||||||
The !OpenSceneGraph Quick Start Guide is now available in Chinese as well as English, and alongside the Reference Manual books can be found at [http://www.osgbooks.com OsgBooks].
|
|
||||||
|
|
||||||
=== Professional support and services ===
|
|
||||||
!OpenSceneGraph project is backed up with professional services by [http://openscenegraph.com OpenSceneGraph Professional Services], based in Scotland, and [http://www.skew-matrix.com Skew-Matrix] and [http://www.blue-newt.com Blue-Newt Software] both based in the USA, and a range of [wiki:Community/Contractors Contractors] from around the world. Services available include:
|
|
||||||
|
|
||||||
* Confidential Professional Support
|
|
||||||
* Bespoke development
|
|
||||||
* Consultancy
|
|
||||||
* Training
|
|
||||||
|
|
||||||
=== Community support and contributions ===
|
|
||||||
The diverse and growing community of over 1900 developers is centred around the public osg-users mailing list, where members discuss how best to use !OpenSceneGraph, provide mutual support, and coordinate development of new features and bug fixes. Members of this community come from many different countries with backgrounds ranging from some of the world's largest aerospace companies, game companies, and visual simulation specialists to university researchers, students and hobbyists.
|
|
||||||
|
|
||||||
The !OpenSceneGraph project owes a great deal to the community for its development and support, in particular we wish to thank the [http://www.openscenegraph.org/projects/osg/wiki/Support/Contributors/TwoPointSix 324 individuals] from around the world that have directly contributed to the development and refinement of the !OpenSceneGraph code base.
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
About !OpenSceneGraph:[[BR]]
|
|
||||||
!OpenSceneGraph Project was founded in September 1999 by Don Burns and Robert Osfield.
|
|
||||||
Further information, screenshots, downloads, documentation, and support links can be found on the !OpenSceneGraph project website http://www.openscenegraph.org.
|
|
||||||
|
|
||||||
About !OpenSceneGraph Professional Services:[[BR]]
|
|
||||||
!OpenSceneGraph Professional Services, founded by project lead Robert Osfield in April 2001, is based in Callander, Perhshire, Scotland, and provides professional services on top of !OpenSceneGraph. Further information about the services it provides can be found at http://www.openscenegraph.com.
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
= !OpenSceneGraph 2.4 release adds geometry shaders, multiple render targets, support for terrabyte scale terrain databases, writing to !OpenFlight and much more. =
|
|
||||||
|
|
||||||
PERTHSHIRE, Scotland - 25th April 2008 - !OpenSceneGraph Professional Services announces the release of !OpenSceneGraph 2.4, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. !OpenSceneGraph 2.4 written entirely in Standard C++ and built upon OpenGL, offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets - a real-time visualization tool which eclipses commercial scene graph toolkits in functionality, stability and performance. !OpenSceneGraph 2.4 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris, HP-UX, AIX and FreeBSD operating systems.
|
|
||||||
|
|
||||||
=== Open-source development delivers industry-leading features and performance ===
|
|
||||||
The !OpenSceneGraph 2.4 release is the culmination of 9 years of work by the lead developers and the open-source community that has grown up around the project. The real-time graphics industry and academia embraced it from the very beginning, deploying it in real-world applications, and actively participating in its development, testing and refinement. The end result is a high-quality library with a feature set relevant to application developers' needs.
|
|
||||||
|
|
||||||
=== Updates include: ===
|
|
||||||
|
|
||||||
* Support for OpenGL Geometry shaders
|
|
||||||
* Support for OpenGL Multiple Render Targets extension to Frame Buffer Objects
|
|
||||||
* Support for OpenGL Occlussion Query extension
|
|
||||||
* New !OpenFlight writer
|
|
||||||
* New libcurl based plugin for reading http hosted databases
|
|
||||||
* Quicktime based reading of live video streams under Windows and OSX
|
|
||||||
* Better load balancing in database pager
|
|
||||||
* Improvements to osgTerrain for support of terrabyte scale whole earth terrain databases
|
|
||||||
* Additions to the Shapefile loader with .dbf attribute file, .proj projection file support and loading data as doubles
|
|
||||||
* Enhanced intersection functionality including double support for line intersections
|
|
||||||
* Parallel build support under Visual Studio
|
|
||||||
* Support for reading Producer .cfg viewer configuration files
|
|
||||||
* A wide range of build and bug fixes
|
|
||||||
|
|
||||||
=== Downloads and Licensing ===
|
|
||||||
!OpenSceneGraph is open-source so full source code is provided, and can be copied, modified and used free of charge for commercial and non-commercial use. Access to the source allows end users greater flexibility in how they develop, debug and deploy their applications. They gain productivity and freedom by being able to leverage the tool chain in accordance with their own release cycles. Downloads of binaries and source can be found in the [http://www.openscenegraph.org/projects/osg/wiki/Downloads Downloads] section of the openscenegraph.org website.
|
|
||||||
|
|
||||||
!OpenSceneGraph is released under the [http://www.openscenegraph.org/projects/osg/wiki/Legal OpenSceneGraph Public License], which is based on the Lesser GNU Public License (LGPL), permitting the software to be used free of charge across the full spectrum of commercial and open-source applications. Furthermore, it allows both static and dynamic linking of the !OpenSceneGraph libraries without restricting the licensing of the user's software.
|
|
||||||
|
|
||||||
=== !OpenSceneGraph Books now available ===
|
|
||||||
|
|
||||||
The !OpenSceneGraph Quick Start Guide is now available in Chinese as well as English, and alongside the Reference Manual books can be found at [http://www.osgbooks.com OsgBooks].
|
|
||||||
|
|
||||||
=== Professional support and services ===
|
|
||||||
!OpenSceneGraph project is backed up with professional services by [http://openscenegraph.com OpenSceneGraph Professional Services], based in Scotland, and [http://www.skew-matrix.com Skew-Matrix] and [http://www.blue-newt.com Blue-Newt Software] both based in the USA, and a range of [wiki:Community/Contractors Contractors] from around the world. Services available include:
|
|
||||||
|
|
||||||
* Confidential Professional Support
|
|
||||||
* Bespoke development
|
|
||||||
* Consultancy
|
|
||||||
* Training
|
|
||||||
|
|
||||||
=== Community support and contributions ===
|
|
||||||
The diverse and growing community of over 1800 developers is centred around the public osg-users mailing list, where members discuss how best to use !OpenSceneGraph, provide mutual support, and coordinate development of new features and bug fixes. Members of this community come from many different countries with backgrounds ranging from some of the world's largest aerospace companies, game companies, and visual simulation specialists to university researchers, students and hobbyists.
|
|
||||||
|
|
||||||
The !OpenSceneGraph project owes a great deal to the community for its development and support, in particular we wish to thank the [http://www.openscenegraph.org/projects/osg/wiki/Support/Contributors/TwoPointFour 306 individuals] from around the world that have directly contributed to the development and refinement of the !OpenSceneGraph code base.
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
About !OpenSceneGraph:[[BR]]
|
|
||||||
!OpenSceneGraph Project was founded in September 1999 by Don Burns and Robert Osfield.
|
|
||||||
Further information, screenshots, downloads, documentation, and support links can be found on the !OpenSceneGraph project website http://www.openscenegraph.org.
|
|
||||||
|
|
||||||
About !OpenSceneGraph Professional Services:[[BR]]
|
|
||||||
!OpenSceneGraph Professional Services, founded by project lead Robert Osfield in April 2001, is based in Callander, Perhshire, Scotland, and provides professional services on top of !OpenSceneGraph. Further information about the services it provides can be found at http://www.openscenegraph.com.
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
= OpenSceneGraph 2.2 release adds support for advanced displays, soft and parallel split shadow maps and easier builds =
|
= OpenSceneGraph 2.2 release adds support for advanced displays, soft and parallel split shadow maps and easier builds =
|
||||||
|
|
||||||
PERTHSHIRE, Scotland - 4th October 2007 - !OpenSceneGraph Professional Services announces the release of !OpenSceneGraph 2.2, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. !OpenSceneGraph 2.2 written entirely in Standard C++ and built upon OpenGL, offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets - a real-time visualization tool which eclipses commercial scene graph toolkits in functionality, stability and performance. !OpenSceneGraph 2.2 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris, HP-UX, AIX and !FreeBSD operating systems.
|
PERTHSHIRE, Scotland - 4th October 2007 - !OpenSceneGraph Professional Services announces the release of !OpenSceneGraph 2.2, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. !OpenSceneGraph 2.2 written entirely in Standard C++ and built upon OpenGL, offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modeling markets - a real-time visualization tool which eclipses commercial scene graph toolkits in functionality, stability and performance. !OpenSceneGraph 2.2 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris, HP-UX, AIX and !FreeBSD operating systems.
|
||||||
|
|
||||||
=== Open-source development delivers industry-leading features and performance ===
|
=== Open-source development delivers industry-leading features and performance ===
|
||||||
The !OpenSceneGraph 2.2 release is the culmination of 8 years of work by the lead developers and the open-source community that has grown up around the project. The real-time graphics industry and academia embraced it from the very beginning, deploying it in real-world applications, and actively participating in its development, testing and refinement. The end result is a high-quality library with a feature set relevant to application developers' needs.
|
The !OpenSceneGraph 2.2 release is the culmination of 8 years of work by the lead developers and the open-source community that has grown up around the project. The real-time graphics industry and academia embraced it from the very beginning, deploying it in real-world applications, and actively participating in its development, testing and refinement. The end result is a high-quality library with a feature set relevant to application developers' needs.
|
||||||
@@ -451,7 +60,7 @@ About !OpenSceneGraph Professional Services:[[BR]]
|
|||||||
|
|
||||||
!!![=OpenSceneGraph=] 2.0 release improves ease-of-use and scalability, introducing new osgViewer, osgShadow and osgManipulator libraries, new build system, improved multi-core, multi-GPU support.
|
!!![=OpenSceneGraph=] 2.0 release improves ease-of-use and scalability, introducing new osgViewer, osgShadow and osgManipulator libraries, new build system, improved multi-core, multi-GPU support.
|
||||||
|
|
||||||
PERTHSHIRE, Scotland - 15th June 2007 - [=OpenSceneGraph=] Professional Services announces the release of [=OpenSceneGraph=] 2.0, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. [=OpenSceneGraph=] 2.0, written entirely in Standard C++ and built upon [=OpenGL=], offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets a real-time visualization tool which rivals established commercial scene graph toolkits in functionality and performance. [=OpenSceneGraph=] 2.0 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris, HP-UX, AIX and [=FreeBSD=] operating systems.
|
PERTHSHIRE, Scotland - 15th June 2007 - [=OpenSceneGraph=] Professional Services announces the release of [=OpenSceneGraph=] 2.0, the industry's leading open-source scene graph technology, designed to accelerate application development and improve 3D graphics performance. [=OpenSceneGraph=] 2.0, written entirely in Standard C++ and built upon [=OpenGL=], offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modeling markets a real-time visualization tool which rivals established commercial scene graph toolkits in functionality and performance. [=OpenSceneGraph=] 2.0 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris, HP-UX, AIX and [=FreeBSD=] operating systems.
|
||||||
|
|
||||||
!!!Open-source development delivers industry-leading features and performance
|
!!!Open-source development delivers industry-leading features and performance
|
||||||
The [=OpenSceneGraph=] 2.0 release is the culmination of 8 years of work by the lead developers and the open-source community that has grown up around the project. The real-time graphics industry and academia embraced it from the very beginning, deploying it in real-world applications, and actively participating in its development, testing and refinement. The end result is a high-quality library with a feature set relevant to application developers' needs.
|
The [=OpenSceneGraph=] 2.0 release is the culmination of 8 years of work by the lead developers and the open-source community that has grown up around the project. The real-time graphics industry and academia embraced it from the very beginning, deploying it in real-world applications, and actively participating in its development, testing and refinement. The end result is a high-quality library with a feature set relevant to application developers' needs.
|
||||||
@@ -509,7 +118,7 @@ Project Lead and Proprietor [=OpenSceneGraph=] Professional Services
|
|||||||
|
|
||||||
!!![=OpenSceneGraph=] 1.2 release introduces Windows 64bit and AIX support, COLLADA support, processor affinity and texture atlas builder.
|
!!![=OpenSceneGraph=] 1.2 release introduces Windows 64bit and AIX support, COLLADA support, processor affinity and texture atlas builder.
|
||||||
|
|
||||||
PERTHSHIRE, Scotland - 12th September 2006 - [=OpenSceneGraph=] Professional Services announces the release of [=OpenSceneGraph=] 1.2, the industry's leading open source scene graph technology, designed to accelerate application development and improve 3D graphics performance. [=OpenSceneGraph=] 1.2, written entirely in Standard C++ and built upon [=OpenGL=], offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets a real time visualization tool which rivals established commercial scene graph toolkits in functionality and performance. [=OpenSceneGraph=] 1.2 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris, HP-UX, AIX and [=FreeBSD=] operating systems.
|
PERTHSHIRE, Scotland - 12th September 2006 - [=OpenSceneGraph=] Professional Services announces the release of [=OpenSceneGraph=] 1.2, the industry's leading open source scene graph technology, designed to accelerate application development and improve 3D graphics performance. [=OpenSceneGraph=] 1.2, written entirely in Standard C++ and built upon [=OpenGL=], offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modeling markets a real time visualization tool which rivals established commercial scene graph toolkits in functionality and performance. [=OpenSceneGraph=] 1.2 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris, HP-UX, AIX and [=FreeBSD=] operating systems.
|
||||||
|
|
||||||
The [=OpenSceneGraph=]-1.2 release introduces:
|
The [=OpenSceneGraph=]-1.2 release introduces:
|
||||||
|
|
||||||
@@ -534,7 +143,7 @@ Project Lead and Proprietor [=OpenSceneGraph=] Professional Services
|
|||||||
!!!OpenSceneGraph 1.1 release introduces peformance and scalability improvements, full OpenGL Shading Language support and new OpenFlight 16.1, TerrPagea2.2 and Quake3 loaders.
|
!!!OpenSceneGraph 1.1 release introduces peformance and scalability improvements, full OpenGL Shading Language support and new OpenFlight 16.1, TerrPagea2.2 and Quake3 loaders.
|
||||||
|
|
||||||
AYRSHIRE, Scotland - July 19th 2006 - [=OpenSceneGraph=] Professional Services announces the release of [=OpenSceneGraph=] 1.1,
|
AYRSHIRE, Scotland - July 19th 2006 - [=OpenSceneGraph=] Professional Services announces the release of [=OpenSceneGraph=] 1.1,
|
||||||
the industry's leading open-source graphics library with [=OpenGL=] 2.0 and [=OpenGL=] Shading Language support. [=OpenSceneGraph=] is designed to accelerate application development and improve 3D graphics performance. [=OpenSceneGraph=] 1.1, written entirely in Standard C++ and built upon [=OpenGL=], offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets a real time visualization tool which rivals established commercial scene graph toolkits in functionality and performance. [=OpenSceneGraph=] 1.1 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris and [=FreeBSD=] operating systems.
|
the industry's leading open-source graphics library with [=OpenGL=] 2.0 and [=OpenGL=] Shading Language support. [=OpenSceneGraph=] is designed to accelerate application development and improve 3D graphics performance. [=OpenSceneGraph=] 1.1, written entirely in Standard C++ and built upon [=OpenGL=], offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modeling markets a real time visualization tool which rivals established commercial scene graph toolkits in functionality and performance. [=OpenSceneGraph=] 1.1 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris and [=FreeBSD=] operating systems.
|
||||||
|
|
||||||
The OpenSceneGraph-1.1 release introduces:
|
The OpenSceneGraph-1.1 release introduces:
|
||||||
|
|
||||||
@@ -561,7 +170,7 @@ Project Lead and Proprietor [=OpenSceneGraph=] Professional Services
|
|||||||
|
|
||||||
!!!High performance open-source graphics toolkit [=OpenSceneGraph=] hits 1.0!
|
!!!High performance open-source graphics toolkit [=OpenSceneGraph=] hits 1.0!
|
||||||
|
|
||||||
AYRSHIRE, Scotland - December 9th, 2005 - [=OpenSceneGraph=] Professional Services announces the release of [=OpenSceneGraph=] 1.0, the industry's leading open-source graphics library with [=OpenGL=] 2.0 and [=OpenGL=] Shading Language support. [=OpenSceneGraph=] is designed to accelerate application development and improve 3D graphics performance. [=OpenSceneGraph=] 1.0, written entirely in Standard C++ and built upon [=OpenGL=], offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modelling markets a real time visualization tool which rivals established commercial scene graph toolkits in functionality and performance. [=OpenSceneGraph=] 1.0 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris and [=FreeBSD=] operating systems.
|
AYRSHIRE, Scotland - December 9th, 2005 - [=OpenSceneGraph=] Professional Services announces the release of [=OpenSceneGraph=] 1.0, the industry's leading open-source graphics library with [=OpenGL=] 2.0 and [=OpenGL=] Shading Language support. [=OpenSceneGraph=] is designed to accelerate application development and improve 3D graphics performance. [=OpenSceneGraph=] 1.0, written entirely in Standard C++ and built upon [=OpenGL=], offers developers working in the visual simulation, game development, virtual reality, scientific visualization and modeling markets a real time visualization tool which rivals established commercial scene graph toolkits in functionality and performance. [=OpenSceneGraph=] 1.0 runs on all Microsoft Windows platforms, Apple OS/X, GNU/Linux, IRIX, Solaris and [=FreeBSD=] operating systems.
|
||||||
|
|
||||||
->''"3Dlabs congratulates the [=OpenSceneGraph=] development community on the release of [=OpenSceneGraph=] 1.0. [=OpenSceneGraph=] is a shining example of how open-source projects can deliver commercial-quality products with outstanding performance and a ton of cutting-edge features. 3Dlabs committed engineering resources to [=OpenSceneGraph=] to help implement full support of programmable shader technology through [=OpenGL=] Shading Language. It is gratifying to see the excitement that developers have for this important cross-platform, real-time visualization library."'''\\
|
->''"3Dlabs congratulates the [=OpenSceneGraph=] development community on the release of [=OpenSceneGraph=] 1.0. [=OpenSceneGraph=] is a shining example of how open-source projects can deliver commercial-quality products with outstanding performance and a ton of cutting-edge features. 3Dlabs committed engineering resources to [=OpenSceneGraph=] to help implement full support of programmable shader technology through [=OpenGL=] Shading Language. It is gratifying to see the excitement that developers have for this important cross-platform, real-time visualization library."'''\\
|
||||||
Randi Rost, director of developer relations at 3Dlabs, http://developer.3Dlabs.com/
|
Randi Rost, director of developer relations at 3Dlabs, http://developer.3Dlabs.com/
|
||||||
@@ -688,7 +297,7 @@ osgpbuffer also example now uses Producer's pbuffer support making it portable a
|
|||||||
|
|
||||||
API refinements, bug fixes and performance improvements:
|
API refinements, bug fixes and performance improvements:
|
||||||
|
|
||||||
There have been many bug fixes, a number of performance improvements and API cleanups that have occurred throughout the 0.9.8 - 0.9.9, too many separate items to enumerate here. Together with the above new features they all go to making the OpenSceneGraph-0.9.9 the most robust, high performance and feature rich version so far, and sets the stage for the upcoming 1.0.
|
There have been many bug fixes, a number of performance improvements and API cleanups that have occured throughout the 0.9.8 - 0.9.9, too many separate items to enumerate here. Together with the above new features they all go to making the OpenSceneGraph-0.9.9 the most robust, high performance and feature rich version so far, and sets the stage for the upcoming 1.0.
|
||||||
|
|
||||||
We would like to thank the following engineers for their contributions in the 0.9.8 - 0.9.9.9 time frame (in alphabetic order):
|
We would like to thank the following engineers for their contributions in the 0.9.8 - 0.9.9.9 time frame (in alphabetic order):
|
||||||
Alberto Farre, Bob Kuehne, Brede Johansen, Carlo Camporesi, Chris Hanson, Don Burns, Donn Mielcarek, Don Tidrow, Farshid Lashkari, Frederic Marmond, Garrett Potts, Igor Kravtchenko, James French, Jan Ciger, John Grant, Joakim Simonsson, Joran Jessurun, Jason Daly, Kevin Moiule, Leandro Motta Barros, Marco Jez, Mason Menninger, Mike Weiblen, Nathan Monteleone, Norman Vine, Olaf Flebbe, Paul Melis, Per Fahlberg, Rainer Oder, Randall Hopper, Reinhard Sainitzer, Robert Osfield, Ruben, Sebastien Grignard, Stephan Huber, Terry Welsh, Thom DeCarlo, Tony Horrobin, Tree, Tugkan Calapoglu, Vivek Rajan, Waltice and Yuzhong Shen
|
Alberto Farre, Bob Kuehne, Brede Johansen, Carlo Camporesi, Chris Hanson, Don Burns, Donn Mielcarek, Don Tidrow, Farshid Lashkari, Frederic Marmond, Garrett Potts, Igor Kravtchenko, James French, Jan Ciger, John Grant, Joakim Simonsson, Joran Jessurun, Jason Daly, Kevin Moiule, Leandro Motta Barros, Marco Jez, Mason Menninger, Mike Weiblen, Nathan Monteleone, Norman Vine, Olaf Flebbe, Paul Melis, Per Fahlberg, Rainer Oder, Randall Hopper, Reinhard Sainitzer, Robert Osfield, Ruben, Sebastien Grignard, Stephan Huber, Terry Welsh, Thom DeCarlo, Tony Horrobin, Tree, Tugkan Calapoglu, Vivek Rajan, Waltice and Yuzhong Shen
|
||||||
@@ -707,7 +316,7 @@ OpenProducer - http://www.andesengineering.com/Producer/index.html
|
|||||||
OpenThreads - http://openthreads.sf.net
|
OpenThreads - http://openthreads.sf.net
|
||||||
xine-lib - http://xinehq.de/
|
xine-lib - http://xinehq.de/
|
||||||
|
|
||||||
OpenSceneGraph Commercial Support, Training and Consultancy links:
|
OpenSceneGraph Commericial Support, Training and Consultancy links:
|
||||||
|
|
||||||
OpenSceneGraph Professional Services - http://www.openscenegraph.com
|
OpenSceneGraph Professional Services - http://www.openscenegraph.com
|
||||||
Andes Engineering - http://www.andesengineering.com
|
Andes Engineering - http://www.andesengineering.com
|
||||||
@@ -721,7 +330,7 @@ Andes Engineering - http://www.andesengineering.com
|
|||||||
|
|
||||||
>>> Support for database archives, improved pager, 3d compressed textures
|
>>> Support for database archives, improved pager, 3d compressed textures
|
||||||
|
|
||||||
Release 0.9.8 reflects a continuation of the prior commitment to release
|
Release 0.9.8 reflects a continuation of the prior committment to release
|
||||||
often, arriving only two short months after 0.9.7. This contrasts sharply
|
often, arriving only two short months after 0.9.7. This contrasts sharply
|
||||||
to the long period between 0.9.6-2 and 0.9.7. The following set of
|
to the long period between 0.9.6-2 and 0.9.7. The following set of
|
||||||
improvements and features are part of the 0.9.8 release.
|
improvements and features are part of the 0.9.8 release.
|
||||||
@@ -1136,7 +745,7 @@ Andes Engineering - http://www.andesengineering.com
|
|||||||
has now been moved to a freetype plug-in which is dynamically loaded on demand,
|
has now been moved to a freetype plug-in which is dynamically loaded on demand,
|
||||||
with the core osgText library providing a default font when the plug-in is
|
with the core osgText library providing a default font when the plug-in is
|
||||||
unavailable. Moving the freetype dependency out of the osgText library makes
|
unavailable. Moving the freetype dependency out of the osgText library makes
|
||||||
it just dependent on OpenGL and Standard C++ like the rest of the core libraries,
|
it just dependant on OpenGL and Standard C++ like the rest of the core libraries,
|
||||||
allowing osgText to compile by default on all platforms.
|
allowing osgText to compile by default on all platforms.
|
||||||
|
|
||||||
Improved thread safety has also been achieved in the core osg and osgUtil libraries
|
Improved thread safety has also been achieved in the core osg and osgUtil libraries
|
||||||
@@ -1561,9 +1170,9 @@ Andes Engineering - http://www.andesengineering.com
|
|||||||
|
|
||||||
Scene graph optimization has been added which can boost performance
|
Scene graph optimization has been added which can boost performance
|
||||||
on some database by as much as an order of magnititude, this is
|
on some database by as much as an order of magnititude, this is
|
||||||
particularly noticeable in .flt based databases. Display list performance
|
particularily noticable in .flt based databases. Display list performance
|
||||||
has also been boosted on NVidia based machines thanks to changing the
|
has also been boosted on NVidia based machines thanks to changing the
|
||||||
compilation and execution of display list into two separate operations.
|
compilation and execution of display list into two seperate operations.
|
||||||
|
|
||||||
App callbacks are now supported on all Nodes, and there now a proper
|
App callbacks are now supported on all Nodes, and there now a proper
|
||||||
app traversal which can be used to animate the scene.
|
app traversal which can be used to animate the scene.
|
||||||
@@ -1613,7 +1222,7 @@ Andes Engineering - http://www.andesengineering.com
|
|||||||
the core scene graph library making extremely easy to take advantage of
|
the core scene graph library making extremely easy to take advantage of
|
||||||
this advanced rendering techinque - normally only seen in research papers.
|
this advanced rendering techinque - normally only seen in research papers.
|
||||||
Check out osgimpostor demo to see how easy it is to add osg::Impostor
|
Check out osgimpostor demo to see how easy it is to add osg::Impostor
|
||||||
nodes to your own models. Impostors are particularly effective are
|
nodes to your own models. Impostors are particularily effective are
|
||||||
reducing scene complexity whilest minimizing the visual impact, making it
|
reducing scene complexity whilest minimizing the visual impact, making it
|
||||||
ideal for scenes with large numbers of complex objects such as a city
|
ideal for scenes with large numbers of complex objects such as a city
|
||||||
scene, or a dense forest.
|
scene, or a dense forest.
|
||||||
@@ -1624,7 +1233,7 @@ Andes Engineering - http://www.andesengineering.com
|
|||||||
|
|
||||||
The cool thing about both the osgreflect and osgimpostor demos is that
|
The cool thing about both the osgreflect and osgimpostor demos is that
|
||||||
there is no hardwiring to achieve the results, the scene graph stores
|
there is no hardwiring to achieve the results, the scene graph stores
|
||||||
all the information necessary to specify the number and type of rendering
|
all the information neccessary to specify the number and type of rendering
|
||||||
passes, and the framework handles the rest behind the scenes. This also
|
passes, and the framework handles the rest behind the scenes. This also
|
||||||
makes it very easy to add these advanced rendering techinques to your
|
makes it very easy to add these advanced rendering techinques to your
|
||||||
own applications as everything is cleanly encapsulated with
|
own applications as everything is cleanly encapsulated with
|
||||||
@@ -1636,7 +1245,7 @@ Andes Engineering - http://www.andesengineering.com
|
|||||||
web or your own.
|
web or your own.
|
||||||
|
|
||||||
osg::Camera has been totally revamped and now supports asymetric
|
osg::Camera has been totally revamped and now supports asymetric
|
||||||
and othographics projections in addition to the symmetrical perspective
|
and othographics projections in addition to the symetrical perspective
|
||||||
projections.
|
projections.
|
||||||
|
|
||||||
And finally, support for texture subloading has been added to osg::Texture
|
And finally, support for texture subloading has been added to osg::Texture
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#ANDROID ROOT MAKEFILE
|
|
||||||
OSG_ROOT := $(call my-dir)
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
OSG_ROOT := $(LOCAL_PATH)
|
|
||||||
OSGInclude := $(OSG_ROOT)/include/OpenThreads \
|
|
||||||
$(OSG_ROOT)/include/osg
|
|
||||||
include src/Android.mk
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
#ANDROID makefile ${MODULE_NAME}
|
|
||||||
|
|
||||||
LOCAL_PATH := ${MODULE_DIR}
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
ifeq (${ANDROID_OPTIM_NEON},true)
|
|
||||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
|
||||||
LOCAL_ARM_NEON := true
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq (${ANDROID_OPTIM_ARM32},true)
|
|
||||||
LOCAL_ARM_MODE := arm
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
LOCAL_CPP_EXTENSION := ${CPP_EXTENSION}
|
|
||||||
|
|
||||||
LOCAL_LDLIBS := ${MODULE_LIBS_FLAGS}
|
|
||||||
|
|
||||||
LOCAL_MODULE := ${MODULE_NAME}
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := ${MODULE_SOURCES}
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := ${MODULE_INCLUDES}
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := ${MODULE_FLAGS_C}
|
|
||||||
|
|
||||||
LOCAL_CPPFLAGS := ${MODULE_FLAGS_CPP}
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := ${MODULE_LIBS_SHARED}
|
|
||||||
LOCAL_STATIC_LIBRARIES := ${MODULE_LIBS_STATIC}
|
|
||||||
|
|
||||||
include ${MODULE_BUILD_TYPE}
|
|
||||||
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
#ANDROID makefile in src
|
|
||||||
|
|
||||||
SERIALIZER_ROOT := $(call my-dir)
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
SERIALIZER_ROOT := $(LOCAL_PATH)
|
|
||||||
|
|
||||||
#include $(call all-subdir-makefiles)
|
|
||||||
include $(SERIALIZER_ROOT)/osg/Android.mk
|
|
||||||
include $(SERIALIZER_ROOT)/osgAnimation/Android.mk
|
|
||||||
include $(SERIALIZER_ROOT)/osgFX/Android.mk
|
|
||||||
include $(SERIALIZER_ROOT)/osgManipulator/Android.mk
|
|
||||||
include $(SERIALIZER_ROOT)/osgParticle/Android.mk
|
|
||||||
include $(SERIALIZER_ROOT)/osgShadow/Android.mk
|
|
||||||
include $(SERIALIZER_ROOT)/osgSim/Android.mk
|
|
||||||
include $(SERIALIZER_ROOT)/osgTerrain/Android.mk
|
|
||||||
include $(SERIALIZER_ROOT)/osgText/Android.mk
|
|
||||||
include $(SERIALIZER_ROOT)/osgVolume/Android.mk
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#ANDROID makefile in src
|
|
||||||
|
|
||||||
SRC_ROOT := $(call my-dir)
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
SRC_ROOT := $(LOCAL_PATH)
|
|
||||||
|
|
||||||
$ENV{AND_OSG_LIB_PATHS}
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
package="com.openscenegraph"
|
|
||||||
android:versionCode="1"
|
|
||||||
android:versionName="1.0">
|
|
||||||
<uses-sdk android:minSdkVersion="8" />
|
|
||||||
</manifest>
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
#ANDROID APPLICATION MAKEFILE
|
|
||||||
APP_BUILD_SCRIPT := $(call my-dir)/Android.mk
|
|
||||||
APP_PROJECT_PATH := $(call my-dir)
|
|
||||||
|
|
||||||
APP_OPTIM := ${ANDROID_RELEASE_OPTIM}
|
|
||||||
|
|
||||||
APP_PLATFORM := android-${ANDROID_PLATFORM}
|
|
||||||
APP_STL := ${ANDROID_STL}
|
|
||||||
APP_CPPFLAGS := -fexceptions -frtti
|
|
||||||
#APP_CPPFLAGS := -Os -mthumb-interwork -fno-short-enums
|
|
||||||
#APP_CPPFLAGS := -Wl,--no-undefined
|
|
||||||
|
|
||||||
APP_ABI := ${ANDROID_ABI}
|
|
||||||
|
|
||||||
APP_MODULES := $ENV{AND_OSG_LIB_NAMES}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
1 VERSIONINFO
|
|
||||||
FILEVERSION ${OPENSCENEGRAPH_MAJOR_VERSION}, ${OPENSCENEGRAPH_MINOR_VERSION}, ${OPENSCENEGRAPH_PATCH_VERSION}, ${OPENSCENEGRAPH_SOVERSION}
|
|
||||||
PRODUCTVERSION ${OPENSCENEGRAPH_MAJOR_VERSION}, ${OPENSCENEGRAPH_MINOR_VERSION}, ${OPENSCENEGRAPH_PATCH_VERSION}, ${OPENSCENEGRAPH_SOVERSION}
|
|
||||||
FILEFLAGSMASK 0x17L
|
|
||||||
#ifdef _DEBUG
|
|
||||||
FILEFLAGS 0x1L
|
|
||||||
#else
|
|
||||||
FILEFLAGS 0x0L
|
|
||||||
#endif
|
|
||||||
FILEOS 0x4L
|
|
||||||
FILETYPE 0x0L
|
|
||||||
FILESUBTYPE 0x0L
|
|
||||||
BEGIN
|
|
||||||
BLOCK "StringFileInfo"
|
|
||||||
BEGIN
|
|
||||||
BLOCK "040904b0"
|
|
||||||
BEGIN
|
|
||||||
VALUE "FileDescription", "OpenSceneGraph Binary"
|
|
||||||
VALUE "FileVersion", "${OPENSCENEGRAPH_MAJOR_VERSION}, ${OPENSCENEGRAPH_MINOR_VERSION}, ${OPENSCENEGRAPH_PATCH_VERSION}, ${OPENSCENEGRAPH_SOVERSION}"
|
|
||||||
VALUE "InternalName", "OSG"
|
|
||||||
VALUE "LegalCopyright", "Copyright (C) 2009"
|
|
||||||
VALUE "OriginalFilename", ""
|
|
||||||
VALUE "ProductName", "OpenSceneGraph"
|
|
||||||
VALUE "ProductVersion", "${OPENSCENEGRAPH_MAJOR_VERSION}, ${OPENSCENEGRAPH_MINOR_VERSION}, ${OPENSCENEGRAPH_PATCH_VERSION}, ${OPENSCENEGRAPH_SOVERSION}"
|
|
||||||
END
|
|
||||||
END
|
|
||||||
BLOCK "VarFileInfo"
|
|
||||||
BEGIN
|
|
||||||
VALUE "Translation", 0x409, 1200
|
|
||||||
END
|
|
||||||
END
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
1 VERSIONINFO
|
|
||||||
FILEVERSION ${OPENTHREADS_MAJOR_VERSION}, ${OPENTHREADS_MINOR_VERSION}, ${OPENTHREADS_PATCH_VERSION}, ${OPENTHREADS_SOVERSION}
|
|
||||||
PRODUCTVERSION ${OPENTHREADS_MAJOR_VERSION}, ${OPENTHREADS_MINOR_VERSION}, ${OPENTHREADS_PATCH_VERSION}, ${OPENTHREADS_SOVERSION}
|
|
||||||
FILEFLAGSMASK 0x17L
|
|
||||||
#ifdef _DEBUG
|
|
||||||
FILEFLAGS 0x1L
|
|
||||||
#else
|
|
||||||
FILEFLAGS 0x0L
|
|
||||||
#endif
|
|
||||||
FILEOS 0x4L
|
|
||||||
FILETYPE 0x0L
|
|
||||||
FILESUBTYPE 0x0L
|
|
||||||
BEGIN
|
|
||||||
BLOCK "StringFileInfo"
|
|
||||||
BEGIN
|
|
||||||
BLOCK "040904b0"
|
|
||||||
BEGIN
|
|
||||||
VALUE "FileDescription", "OPENTHREADS Binary"
|
|
||||||
VALUE "FileVersion", "${OPENTHREADS_MAJOR_VERSION}, ${OPENTHREADS_MINOR_VERSION}, ${OPENTHREADS_PATCH_VERSION}, ${OPENTHREADS_SOVERSION}"
|
|
||||||
VALUE "InternalName", "OSG"
|
|
||||||
VALUE "LegalCopyright", "Copyright (C) 2009"
|
|
||||||
VALUE "OriginalFilename", ""
|
|
||||||
VALUE "ProductName", "OPENTHREADS"
|
|
||||||
VALUE "ProductVersion", "${OPENTHREADS_MAJOR_VERSION}, ${OPENTHREADS_MINOR_VERSION}, ${OPENTHREADS_PATCH_VERSION}, ${OPENTHREADS_SOVERSION}"
|
|
||||||
END
|
|
||||||
END
|
|
||||||
BLOCK "VarFileInfo"
|
|
||||||
BEGIN
|
|
||||||
VALUE "Translation", 0x409, 1200
|
|
||||||
END
|
|
||||||
END
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
Mapping extensionless header files to C++ in Visual Studio
|
|
||||||
=============================================================================
|
|
||||||
|
|
||||||
Previous versions of the OSG included registry files which enabled syntax
|
|
||||||
highlighting for OSG's extensionless headers in Visual Studio. These are not
|
|
||||||
needed anymore, because starting with Visual Studio 2002 (7.0), there is a
|
|
||||||
setting that will map extensionless files to a certain language in the
|
|
||||||
options. This also works for the Express Editions.
|
|
||||||
|
|
||||||
1. Go to Tools-Options.
|
|
||||||
2. Open the Text Editor section, and click on File Extension.
|
|
||||||
3. At the bottom of the window, check the Map Extensionless Files To
|
|
||||||
checkbox, and select Microsoft Visual C++ in the list to the right.
|
|
||||||
|
|
||||||
Note that if you use this feature for other languages, you will have to
|
|
||||||
change it when needed. If that is too cumbersome you may want to generate
|
|
||||||
the registry files and do it that way instead. Please see the
|
|
||||||
.reg files in previous versions of OSG in the VisualStudio directory for
|
|
||||||
a guide on how to do that (hint: check the location of the registry key
|
|
||||||
to make sure the added values end up in the right place for your version
|
|
||||||
of Visual Studio).
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
@echo off
|
|
||||||
REM This script provides a commandline shell properly configured to run OSG
|
|
||||||
REM executables directly from the OpenThreads/OpenSceneGraph source
|
|
||||||
REM trees.
|
|
||||||
REM mew 2004-07-16
|
|
||||||
|
|
||||||
cd ..\..
|
|
||||||
set PATH=%CD%\OpenThreads\bin\win32;%CD%\bin;%CD%\3rdParty\bin;%PATH%
|
|
||||||
set OSG_FILE_PATH=%CD%\OpenSceneGraph-Data;%OSG_FILE_PATH%
|
|
||||||
|
|
||||||
REM uncomment one of these for your desired notify level...
|
|
||||||
rem set OSG_NOTIFY_LEVEL=ALWAYS
|
|
||||||
rem set OSG_NOTIFY_LEVEL=FATAL
|
|
||||||
rem set OSG_NOTIFY_LEVEL=WARN
|
|
||||||
rem set OSG_NOTIFY_LEVEL=NOTICE
|
|
||||||
rem set OSG_NOTIFY_LEVEL=DEBUG
|
|
||||||
rem set OSG_NOTIFY_LEVEL=DEBUG_FP
|
|
||||||
rem set OSG_NOTIFY_LEVEL=INFO
|
|
||||||
|
|
||||||
TITLE osgShell
|
|
||||||
%COMSPEC% /K
|
|
||||||
|
|
||||||
|
|
||||||
120
README.md
@@ -1,120 +0,0 @@
|
|||||||
[](https://travis-ci.org/openscenegraph/OpenSceneGraph)
|
|
||||||
[](https://scan.coverity.com/projects/openscenegraph-openscenegraph)
|
|
||||||
[](https://codedocs.xyz/openscenegraph/OpenSceneGraph/)
|
|
||||||
[ABI Tracker](https://abi-laboratory.pro/tracker/timeline/openscenegraph/ "ABI Tracker")
|
|
||||||
|
|
||||||
# Introduction
|
|
||||||
|
|
||||||
Welcome to the OpenSceneGraph (OSG).
|
|
||||||
|
|
||||||
For up-to-date information on the project, in-depth details on how to compile and run libraries and examples, see the documentation on the OpenSceneGraph website:
|
|
||||||
|
|
||||||
http://www.openscenegraph.org/index.php/documentation
|
|
||||||
|
|
||||||
For support subscribe to our public mailing list or forum, details at:
|
|
||||||
|
|
||||||
http://www.openscenegraph.org/index.php/support
|
|
||||||
|
|
||||||
For the impatient, we've included quick build instructions below, these are are broken down is three parts:
|
|
||||||
|
|
||||||
1) General notes on building the OpenSceneGraph
|
|
||||||
2) macOS release notes
|
|
||||||
3) iOS release notes
|
|
||||||
|
|
||||||
If details below are not sufficient then head over to the openscenegraph.org to the Documentation/GettingStarted and Documentation/PlatformSpecifics sections for more indepth instructions.
|
|
||||||
|
|
||||||
Robert Osfield.
|
|
||||||
Project Lead.
|
|
||||||
25th July 2019.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Section 1. How to build OpenSceneGraph
|
|
||||||
|
|
||||||
The OpenSceneGraph uses the CMake build system to generate a platform-specific build environment. CMake reads the `CMakeLists.txt` files that you'll find throughout the OpenSceneGraph directories, checks for installed dependencies and then generates files for the selected build system.
|
|
||||||
|
|
||||||
If you don't already have CMake installed on your system you can grab it from http://www.cmake.org, use version 2.8.0 or later. Details on the OpenSceneGraph's CMake build can be found at:
|
|
||||||
|
|
||||||
http://www.openscenegraph.org/projects/osg/wiki/Build/CMake
|
|
||||||
|
|
||||||
Under Unix-like systems (i.e. Linux, IRIX, Solaris, Free-BSD, HP-UX, AIX, macOS) use the `cmake` or `ccmake` command-line utils. Note that `cmake .` defaults to building Release to ensure that you get the best performance from your final libraries/applications.
|
|
||||||
|
|
||||||
cd OpenSceneGraph
|
|
||||||
cmake .
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
Alternatively, you can create an out-of-source build directory and run cmake or ccmake from there. The advantage to this approach is that the temporary files created by CMake won't clutter the OpenSceneGraph source directory, and also makes it possible to have multiple independent build targets by creating multiple build directories. In a directory alongside the OpenSceneGraph use:
|
|
||||||
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ../OpenSceneGraph
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
Under Windows use the GUI tool CMakeSetup to build your VisualStudio files. The following page on our wiki dedicated to the CMake build system should help guide you through the process:
|
|
||||||
|
|
||||||
http://www.openscenegraph.org/index.php/documentation/platform-specifics/windows
|
|
||||||
|
|
||||||
Under macOS you can either use the CMake build system above, or use the Xcode projects that you will find in the OpenSceneGraph/Xcode directory. See release notes on macOS CMake build below.
|
|
||||||
|
|
||||||
For further details on compilation, installation and platform-specific information read "Getting Started" guide:
|
|
||||||
|
|
||||||
http://www.openscenegraph.org/index.php/documentation/10-getting-started
|
|
||||||
|
|
||||||
|
|
||||||
## Section 2. Release notes on macOS build, by Eric Sokolowski et al.
|
|
||||||
|
|
||||||
There are two ways to compile OpenSceneGraph under macOS. The recommended way is to use CMake to generate Xcode project files and then use Xcode to build the library. The default project will be able to build Debug or Release libraries, examples, and sample applications.
|
|
||||||
|
|
||||||
The alternative is to build OpenSceneGraph from the command line using `make` or `ninja` using the instructions for Unix-like systems above.
|
|
||||||
|
|
||||||
Here are some key settings to consider when using CMake:
|
|
||||||
|
|
||||||
- BUILD_OSG_EXAMPLES - By default this is turned off. Turn this setting on to compile many great example programs.
|
|
||||||
- CMAKE_OSX_ARCHITECTURES - Xcode can create applications, executables, libraries, and frameworks that can be run on more than one architecture. Use this setting to indicate the architectures on which to build OSG. x86_64 is the only supported value for OS versions > 10.7.
|
|
||||||
- OSG_BUILD_APPLICATION_BUNDLES - Normally only executable binaries are created for the examples and sample applications. Turn this option on if you want to create real macOS .app bundles. There are caveats to creating `.app` bundles, see below.
|
|
||||||
- OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX - By default macOS uses the `imageio` plugin instead of the plugins for the individual file types (e.g. `jpg`, `gif`, etc.) to load image file types. The `imageio` plugin can handle all popular file formats through the ImageIO framework.
|
|
||||||
- OSG_WINDOWING_SYSTEM - You have the choice to use Cocoa, Carbon, or X11 when building applications on macOS. Cocoa is the default for OS versions >= 10.5. Carbon and X11 are no longer actively supported, either by Apple or the OSG community.
|
|
||||||
|
|
||||||
|
|
||||||
### APPLICATION BUNDLES (.app bundles)
|
|
||||||
|
|
||||||
The example programs when built as application bundles only contain the executable file. They do not contain the dependent libraries as would a normal bundle, so they are not generally portable to other machines.
|
|
||||||
They also do not know where to find plugins. An environmental variable OSG_LIBRARY_PATH may be set to point to the location where the plugin .so files are located. OSG_FILE_PATH may be set to point to the location where data files are located. Setting OSG_FILE_PATH to the OpenSceneGraph-Data directory is very useful when testing OSG by running the example programs.
|
|
||||||
|
|
||||||
Many of the example programs use command-line arguments. When double-clicking on an application (or using the equivalent "open" command on the command line) only those examples and applications that do not require command-line arguments will successfully run. The executable file within the .app bundle can be run from the command-line if command-line arguments are needed.
|
|
||||||
|
|
||||||
|
|
||||||
## Section 3. Release notes on iOS build, by Thomas Hogarth
|
|
||||||
|
|
||||||
With CMake 3.11, XCode 9.4 and the iOS sdk 11.4 installed you can generate an iOS XCode project using the following command line:
|
|
||||||
|
|
||||||
export THIRDPARTY_PATH=/path/to/3rdParty
|
|
||||||
cmake ./ -G Xcode -DOSG_BUILD_PLATFORM_IPHONE:BOOL=ON \
|
|
||||||
-DIPHONE_SDKVER="11.4" \
|
|
||||||
-DIPHONE_VERSION_MIN="10.0" \
|
|
||||||
-DOPENGL_PROFILE:STRING=GLES3 \
|
|
||||||
-DOSG_CPP_EXCEPTIONS_AVAILABLE:BOOL=ON \
|
|
||||||
-DBUILD_OSG_APPLICATIONS:BOOL=OFF \
|
|
||||||
-DBUILD_OSG_EXAMPLES:BOOL=ON \
|
|
||||||
-DOSG_WINDOWING_SYSTEM:STRING=IOS \
|
|
||||||
-DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX="imageio" \
|
|
||||||
-DDYNAMIC_OPENSCENEGRAPH:BOOL=OFF \
|
|
||||||
-DDYNAMIC_OPENTHREADS:BOOL=OFF \
|
|
||||||
-DCURL_INCLUDE_DIR:PATH="$THIRDPARTY_PATH/curl-ios-device/include" \
|
|
||||||
-DCURL_LIBRARY:PATH="$THIRDPARTY_PATH/curl-ios-device/lib/libcurl.a" \
|
|
||||||
-DFREETYPE_INCLUDE_DIR_freetype2:PATH="$THIRDPARTY_PATH/freetype-ios-universal/include/freetype" \
|
|
||||||
-DFREETYPE_INCLUDE_DIR_ft2build:PATH="$THIRDPARTY_PATH/freetype-ios-universal/include" \
|
|
||||||
-DFREETYPE_LIBRARY:PATH="$THIRDPARTY_PATH/freetype-ios-universal/lib/libFreetype2.a" \
|
|
||||||
-DTIFF_INCLUDE_DIR:PATH="$THIRDPARTY_PATH/tiff-ios-device/include" \
|
|
||||||
-DTIFF_LIBRARY:PATH="$THIRDPARTY_PATH/tiff-ios-device/lib/libtiff.a" \
|
|
||||||
-DGDAL_INCLUDE_DIR:PATH="$THIRDPARTY_PATH/gdal-ios-device/include" \
|
|
||||||
-DGDAL_LIBRARY:PATH="$THIRDPARTY_PATH/gdal-ios-device/lib/libgdal.a"
|
|
||||||
|
|
||||||
|
|
||||||
Be sure to set the THIRDPARTY_PATH to the path containing your thirdparty dependencies. Set IPHONE_SDKVER to the version of the iOS sdk you have installed, in this instance 11.4. IPHONE_VERSION_MIN controls the deployment sdk used by xcode, and lastly set OPENGL_PROFILE to the version of GLES you want to use.
|
|
||||||
|
|
||||||
Once this completes an XCode project will have been generated in the osg root folder. Open the generated Xcode project, select the example_osgViewerIPhone target. In 'General' tab set a development team.
|
|
||||||
|
|
||||||
Once this is done you should be able to build and deploy the `example_osgViewerIPhone` target on your device.
|
|
||||||
69
README.txt
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
Welcome to the OpenSceneGraph (OSG).
|
||||||
|
|
||||||
|
For up-to-date information on the project, in-depth details on how to
|
||||||
|
compile and run libraries and examples, see the documentation on the
|
||||||
|
OpenSceneGraph website:
|
||||||
|
|
||||||
|
http://www.openscenegraph.org
|
||||||
|
|
||||||
|
For the impatient, read the simplified build notes below.
|
||||||
|
|
||||||
|
Robert Osfield.
|
||||||
|
Project Lead.
|
||||||
|
3rd October 2007.
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
|
How to build the OpenSceneGraph
|
||||||
|
===============================
|
||||||
|
|
||||||
|
The OpenSceneGraph uses the CMake build system to generate a
|
||||||
|
platform-specific build environment. CMake reads the CMakeLists.txt
|
||||||
|
files that you'll find throughout the OpenSceneGraph directories,
|
||||||
|
checks for installed dependenciesand then generates the appropriate
|
||||||
|
build system.
|
||||||
|
|
||||||
|
If you don't already have CMake installed on your system you can grab
|
||||||
|
it from http://www.cmake.org, use version 2.4.6 or later. Details on the
|
||||||
|
OpenSceneGraph's CMake build can be found at:
|
||||||
|
|
||||||
|
http://www.openscenegraph.org/projects/osg/wiki/Build/CMake
|
||||||
|
|
||||||
|
Under unices (i.e. Linux, IRIX, Solaris, Free-BSD, HP-Ux, AIX, OSX)
|
||||||
|
use the cmake or ccmake command-line utils, or use the included tiny
|
||||||
|
configure script that'll run cmake for you. The configure script
|
||||||
|
simply runs 'cmake . -DCMAKE_BUILD_TYPE=Release' to ensure that you
|
||||||
|
get the best performance from your final libraries/applications.
|
||||||
|
|
||||||
|
cd OpenSceneGraph
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
Alternatively, you can create an out-of-source build directory and run
|
||||||
|
cmake or ccmake from there. The advantage to this approach is that the
|
||||||
|
temporary files created by CMake won't clutter the OpenSceneGraph
|
||||||
|
source directory, and also makes it possible to have multiple
|
||||||
|
independent build targets by creating multiple build directories. In a
|
||||||
|
directory alongside the OpenSceneGraph use:
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ../OpenSceneGraph -DCMAKE_BUILD_TYPE=Release
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
Under Windows use the GUI tool CMakeSetup to build your VisualStudio
|
||||||
|
files. The following page on our wiki dedicated to the CMake build
|
||||||
|
system should help guide you through the process:
|
||||||
|
|
||||||
|
http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio
|
||||||
|
|
||||||
|
Under OSX you can either use the CMake build system above, or use the
|
||||||
|
Xcode projects that you will find in the OpenSceneGraph/Xcode
|
||||||
|
directory.
|
||||||
|
|
||||||
|
For further details on compilation, installation and platform-specific
|
||||||
|
information read "Getting Started" guide:
|
||||||
|
|
||||||
|
http://www.openscenegraph.org/projects/osg/wiki/Support/GettingStarted
|
||||||
201
VisualStudio/LANGEXT.DAT
Normal file
@@ -0,0 +1,201 @@
|
|||||||
|
langext.dat - Map explicit filename to a language
|
||||||
|
[C/C++]
|
||||||
|
algorithm bitset cassert cctype cerrno cfloat ciso646 climits clocale cmath complex
|
||||||
|
csetjmp csignal cstdarg cstddef cstdio cstdlib cstring ctime cwchar cwctype
|
||||||
|
deque exception fstream functional iomanip ios iosfwd iostream istream iterator
|
||||||
|
limits list locale map memory new numeric ostream queue
|
||||||
|
set sstream stack stdexcept streambuf string strstream typeinfo utility valarray vector
|
||||||
|
xcomplex xios xiosbase xlocale xlocinfo xlocmon xlocnum xloctime xmemory xstddef xstring xtree xutility
|
||||||
|
AccelOperator
|
||||||
|
AlphaFunc
|
||||||
|
AnimationPath
|
||||||
|
AnimationPathManipulator
|
||||||
|
ApplicationUsage
|
||||||
|
ArgumentParser
|
||||||
|
Array
|
||||||
|
Billboard
|
||||||
|
BlendFunc
|
||||||
|
BlinkSequence
|
||||||
|
BoundingBox
|
||||||
|
BoundingSphere
|
||||||
|
BoundsChecking
|
||||||
|
buffered_value
|
||||||
|
Camera
|
||||||
|
CameraManipulator
|
||||||
|
CenteredPlacer
|
||||||
|
ClearNode
|
||||||
|
ClipNode
|
||||||
|
ClipPlane
|
||||||
|
CollectOccludersVisitor
|
||||||
|
ColorMask
|
||||||
|
ColorMatrix
|
||||||
|
ConvexPlanarOccluder
|
||||||
|
ConvexPlanarPolygon
|
||||||
|
CopyOp
|
||||||
|
Counter
|
||||||
|
CubeMapGenerator
|
||||||
|
CullFace
|
||||||
|
CullingSet
|
||||||
|
CullStack
|
||||||
|
CullVisitor
|
||||||
|
DelaunayTriangulator
|
||||||
|
Depth
|
||||||
|
DisplayListVisitor
|
||||||
|
DisplayRequirementsVisitor
|
||||||
|
DisplaySettings
|
||||||
|
DOFTransform
|
||||||
|
DotOsgWrapper
|
||||||
|
Drawable
|
||||||
|
DrawPixels
|
||||||
|
DriveManipulator
|
||||||
|
DynamicLibrary
|
||||||
|
Emitter
|
||||||
|
Endian
|
||||||
|
EventAdapter
|
||||||
|
Export
|
||||||
|
fast_back_stack
|
||||||
|
Field
|
||||||
|
FieldReader
|
||||||
|
FieldReaderIterator
|
||||||
|
FileNameUtils
|
||||||
|
FileUtils
|
||||||
|
FlightManipulator
|
||||||
|
FluidFrictionOperator
|
||||||
|
Fog
|
||||||
|
Font
|
||||||
|
ForceOperator
|
||||||
|
FrameStamp
|
||||||
|
FrontFace
|
||||||
|
Geode
|
||||||
|
Geometry
|
||||||
|
GeoSet
|
||||||
|
GL
|
||||||
|
GLExtensions
|
||||||
|
GLU
|
||||||
|
Group
|
||||||
|
GUIActionAdapter
|
||||||
|
GUIEventAdapter
|
||||||
|
GUIEventHandler
|
||||||
|
GUIEventHandlerVisitor
|
||||||
|
HalfWayMapGenerator
|
||||||
|
HighlightMapGenerator
|
||||||
|
Image
|
||||||
|
Impostor
|
||||||
|
ImpostorSprite
|
||||||
|
Input
|
||||||
|
InsertImpostorsVisitor
|
||||||
|
Interpolator
|
||||||
|
IntersectVisitor
|
||||||
|
KeyboardMouseCallback
|
||||||
|
KeySwitchCameraManipulator
|
||||||
|
Light
|
||||||
|
LightModel
|
||||||
|
LightPoint
|
||||||
|
LightPointNode
|
||||||
|
LightSource
|
||||||
|
LinearInterpolator
|
||||||
|
LineSegment
|
||||||
|
LineStipple
|
||||||
|
LineWidth
|
||||||
|
LOD
|
||||||
|
Material
|
||||||
|
Math
|
||||||
|
Matrix
|
||||||
|
MatrixTransform
|
||||||
|
ModularEmitter
|
||||||
|
ModularProgram
|
||||||
|
MultiSegmentPlacer
|
||||||
|
Node
|
||||||
|
NodeCallback
|
||||||
|
NodeVisitor
|
||||||
|
Notify
|
||||||
|
Object
|
||||||
|
OccluderNode
|
||||||
|
Operator
|
||||||
|
Optimizer
|
||||||
|
OsgCameraGroup
|
||||||
|
OsgSceneHandler
|
||||||
|
Output
|
||||||
|
ParameterOutput
|
||||||
|
Particle
|
||||||
|
ParticleProcessor
|
||||||
|
ParticleSystem
|
||||||
|
ParticleSystemUpdater
|
||||||
|
PickVisitor
|
||||||
|
Placer
|
||||||
|
Plane
|
||||||
|
Point
|
||||||
|
PointPlacer
|
||||||
|
PolygonMode
|
||||||
|
PolygonOffset
|
||||||
|
PolygonStipple
|
||||||
|
Polytope
|
||||||
|
PositionAttitudeTransform
|
||||||
|
PrimitiveSet
|
||||||
|
Program
|
||||||
|
Projection
|
||||||
|
Quat
|
||||||
|
RadialShooter
|
||||||
|
RandomRateCounter
|
||||||
|
range
|
||||||
|
ReaderWriter
|
||||||
|
ReadFile
|
||||||
|
ref_ptr
|
||||||
|
Referenced
|
||||||
|
ReflectionMapGenerator
|
||||||
|
Registry
|
||||||
|
RenderBin
|
||||||
|
StateGraph
|
||||||
|
RenderLeaf
|
||||||
|
RenderStage
|
||||||
|
PositionalStateContianer
|
||||||
|
SceneView
|
||||||
|
Sector
|
||||||
|
SectorPlacer
|
||||||
|
SegmentPlacer
|
||||||
|
Sequence
|
||||||
|
SetSceneViewVisitor
|
||||||
|
ShadeModel
|
||||||
|
ShadowVolumeOccluder
|
||||||
|
Shape
|
||||||
|
ShapeDrawable
|
||||||
|
Shooter
|
||||||
|
SmoothingVisitor
|
||||||
|
State
|
||||||
|
StateAttribute
|
||||||
|
StateSet
|
||||||
|
StateSetManipulator
|
||||||
|
Statistics
|
||||||
|
Stencil
|
||||||
|
String
|
||||||
|
Switch
|
||||||
|
Tessellator
|
||||||
|
TexEnv
|
||||||
|
TexEnvCombine
|
||||||
|
TexGen
|
||||||
|
TexMat
|
||||||
|
Text
|
||||||
|
Texture
|
||||||
|
Texture1D
|
||||||
|
Texture2D
|
||||||
|
Texture3D
|
||||||
|
TextureCubeMap
|
||||||
|
TextureRectangle
|
||||||
|
Timer
|
||||||
|
TrackballManipulator
|
||||||
|
Transform
|
||||||
|
TransformCallback
|
||||||
|
TriangleFunctor
|
||||||
|
TriStripVisitor
|
||||||
|
UnitTestFramework
|
||||||
|
UpdateVisitor
|
||||||
|
VariableRateCounter
|
||||||
|
Vec2
|
||||||
|
Vec3
|
||||||
|
Vec4
|
||||||
|
Version
|
||||||
|
VertexProgram
|
||||||
|
Viewer
|
||||||
|
ViewerEventHandler
|
||||||
|
Viewport
|
||||||
|
WriteFile
|
||||||
93
VisualStudio/MUST_READ_ME.txt
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
Detailed build documentation can be found on the OpenSceneGraph website at:
|
||||||
|
|
||||||
|
http://openscenegraph.org/osgwiki/pmwiki.php/PlatformSpecifics/VisualStudio
|
||||||
|
|
||||||
|
IMPORTANT NOTE: Whilst the OSG will compile cleanly with the basic VC++6.0
|
||||||
|
and its own STL implementation, the OSG will crash regularily due to bugs
|
||||||
|
in VC++6.0's STL. VC++6.0's STL is horribly broken and therefore is *NOT*
|
||||||
|
supported. Do not attempt to use the OSG in conjunction with native VC++6.0
|
||||||
|
STL implemention.
|
||||||
|
|
||||||
|
The supported combinations are:
|
||||||
|
|
||||||
|
1.Visual Studio8.x .NET
|
||||||
|
2.Visual Studio7.x .NET
|
||||||
|
|
||||||
|
Deprecated are:
|
||||||
|
|
||||||
|
3.Visual Studio6.0 + Dinkumware's STL bug fix patches
|
||||||
|
4.Visual Studio6.0 + STLport
|
||||||
|
|
||||||
|
For details on how to patch VisualStudio6.0 see the above website link.
|
||||||
|
Note, osgIntrospection, src/osgWrapper plugins and the
|
||||||
|
osgintrospection example cannot be compiled under VisualStudio plugin.
|
||||||
|
You will also need to run the fixup-vc6-dsps.pl script to clean up the
|
||||||
|
project files that won't otherwise compile to do new elements required
|
||||||
|
for support of Window 64 bit build under VS 7.x and 8.x.
|
||||||
|
|
||||||
|
Several of the plugins and examples require external dependancies. Full details on where to obtain
|
||||||
|
these can be found in doc/dependancies.html.
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
|
For syntax highlighting in VisualStudio which the standard C++ style headers
|
||||||
|
found in the OSG :
|
||||||
|
|
||||||
|
VisualStudio6.0
|
||||||
|
|
||||||
|
Substiture the LANDEXT.DAT file found in this directory with the one found
|
||||||
|
*\Common\MSDev98\Bin
|
||||||
|
|
||||||
|
VisualStudio7.x & 8.x/.NET
|
||||||
|
|
||||||
|
Install the syntaxhighlight.reg (just double click it). This will update
|
||||||
|
Extensionless file for Visual Studio. Don't worry, it will keep the
|
||||||
|
current extensionless files (STL ones) intact.
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
|
How to use the Visual Studio projects:
|
||||||
|
|
||||||
|
To build the OpenSceneGraph code in Visual Studio, you normally must use the VisualStudio.sln solution file provided. The individual projects won't build as-is, because they depend on each other and only the VisualStudio.sln file provides those dependencies.
|
||||||
|
|
||||||
|
To create a program based on an example, probably the easiest way is to do this:
|
||||||
|
|
||||||
|
1. Copy the VisualStudio.sln project to a new file in the same directory
|
||||||
|
2. Copy the project you want to base your new project on to a new directory in the same level of the directory tree
|
||||||
|
3. Open the new .sln file you copied in step 1
|
||||||
|
4. Remove unneeded projects from it, but keep the core libraries (osg, osgDB, etc.). Shift-clicking to select a bunch of projects at once makes this easier to do
|
||||||
|
5. Add the new project to that solution
|
||||||
|
6. Set the dependencies for your new project. This is most easily done by opening the Solution Properties dialog, going to Project Dependencies, and checking off the libraries your project depends on
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
|
Building 64 bit binaries
|
||||||
|
|
||||||
|
64 bit OpenSceneGraph and OpenThreads binaries can be built in Visual Studio 8, but several extra steps are required due to limits of the Visual Studio 6 project files:
|
||||||
|
|
||||||
|
1. For each of the OpenSceneGraph, and OpenThreads .dsw files, :
|
||||||
|
a. Open the .dsw or .sln file and convert all projects to VS 8 format.
|
||||||
|
b. Open the Configuration Manager window under the Build menu, bring up the New Solution Platform window by selecting <New...> in the Active solution platform drop-down menu. Select x64 as the new platform and copy settings from Win32 (you need to have the x64 compiler installed to see the x64 platform option). Ensure the Create new project platforms checkbox is selected. Click OK, then close the Configuration Manager window.
|
||||||
|
c. Do a "Save All" to save the project files.
|
||||||
|
|
||||||
|
2. Visual Studio unfortunately chooses its own Output Directory setting for the x64 configurations in step 1.b., and this must be reset to the Win32 setting.
|
||||||
|
|
||||||
|
IF PERL _IS_ INSTALLED (native or Cygwin), do the following:
|
||||||
|
a. Close all Visual Studio solutions.
|
||||||
|
b. Open a command shell and cd to the OpenSceneGraph/VisualStudio directory.
|
||||||
|
c. Run the command "perl reset-64bit-outdirs.pl".
|
||||||
|
d. Reopen the solutions.
|
||||||
|
|
||||||
|
IF PERL _IS NOT_ INSTALLED, do the following to accomplish the same thing manually:
|
||||||
|
a. In the OpenThreads solution, open the properties window for the OpenThreads project.
|
||||||
|
i. Select multiple configurations, Debug and Release. Under the General page, overwrite the Output Directory path of the x64 platform with the corresponding Win32 path. For static builds, do the same thing for the Debug Static and Release Static configurations.
|
||||||
|
b. In the OpenSceneGraph solution:
|
||||||
|
i. Select all the "Application" and "Example" projects in the Solution Explorer window and repeat step 2.a.i. Note there are no static configurations.
|
||||||
|
ii. Select all the "Core" projects _except "Core osgIntrospection"_ and repeat step 2.a.i.
|
||||||
|
iii. Select "Core osgIntrospection" and repeat step 2.a.i. Note there are no static configurations.
|
||||||
|
iv. Select all the "osgPlugin" projects and repeat step 2.a.i.
|
||||||
|
v. Select all the "osgWrapper" projects and repeat step 2.a.i. Note there are no static configurations.
|
||||||
|
c. Do a "Save All" to save the project files.
|
||||||
|
|
||||||
|
3. Select the desired x64 configuration, and build away!
|
||||||
33
VisualStudio/create_static_workspace.js
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
/* create_static_workspace - Copyright (C) 2006 Joran Jessurun
|
||||||
|
*
|
||||||
|
* This library is open source and may be redistributed and/or modified under
|
||||||
|
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||||
|
* (at your option) any later version. The full license is in LICENSE file
|
||||||
|
* included with this distribution, and on the openscenegraph.org website.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* OpenSceneGraph Public License for more details.
|
||||||
|
*
|
||||||
|
* Made by Joran Jessurun (A.J.Jessurun@tue.nl)
|
||||||
|
*/
|
||||||
|
var fso=WScript.createObject("Scripting.FileSystemObject");
|
||||||
|
var ForReading=1;
|
||||||
|
var ForWriting=2;
|
||||||
|
|
||||||
|
WScript.echo("Creating OpenSceneGraphStatic.dsw from OpenSceneGraph.dsw");
|
||||||
|
|
||||||
|
var source=fso.openTextFile("OpenSceneGraph.dsw",ForReading);
|
||||||
|
var destin=fso.openTextFile("OpenSceneGraphStatic.dsw",ForWriting,true);
|
||||||
|
var state=0; // 0=copy, 1=skip
|
||||||
|
while(!source.atEndOfStream) {
|
||||||
|
line=source.readLine();
|
||||||
|
if(/Begin Project Dependency/.test(line)) state=1;
|
||||||
|
if(state==0) destin.writeLine(line);
|
||||||
|
if(/End Project Dependency/.test(line)) state=0;
|
||||||
|
}
|
||||||
|
source.close();
|
||||||
|
destin.close();
|
||||||
|
|
||||||
|
WScript.echo("Done");
|
||||||
339
VisualStudio/highlight70.reg
Normal file
@@ -0,0 +1,339 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\Languages\Extensionless Files\{B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}]
|
||||||
|
"AccelOperator"=""
|
||||||
|
"AlphaFunc"=""
|
||||||
|
"AngularAccelOperator"=""
|
||||||
|
"AnimationPath"=""
|
||||||
|
"AnimationPathManipulator"=""
|
||||||
|
"AnisotropicLighting"=""
|
||||||
|
"ApplicationUsage"=""
|
||||||
|
"Archive"=""
|
||||||
|
"ArgumentParser"=""
|
||||||
|
"Array"=""
|
||||||
|
"Attributes"=""
|
||||||
|
"AutoTransform"=""
|
||||||
|
"Billboard"=""
|
||||||
|
"BlendColor"=""
|
||||||
|
"BlendEquation"=""
|
||||||
|
"BlendFunc"=""
|
||||||
|
"BlinkSequence"=""
|
||||||
|
"BoundingBox"=""
|
||||||
|
"BoundingSphere"=""
|
||||||
|
"BoundsChecking"=""
|
||||||
|
"buffered_value"=""
|
||||||
|
"BufferObject"=""
|
||||||
|
"BumpMapping"=""
|
||||||
|
"Camera"=""
|
||||||
|
"CameraView"=""
|
||||||
|
"Cartoon"=""
|
||||||
|
"CenteredPlacer"=""
|
||||||
|
"ClearNode"=""
|
||||||
|
"ClipNode"=""
|
||||||
|
"ClipPlane"=""
|
||||||
|
"ClusterCullingCallback"=""
|
||||||
|
"CollectOccludersVisitor"=""
|
||||||
|
"ColorMask"=""
|
||||||
|
"ColorMatrix"=""
|
||||||
|
"ColorRange"=""
|
||||||
|
"Comparator"=""
|
||||||
|
"CompositeViewer"=""
|
||||||
|
"ConnectedParticleSystem"=""
|
||||||
|
"ConstantRateCounter"=""
|
||||||
|
"ConstructorInfo"=""
|
||||||
|
"Converter"=""
|
||||||
|
"ConverterProxy"=""
|
||||||
|
"ConvexPlanarOccluder"=""
|
||||||
|
"ConvexPlanarPolygon"=""
|
||||||
|
"CoordinateSystemNode"=""
|
||||||
|
"CopyOp"=""
|
||||||
|
"Counter"=""
|
||||||
|
"CubeMapGenerator"=""
|
||||||
|
"CullFace"=""
|
||||||
|
"CullingSet"=""
|
||||||
|
"CullSettings"=""
|
||||||
|
"CullStack"=""
|
||||||
|
"CullVisitor"=""
|
||||||
|
"CustomAttribute"=""
|
||||||
|
"CustomAttributeProvider"=""
|
||||||
|
"DatabasePager"=""
|
||||||
|
"DelaunayTriangulator"=""
|
||||||
|
"Depth"=""
|
||||||
|
"DisplayRequirementsVisitor"=""
|
||||||
|
"DisplaySettings"=""
|
||||||
|
"DOFTransform"=""
|
||||||
|
"DotOsgWrapper"=""
|
||||||
|
"Drawable"=""
|
||||||
|
"DrawPixels"=""
|
||||||
|
"DriveManipulator"=""
|
||||||
|
"DynamicLibrary"=""
|
||||||
|
"Effect"=""
|
||||||
|
"Emitter"=""
|
||||||
|
"Endian"=""
|
||||||
|
"EventAdapter"=""
|
||||||
|
"EventVisitor"=""
|
||||||
|
"Exceptions"=""
|
||||||
|
"ExplosionDebrisEffect"=""
|
||||||
|
"ExplosionEffect"=""
|
||||||
|
"Export"=""
|
||||||
|
"fast_back_stack"=""
|
||||||
|
"Field"=""
|
||||||
|
"FieldReader"=""
|
||||||
|
"FieldReaderIterator"=""
|
||||||
|
"FileNameUtils"=""
|
||||||
|
"FileUtils"=""
|
||||||
|
"FireEffect"=""
|
||||||
|
"FlightManipulator"=""
|
||||||
|
"FluidFrictionOperator"=""
|
||||||
|
"FluidProgram"=""
|
||||||
|
"Fog"=""
|
||||||
|
"Font"=""
|
||||||
|
"ForceOperator"=""
|
||||||
|
"FragmentProgram"=""
|
||||||
|
"FrameBufferObject"=""
|
||||||
|
"FrameStamp"=""
|
||||||
|
"FrontFace"=""
|
||||||
|
"Geode"=""
|
||||||
|
"GeographicLocation"=""
|
||||||
|
"Geometry"=""
|
||||||
|
"GL"=""
|
||||||
|
"GL2Extensions"=""
|
||||||
|
"GLExtensions"=""
|
||||||
|
"GLObjectsVisitor"=""
|
||||||
|
"GLU"=""
|
||||||
|
"GraphicsContext"=""
|
||||||
|
"GraphicsContextImplementation"=""
|
||||||
|
"GraphicsThread"=""
|
||||||
|
"GraphicsWindow"=""
|
||||||
|
"GraphicsWindowWin32"=""
|
||||||
|
"Group"=""
|
||||||
|
"GUIActionAdapter"=""
|
||||||
|
"GUIEventAdapter"=""
|
||||||
|
"GUIEventHandler"=""
|
||||||
|
"GUIEventHandlerVisitor"=""
|
||||||
|
"HalfWayMapGenerator"=""
|
||||||
|
"HelpHandler"=""
|
||||||
|
"HeightFieldNode"=""
|
||||||
|
"HeightFieldRenderer"=""
|
||||||
|
"HighlightMapGenerator"=""
|
||||||
|
"Image"=""
|
||||||
|
"ImageOptions"=""
|
||||||
|
"ImageStream"=""
|
||||||
|
"Impostor"=""
|
||||||
|
"ImpostorSprite"=""
|
||||||
|
"Input"=""
|
||||||
|
"InsertImpostorsVisitor"=""
|
||||||
|
"InstanceCreator"=""
|
||||||
|
"Interpolator"=""
|
||||||
|
"IntersectVisitor"=""
|
||||||
|
"io_utils"=""
|
||||||
|
"KeyboardMouseCallback"=""
|
||||||
|
"KeySwitchMatrixManipulator"=""
|
||||||
|
"Light"=""
|
||||||
|
"LightModel"=""
|
||||||
|
"LightPoint"=""
|
||||||
|
"LightPointNode"=""
|
||||||
|
"LightPointSystem"=""
|
||||||
|
"LightSource"=""
|
||||||
|
"LinearInterpolator"=""
|
||||||
|
"LineSegment"=""
|
||||||
|
"LineStipple"=""
|
||||||
|
"LineWidth"=""
|
||||||
|
"LOD"=""
|
||||||
|
"LogicOp"=""
|
||||||
|
"Material"=""
|
||||||
|
"Math"=""
|
||||||
|
"Matrix"=""
|
||||||
|
"Matrixd"=""
|
||||||
|
"Matrixf"=""
|
||||||
|
"MatrixManipulator"=""
|
||||||
|
"MatrixTransform"=""
|
||||||
|
"MethodInfo"=""
|
||||||
|
"ModularEmitter"=""
|
||||||
|
"ModularProgram"=""
|
||||||
|
"Multisample"=""
|
||||||
|
"MultiSegmentPlacer"=""
|
||||||
|
"MultiSwitch"=""
|
||||||
|
"MultiTextureControl"=""
|
||||||
|
"Node"=""
|
||||||
|
"NodeCallback"=""
|
||||||
|
"NodeTrackerCallback"=""
|
||||||
|
"NodeTrackerManipulator"=""
|
||||||
|
"NodeVisitor"=""
|
||||||
|
"Notify"=""
|
||||||
|
"Object"=""
|
||||||
|
"OccluderNode"=""
|
||||||
|
"Operator"=""
|
||||||
|
"Optimizer"=""
|
||||||
|
"OsgCameraGroup"=""
|
||||||
|
"OsgSceneHandler"=""
|
||||||
|
"Output"=""
|
||||||
|
"OverlayNode"=""
|
||||||
|
"PagedLOD"=""
|
||||||
|
"ParameterInfo"=""
|
||||||
|
"ParameterOutput"=""
|
||||||
|
"Particle"=""
|
||||||
|
"ParticleEffect"=""
|
||||||
|
"ParticleProcessor"=""
|
||||||
|
"ParticleSystem"=""
|
||||||
|
"ParticleSystemUpdater"=""
|
||||||
|
"Placer"=""
|
||||||
|
"Plane"=""
|
||||||
|
"Point"=""
|
||||||
|
"PointPlacer"=""
|
||||||
|
"PointSprite"=""
|
||||||
|
"PolygonMode"=""
|
||||||
|
"PolygonOffset"=""
|
||||||
|
"PolygonStipple"=""
|
||||||
|
"Polytope"=""
|
||||||
|
"PositionalStateContainer"=""
|
||||||
|
"PositionAttitudeTransform"=""
|
||||||
|
"PrimitiveSet"=""
|
||||||
|
"Program"=""
|
||||||
|
"Program"=""
|
||||||
|
"Projection"=""
|
||||||
|
"PropertyInfo"=""
|
||||||
|
"ProxyNode"=""
|
||||||
|
"Quat"=""
|
||||||
|
"RadialShooter"=""
|
||||||
|
"RandomRateCounter"=""
|
||||||
|
"range"=""
|
||||||
|
"ReaderWriter"=""
|
||||||
|
"ReadFile"=""
|
||||||
|
"ReentrantMutex"=""
|
||||||
|
"ref_ptr"=""
|
||||||
|
"Referenced"=""
|
||||||
|
"Reflection"=""
|
||||||
|
"ReflectionMacros"=""
|
||||||
|
"ReflectionMapGenerator"=""
|
||||||
|
"Reflector"=""
|
||||||
|
"Registry"=""
|
||||||
|
"RenderBin"=""
|
||||||
|
"RenderLeaf"=""
|
||||||
|
"RenderStage"=""
|
||||||
|
"ScalarBar"=""
|
||||||
|
"ScalarsToColors"=""
|
||||||
|
"Scene"=""
|
||||||
|
"SceneView"=""
|
||||||
|
"Scissor"=""
|
||||||
|
"Scribe"=""
|
||||||
|
"Sector"=""
|
||||||
|
"SectorPlacer"=""
|
||||||
|
"SegmentPlacer"=""
|
||||||
|
"Sequence"=""
|
||||||
|
"SetSceneViewVisitor"=""
|
||||||
|
"ShadeModel"=""
|
||||||
|
"Shader"=""
|
||||||
|
"ShadowVolumeOccluder"=""
|
||||||
|
"Shape"=""
|
||||||
|
"ShapeDrawable"=""
|
||||||
|
"SharedStateManager"=""
|
||||||
|
"Shooter"=""
|
||||||
|
"SimpleViewer"=""
|
||||||
|
"Simplifier"=""
|
||||||
|
"SmokeEffect"=""
|
||||||
|
"SmokeTrailEffect"=""
|
||||||
|
"SmoothingVisitor"=""
|
||||||
|
"SpecularHighlights"=""
|
||||||
|
"SphereSegment"=""
|
||||||
|
"State"=""
|
||||||
|
"StateAttribute"=""
|
||||||
|
"StateGraph"=""
|
||||||
|
"StateSet"=""
|
||||||
|
"StateSetManipulator"=""
|
||||||
|
"StaticMethodInfo"=""
|
||||||
|
"Statistics"=""
|
||||||
|
"StatsHandler"=""
|
||||||
|
"Stencil"=""
|
||||||
|
"String"=""
|
||||||
|
"Switch"=""
|
||||||
|
"TangentSpaceGenerator"=""
|
||||||
|
"Technique"=""
|
||||||
|
"TerrainManipulator"=""
|
||||||
|
"Tessellator"=""
|
||||||
|
"TexEnv"=""
|
||||||
|
"TexEnvCombine"=""
|
||||||
|
"TexEnvFilter"=""
|
||||||
|
"TexGen"=""
|
||||||
|
"TexGenNode"=""
|
||||||
|
"TexMat"=""
|
||||||
|
"Text"=""
|
||||||
|
"Texture"=""
|
||||||
|
"Texture1D"=""
|
||||||
|
"Texture2D"=""
|
||||||
|
"Texture3D"=""
|
||||||
|
"TextureCubeMap"=""
|
||||||
|
"TextureRectangle"=""
|
||||||
|
"Timer"=""
|
||||||
|
"TrackballManipulator"=""
|
||||||
|
"Transform"=""
|
||||||
|
"TransformAttributeFunctor"=""
|
||||||
|
"TransformCallback"=""
|
||||||
|
"TriangleFunctor"=""
|
||||||
|
"TriangleIndexFunctor"=""
|
||||||
|
"TriStripVisitor"=""
|
||||||
|
"Type"=""
|
||||||
|
"TypedConstructorInfo"=""
|
||||||
|
"TypedMethodInfo"=""
|
||||||
|
"TypeNameAliasProxy"=""
|
||||||
|
"UFOManipulator"=""
|
||||||
|
"Uniform"=""
|
||||||
|
"UnitTestFramework"=""
|
||||||
|
"UpdateVisitor"=""
|
||||||
|
"Utility"=""
|
||||||
|
"Validator"=""
|
||||||
|
"Value"=""
|
||||||
|
"VariableRateCounter"=""
|
||||||
|
"variant_cast"=""
|
||||||
|
"Vec2"=""
|
||||||
|
"Vec2b"=""
|
||||||
|
"Vec2d"=""
|
||||||
|
"Vec2f"=""
|
||||||
|
"Vec2s"=""
|
||||||
|
"Vec3"=""
|
||||||
|
"Vec3b"=""
|
||||||
|
"Vec3d"=""
|
||||||
|
"Vec3f"=""
|
||||||
|
"Vec3s"=""
|
||||||
|
"Vec4"=""
|
||||||
|
"Vec4b"=""
|
||||||
|
"Vec4d"=""
|
||||||
|
"Vec4f"=""
|
||||||
|
"Vec4s"=""
|
||||||
|
"Vec4ub"=""
|
||||||
|
"Version"=""
|
||||||
|
"VertexProgram"=""
|
||||||
|
"View"=""
|
||||||
|
"Viewer"=""
|
||||||
|
"ViewerEventHandler"=""
|
||||||
|
"Viewport"=""
|
||||||
|
"VisibilityGroup"=""
|
||||||
|
"WriteFile"=""
|
||||||
|
|
||||||
|
"Block"=""
|
||||||
|
"BlockingQueue"=""
|
||||||
|
"Camera"=""
|
||||||
|
"CameraConfig"=""
|
||||||
|
"CameraGroup"=""
|
||||||
|
"Events"=""
|
||||||
|
"Export"=""
|
||||||
|
"InputArea"=""
|
||||||
|
"Keyboard"=""
|
||||||
|
"KeyboardMouse"=""
|
||||||
|
"Math"=""
|
||||||
|
"Referenced"=""
|
||||||
|
"RefOpenThreads"=""
|
||||||
|
"RenderSurface"=""
|
||||||
|
"Timer"=""
|
||||||
|
"Trackball"=""
|
||||||
|
"Types"=""
|
||||||
|
"Version"=""
|
||||||
|
"Window3D"=""
|
||||||
|
"VisualChooser"=""
|
||||||
|
|
||||||
|
"Barrier"=""
|
||||||
|
"Condition"=""
|
||||||
|
"Exports"=""
|
||||||
|
"Mutex"=""
|
||||||
|
"ScopedLock"=""
|
||||||
|
"Thread"=""
|
||||||
339
VisualStudio/highlight71.reg
Normal file
@@ -0,0 +1,339 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Languages\Extensionless Files\{B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}]
|
||||||
|
"AccelOperator"=""
|
||||||
|
"AlphaFunc"=""
|
||||||
|
"AngularAccelOperator"=""
|
||||||
|
"AnimationPath"=""
|
||||||
|
"AnimationPathManipulator"=""
|
||||||
|
"AnisotropicLighting"=""
|
||||||
|
"ApplicationUsage"=""
|
||||||
|
"Archive"=""
|
||||||
|
"ArgumentParser"=""
|
||||||
|
"Array"=""
|
||||||
|
"Attributes"=""
|
||||||
|
"AutoTransform"=""
|
||||||
|
"Billboard"=""
|
||||||
|
"BlendColor"=""
|
||||||
|
"BlendEquation"=""
|
||||||
|
"BlendFunc"=""
|
||||||
|
"BlinkSequence"=""
|
||||||
|
"BoundingBox"=""
|
||||||
|
"BoundingSphere"=""
|
||||||
|
"BoundsChecking"=""
|
||||||
|
"buffered_value"=""
|
||||||
|
"BufferObject"=""
|
||||||
|
"BumpMapping"=""
|
||||||
|
"Camera"=""
|
||||||
|
"CameraView"=""
|
||||||
|
"Cartoon"=""
|
||||||
|
"CenteredPlacer"=""
|
||||||
|
"ClearNode"=""
|
||||||
|
"ClipNode"=""
|
||||||
|
"ClipPlane"=""
|
||||||
|
"ClusterCullingCallback"=""
|
||||||
|
"CollectOccludersVisitor"=""
|
||||||
|
"ColorMask"=""
|
||||||
|
"ColorMatrix"=""
|
||||||
|
"ColorRange"=""
|
||||||
|
"Comparator"=""
|
||||||
|
"CompositeViewer"=""
|
||||||
|
"ConnectedParticleSystem"=""
|
||||||
|
"ConstantRateCounter"=""
|
||||||
|
"ConstructorInfo"=""
|
||||||
|
"Converter"=""
|
||||||
|
"ConverterProxy"=""
|
||||||
|
"ConvexPlanarOccluder"=""
|
||||||
|
"ConvexPlanarPolygon"=""
|
||||||
|
"CoordinateSystemNode"=""
|
||||||
|
"CopyOp"=""
|
||||||
|
"Counter"=""
|
||||||
|
"CubeMapGenerator"=""
|
||||||
|
"CullFace"=""
|
||||||
|
"CullingSet"=""
|
||||||
|
"CullSettings"=""
|
||||||
|
"CullStack"=""
|
||||||
|
"CullVisitor"=""
|
||||||
|
"CustomAttribute"=""
|
||||||
|
"CustomAttributeProvider"=""
|
||||||
|
"DatabasePager"=""
|
||||||
|
"DelaunayTriangulator"=""
|
||||||
|
"Depth"=""
|
||||||
|
"DisplayRequirementsVisitor"=""
|
||||||
|
"DisplaySettings"=""
|
||||||
|
"DOFTransform"=""
|
||||||
|
"DotOsgWrapper"=""
|
||||||
|
"Drawable"=""
|
||||||
|
"DrawPixels"=""
|
||||||
|
"DriveManipulator"=""
|
||||||
|
"DynamicLibrary"=""
|
||||||
|
"Effect"=""
|
||||||
|
"Emitter"=""
|
||||||
|
"Endian"=""
|
||||||
|
"EventAdapter"=""
|
||||||
|
"EventVisitor"=""
|
||||||
|
"Exceptions"=""
|
||||||
|
"ExplosionDebrisEffect"=""
|
||||||
|
"ExplosionEffect"=""
|
||||||
|
"Export"=""
|
||||||
|
"fast_back_stack"=""
|
||||||
|
"Field"=""
|
||||||
|
"FieldReader"=""
|
||||||
|
"FieldReaderIterator"=""
|
||||||
|
"FileNameUtils"=""
|
||||||
|
"FileUtils"=""
|
||||||
|
"FireEffect"=""
|
||||||
|
"FlightManipulator"=""
|
||||||
|
"FluidFrictionOperator"=""
|
||||||
|
"FluidProgram"=""
|
||||||
|
"Fog"=""
|
||||||
|
"Font"=""
|
||||||
|
"ForceOperator"=""
|
||||||
|
"FragmentProgram"=""
|
||||||
|
"FrameBufferObject"=""
|
||||||
|
"FrameStamp"=""
|
||||||
|
"FrontFace"=""
|
||||||
|
"Geode"=""
|
||||||
|
"GeographicLocation"=""
|
||||||
|
"Geometry"=""
|
||||||
|
"GL"=""
|
||||||
|
"GL2Extensions"=""
|
||||||
|
"GLExtensions"=""
|
||||||
|
"GLObjectsVisitor"=""
|
||||||
|
"GLU"=""
|
||||||
|
"GraphicsContext"=""
|
||||||
|
"GraphicsContextImplementation"=""
|
||||||
|
"GraphicsThread"=""
|
||||||
|
"GraphicsWindow"=""
|
||||||
|
"GraphicsWindowWin32"=""
|
||||||
|
"Group"=""
|
||||||
|
"GUIActionAdapter"=""
|
||||||
|
"GUIEventAdapter"=""
|
||||||
|
"GUIEventHandler"=""
|
||||||
|
"GUIEventHandlerVisitor"=""
|
||||||
|
"HalfWayMapGenerator"=""
|
||||||
|
"HelpHandler"=""
|
||||||
|
"HeightFieldNode"=""
|
||||||
|
"HeightFieldRenderer"=""
|
||||||
|
"HighlightMapGenerator"=""
|
||||||
|
"Image"=""
|
||||||
|
"ImageOptions"=""
|
||||||
|
"ImageStream"=""
|
||||||
|
"Impostor"=""
|
||||||
|
"ImpostorSprite"=""
|
||||||
|
"Input"=""
|
||||||
|
"InsertImpostorsVisitor"=""
|
||||||
|
"InstanceCreator"=""
|
||||||
|
"Interpolator"=""
|
||||||
|
"IntersectVisitor"=""
|
||||||
|
"io_utils"=""
|
||||||
|
"KeyboardMouseCallback"=""
|
||||||
|
"KeySwitchMatrixManipulator"=""
|
||||||
|
"Light"=""
|
||||||
|
"LightModel"=""
|
||||||
|
"LightPoint"=""
|
||||||
|
"LightPointNode"=""
|
||||||
|
"LightPointSystem"=""
|
||||||
|
"LightSource"=""
|
||||||
|
"LinearInterpolator"=""
|
||||||
|
"LineSegment"=""
|
||||||
|
"LineStipple"=""
|
||||||
|
"LineWidth"=""
|
||||||
|
"LOD"=""
|
||||||
|
"LogicOp"=""
|
||||||
|
"Material"=""
|
||||||
|
"Math"=""
|
||||||
|
"Matrix"=""
|
||||||
|
"Matrixd"=""
|
||||||
|
"Matrixf"=""
|
||||||
|
"MatrixManipulator"=""
|
||||||
|
"MatrixTransform"=""
|
||||||
|
"MethodInfo"=""
|
||||||
|
"ModularEmitter"=""
|
||||||
|
"ModularProgram"=""
|
||||||
|
"Multisample"=""
|
||||||
|
"MultiSegmentPlacer"=""
|
||||||
|
"MultiSwitch"=""
|
||||||
|
"MultiTextureControl"=""
|
||||||
|
"Node"=""
|
||||||
|
"NodeCallback"=""
|
||||||
|
"NodeTrackerCallback"=""
|
||||||
|
"NodeTrackerManipulator"=""
|
||||||
|
"NodeVisitor"=""
|
||||||
|
"Notify"=""
|
||||||
|
"Object"=""
|
||||||
|
"OccluderNode"=""
|
||||||
|
"Operator"=""
|
||||||
|
"Optimizer"=""
|
||||||
|
"OsgCameraGroup"=""
|
||||||
|
"OsgSceneHandler"=""
|
||||||
|
"Output"=""
|
||||||
|
"OverlayNode"=""
|
||||||
|
"PagedLOD"=""
|
||||||
|
"ParameterInfo"=""
|
||||||
|
"ParameterOutput"=""
|
||||||
|
"Particle"=""
|
||||||
|
"ParticleEffect"=""
|
||||||
|
"ParticleProcessor"=""
|
||||||
|
"ParticleSystem"=""
|
||||||
|
"ParticleSystemUpdater"=""
|
||||||
|
"Placer"=""
|
||||||
|
"Plane"=""
|
||||||
|
"Point"=""
|
||||||
|
"PointPlacer"=""
|
||||||
|
"PointSprite"=""
|
||||||
|
"PolygonMode"=""
|
||||||
|
"PolygonOffset"=""
|
||||||
|
"PolygonStipple"=""
|
||||||
|
"Polytope"=""
|
||||||
|
"PositionalStateContainer"=""
|
||||||
|
"PositionAttitudeTransform"=""
|
||||||
|
"PrimitiveSet"=""
|
||||||
|
"Program"=""
|
||||||
|
"Program"=""
|
||||||
|
"Projection"=""
|
||||||
|
"PropertyInfo"=""
|
||||||
|
"ProxyNode"=""
|
||||||
|
"Quat"=""
|
||||||
|
"RadialShooter"=""
|
||||||
|
"RandomRateCounter"=""
|
||||||
|
"range"=""
|
||||||
|
"ReaderWriter"=""
|
||||||
|
"ReadFile"=""
|
||||||
|
"ReentrantMutex"=""
|
||||||
|
"ref_ptr"=""
|
||||||
|
"Referenced"=""
|
||||||
|
"Reflection"=""
|
||||||
|
"ReflectionMacros"=""
|
||||||
|
"ReflectionMapGenerator"=""
|
||||||
|
"Reflector"=""
|
||||||
|
"Registry"=""
|
||||||
|
"RenderBin"=""
|
||||||
|
"RenderLeaf"=""
|
||||||
|
"RenderStage"=""
|
||||||
|
"ScalarBar"=""
|
||||||
|
"ScalarsToColors"=""
|
||||||
|
"Scene"=""
|
||||||
|
"SceneView"=""
|
||||||
|
"Scissor"=""
|
||||||
|
"Scribe"=""
|
||||||
|
"Sector"=""
|
||||||
|
"SectorPlacer"=""
|
||||||
|
"SegmentPlacer"=""
|
||||||
|
"Sequence"=""
|
||||||
|
"SetSceneViewVisitor"=""
|
||||||
|
"ShadeModel"=""
|
||||||
|
"Shader"=""
|
||||||
|
"ShadowVolumeOccluder"=""
|
||||||
|
"Shape"=""
|
||||||
|
"ShapeDrawable"=""
|
||||||
|
"SharedStateManager"=""
|
||||||
|
"Shooter"=""
|
||||||
|
"SimpleViewer"=""
|
||||||
|
"Simplifier"=""
|
||||||
|
"SmokeEffect"=""
|
||||||
|
"SmokeTrailEffect"=""
|
||||||
|
"SmoothingVisitor"=""
|
||||||
|
"SpecularHighlights"=""
|
||||||
|
"SphereSegment"=""
|
||||||
|
"State"=""
|
||||||
|
"StateAttribute"=""
|
||||||
|
"StateGraph"=""
|
||||||
|
"StateSet"=""
|
||||||
|
"StateSetManipulator"=""
|
||||||
|
"StaticMethodInfo"=""
|
||||||
|
"Statistics"=""
|
||||||
|
"StatsHandler"=""
|
||||||
|
"Stencil"=""
|
||||||
|
"String"=""
|
||||||
|
"Switch"=""
|
||||||
|
"TangentSpaceGenerator"=""
|
||||||
|
"Technique"=""
|
||||||
|
"TerrainManipulator"=""
|
||||||
|
"Tessellator"=""
|
||||||
|
"TexEnv"=""
|
||||||
|
"TexEnvCombine"=""
|
||||||
|
"TexEnvFilter"=""
|
||||||
|
"TexGen"=""
|
||||||
|
"TexGenNode"=""
|
||||||
|
"TexMat"=""
|
||||||
|
"Text"=""
|
||||||
|
"Texture"=""
|
||||||
|
"Texture1D"=""
|
||||||
|
"Texture2D"=""
|
||||||
|
"Texture3D"=""
|
||||||
|
"TextureCubeMap"=""
|
||||||
|
"TextureRectangle"=""
|
||||||
|
"Timer"=""
|
||||||
|
"TrackballManipulator"=""
|
||||||
|
"Transform"=""
|
||||||
|
"TransformAttributeFunctor"=""
|
||||||
|
"TransformCallback"=""
|
||||||
|
"TriangleFunctor"=""
|
||||||
|
"TriangleIndexFunctor"=""
|
||||||
|
"TriStripVisitor"=""
|
||||||
|
"Type"=""
|
||||||
|
"TypedConstructorInfo"=""
|
||||||
|
"TypedMethodInfo"=""
|
||||||
|
"TypeNameAliasProxy"=""
|
||||||
|
"UFOManipulator"=""
|
||||||
|
"Uniform"=""
|
||||||
|
"UnitTestFramework"=""
|
||||||
|
"UpdateVisitor"=""
|
||||||
|
"Utility"=""
|
||||||
|
"Validator"=""
|
||||||
|
"Value"=""
|
||||||
|
"VariableRateCounter"=""
|
||||||
|
"variant_cast"=""
|
||||||
|
"Vec2"=""
|
||||||
|
"Vec2b"=""
|
||||||
|
"Vec2d"=""
|
||||||
|
"Vec2f"=""
|
||||||
|
"Vec2s"=""
|
||||||
|
"Vec3"=""
|
||||||
|
"Vec3b"=""
|
||||||
|
"Vec3d"=""
|
||||||
|
"Vec3f"=""
|
||||||
|
"Vec3s"=""
|
||||||
|
"Vec4"=""
|
||||||
|
"Vec4b"=""
|
||||||
|
"Vec4d"=""
|
||||||
|
"Vec4f"=""
|
||||||
|
"Vec4s"=""
|
||||||
|
"Vec4ub"=""
|
||||||
|
"Version"=""
|
||||||
|
"VertexProgram"=""
|
||||||
|
"View"=""
|
||||||
|
"Viewer"=""
|
||||||
|
"ViewerEventHandler"=""
|
||||||
|
"Viewport"=""
|
||||||
|
"VisibilityGroup"=""
|
||||||
|
"WriteFile"=""
|
||||||
|
|
||||||
|
"Block"=""
|
||||||
|
"BlockingQueue"=""
|
||||||
|
"Camera"=""
|
||||||
|
"CameraConfig"=""
|
||||||
|
"CameraGroup"=""
|
||||||
|
"Events"=""
|
||||||
|
"Export"=""
|
||||||
|
"InputArea"=""
|
||||||
|
"Keyboard"=""
|
||||||
|
"KeyboardMouse"=""
|
||||||
|
"Math"=""
|
||||||
|
"Referenced"=""
|
||||||
|
"RefOpenThreads"=""
|
||||||
|
"RenderSurface"=""
|
||||||
|
"Timer"=""
|
||||||
|
"Trackball"=""
|
||||||
|
"Types"=""
|
||||||
|
"Version"=""
|
||||||
|
"Window3D"=""
|
||||||
|
"VisualChooser"=""
|
||||||
|
|
||||||
|
"Barrier"=""
|
||||||
|
"Condition"=""
|
||||||
|
"Exports"=""
|
||||||
|
"Mutex"=""
|
||||||
|
"ScopedLock"=""
|
||||||
|
"Thread"=""
|
||||||
339
VisualStudio/highlight80.reg
Normal file
@@ -0,0 +1,339 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Languages\Extensionless Files\{B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}]
|
||||||
|
"AccelOperator"=""
|
||||||
|
"AlphaFunc"=""
|
||||||
|
"AngularAccelOperator"=""
|
||||||
|
"AnimationPath"=""
|
||||||
|
"AnimationPathManipulator"=""
|
||||||
|
"AnisotropicLighting"=""
|
||||||
|
"ApplicationUsage"=""
|
||||||
|
"Archive"=""
|
||||||
|
"ArgumentParser"=""
|
||||||
|
"Array"=""
|
||||||
|
"Attributes"=""
|
||||||
|
"AutoTransform"=""
|
||||||
|
"Billboard"=""
|
||||||
|
"BlendColor"=""
|
||||||
|
"BlendEquation"=""
|
||||||
|
"BlendFunc"=""
|
||||||
|
"BlinkSequence"=""
|
||||||
|
"BoundingBox"=""
|
||||||
|
"BoundingSphere"=""
|
||||||
|
"BoundsChecking"=""
|
||||||
|
"buffered_value"=""
|
||||||
|
"BufferObject"=""
|
||||||
|
"BumpMapping"=""
|
||||||
|
"Camera"=""
|
||||||
|
"CameraView"=""
|
||||||
|
"Cartoon"=""
|
||||||
|
"CenteredPlacer"=""
|
||||||
|
"ClearNode"=""
|
||||||
|
"ClipNode"=""
|
||||||
|
"ClipPlane"=""
|
||||||
|
"ClusterCullingCallback"=""
|
||||||
|
"CollectOccludersVisitor"=""
|
||||||
|
"ColorMask"=""
|
||||||
|
"ColorMatrix"=""
|
||||||
|
"ColorRange"=""
|
||||||
|
"Comparator"=""
|
||||||
|
"CompositeViewer"=""
|
||||||
|
"ConnectedParticleSystem"=""
|
||||||
|
"ConstantRateCounter"=""
|
||||||
|
"ConstructorInfo"=""
|
||||||
|
"Converter"=""
|
||||||
|
"ConverterProxy"=""
|
||||||
|
"ConvexPlanarOccluder"=""
|
||||||
|
"ConvexPlanarPolygon"=""
|
||||||
|
"CoordinateSystemNode"=""
|
||||||
|
"CopyOp"=""
|
||||||
|
"Counter"=""
|
||||||
|
"CubeMapGenerator"=""
|
||||||
|
"CullFace"=""
|
||||||
|
"CullingSet"=""
|
||||||
|
"CullSettings"=""
|
||||||
|
"CullStack"=""
|
||||||
|
"CullVisitor"=""
|
||||||
|
"CustomAttribute"=""
|
||||||
|
"CustomAttributeProvider"=""
|
||||||
|
"DatabasePager"=""
|
||||||
|
"DelaunayTriangulator"=""
|
||||||
|
"Depth"=""
|
||||||
|
"DisplayRequirementsVisitor"=""
|
||||||
|
"DisplaySettings"=""
|
||||||
|
"DOFTransform"=""
|
||||||
|
"DotOsgWrapper"=""
|
||||||
|
"Drawable"=""
|
||||||
|
"DrawPixels"=""
|
||||||
|
"DriveManipulator"=""
|
||||||
|
"DynamicLibrary"=""
|
||||||
|
"Effect"=""
|
||||||
|
"Emitter"=""
|
||||||
|
"Endian"=""
|
||||||
|
"EventAdapter"=""
|
||||||
|
"EventVisitor"=""
|
||||||
|
"Exceptions"=""
|
||||||
|
"ExplosionDebrisEffect"=""
|
||||||
|
"ExplosionEffect"=""
|
||||||
|
"Export"=""
|
||||||
|
"fast_back_stack"=""
|
||||||
|
"Field"=""
|
||||||
|
"FieldReader"=""
|
||||||
|
"FieldReaderIterator"=""
|
||||||
|
"FileNameUtils"=""
|
||||||
|
"FileUtils"=""
|
||||||
|
"FireEffect"=""
|
||||||
|
"FlightManipulator"=""
|
||||||
|
"FluidFrictionOperator"=""
|
||||||
|
"FluidProgram"=""
|
||||||
|
"Fog"=""
|
||||||
|
"Font"=""
|
||||||
|
"ForceOperator"=""
|
||||||
|
"FragmentProgram"=""
|
||||||
|
"FrameBufferObject"=""
|
||||||
|
"FrameStamp"=""
|
||||||
|
"FrontFace"=""
|
||||||
|
"Geode"=""
|
||||||
|
"GeographicLocation"=""
|
||||||
|
"Geometry"=""
|
||||||
|
"GL"=""
|
||||||
|
"GL2Extensions"=""
|
||||||
|
"GLExtensions"=""
|
||||||
|
"GLObjectsVisitor"=""
|
||||||
|
"GLU"=""
|
||||||
|
"GraphicsContext"=""
|
||||||
|
"GraphicsContextImplementation"=""
|
||||||
|
"GraphicsThread"=""
|
||||||
|
"GraphicsWindow"=""
|
||||||
|
"GraphicsWindowWin32"=""
|
||||||
|
"Group"=""
|
||||||
|
"GUIActionAdapter"=""
|
||||||
|
"GUIEventAdapter"=""
|
||||||
|
"GUIEventHandler"=""
|
||||||
|
"GUIEventHandlerVisitor"=""
|
||||||
|
"HalfWayMapGenerator"=""
|
||||||
|
"HelpHandler"=""
|
||||||
|
"HeightFieldNode"=""
|
||||||
|
"HeightFieldRenderer"=""
|
||||||
|
"HighlightMapGenerator"=""
|
||||||
|
"Image"=""
|
||||||
|
"ImageOptions"=""
|
||||||
|
"ImageStream"=""
|
||||||
|
"Impostor"=""
|
||||||
|
"ImpostorSprite"=""
|
||||||
|
"Input"=""
|
||||||
|
"InsertImpostorsVisitor"=""
|
||||||
|
"InstanceCreator"=""
|
||||||
|
"Interpolator"=""
|
||||||
|
"IntersectVisitor"=""
|
||||||
|
"io_utils"=""
|
||||||
|
"KeyboardMouseCallback"=""
|
||||||
|
"KeySwitchMatrixManipulator"=""
|
||||||
|
"Light"=""
|
||||||
|
"LightModel"=""
|
||||||
|
"LightPoint"=""
|
||||||
|
"LightPointNode"=""
|
||||||
|
"LightPointSystem"=""
|
||||||
|
"LightSource"=""
|
||||||
|
"LinearInterpolator"=""
|
||||||
|
"LineSegment"=""
|
||||||
|
"LineStipple"=""
|
||||||
|
"LineWidth"=""
|
||||||
|
"LOD"=""
|
||||||
|
"LogicOp"=""
|
||||||
|
"Material"=""
|
||||||
|
"Math"=""
|
||||||
|
"Matrix"=""
|
||||||
|
"Matrixd"=""
|
||||||
|
"Matrixf"=""
|
||||||
|
"MatrixManipulator"=""
|
||||||
|
"MatrixTransform"=""
|
||||||
|
"MethodInfo"=""
|
||||||
|
"ModularEmitter"=""
|
||||||
|
"ModularProgram"=""
|
||||||
|
"Multisample"=""
|
||||||
|
"MultiSegmentPlacer"=""
|
||||||
|
"MultiSwitch"=""
|
||||||
|
"MultiTextureControl"=""
|
||||||
|
"Node"=""
|
||||||
|
"NodeCallback"=""
|
||||||
|
"NodeTrackerCallback"=""
|
||||||
|
"NodeTrackerManipulator"=""
|
||||||
|
"NodeVisitor"=""
|
||||||
|
"Notify"=""
|
||||||
|
"Object"=""
|
||||||
|
"OccluderNode"=""
|
||||||
|
"Operator"=""
|
||||||
|
"Optimizer"=""
|
||||||
|
"OsgCameraGroup"=""
|
||||||
|
"OsgSceneHandler"=""
|
||||||
|
"Output"=""
|
||||||
|
"OverlayNode"=""
|
||||||
|
"PagedLOD"=""
|
||||||
|
"ParameterInfo"=""
|
||||||
|
"ParameterOutput"=""
|
||||||
|
"Particle"=""
|
||||||
|
"ParticleEffect"=""
|
||||||
|
"ParticleProcessor"=""
|
||||||
|
"ParticleSystem"=""
|
||||||
|
"ParticleSystemUpdater"=""
|
||||||
|
"Placer"=""
|
||||||
|
"Plane"=""
|
||||||
|
"Point"=""
|
||||||
|
"PointPlacer"=""
|
||||||
|
"PointSprite"=""
|
||||||
|
"PolygonMode"=""
|
||||||
|
"PolygonOffset"=""
|
||||||
|
"PolygonStipple"=""
|
||||||
|
"Polytope"=""
|
||||||
|
"PositionalStateContainer"=""
|
||||||
|
"PositionAttitudeTransform"=""
|
||||||
|
"PrimitiveSet"=""
|
||||||
|
"Program"=""
|
||||||
|
"Program"=""
|
||||||
|
"Projection"=""
|
||||||
|
"PropertyInfo"=""
|
||||||
|
"ProxyNode"=""
|
||||||
|
"Quat"=""
|
||||||
|
"RadialShooter"=""
|
||||||
|
"RandomRateCounter"=""
|
||||||
|
"range"=""
|
||||||
|
"ReaderWriter"=""
|
||||||
|
"ReadFile"=""
|
||||||
|
"ReentrantMutex"=""
|
||||||
|
"ref_ptr"=""
|
||||||
|
"Referenced"=""
|
||||||
|
"Reflection"=""
|
||||||
|
"ReflectionMacros"=""
|
||||||
|
"ReflectionMapGenerator"=""
|
||||||
|
"Reflector"=""
|
||||||
|
"Registry"=""
|
||||||
|
"RenderBin"=""
|
||||||
|
"RenderLeaf"=""
|
||||||
|
"RenderStage"=""
|
||||||
|
"ScalarBar"=""
|
||||||
|
"ScalarsToColors"=""
|
||||||
|
"Scene"=""
|
||||||
|
"SceneView"=""
|
||||||
|
"Scissor"=""
|
||||||
|
"Scribe"=""
|
||||||
|
"Sector"=""
|
||||||
|
"SectorPlacer"=""
|
||||||
|
"SegmentPlacer"=""
|
||||||
|
"Sequence"=""
|
||||||
|
"SetSceneViewVisitor"=""
|
||||||
|
"ShadeModel"=""
|
||||||
|
"Shader"=""
|
||||||
|
"ShadowVolumeOccluder"=""
|
||||||
|
"Shape"=""
|
||||||
|
"ShapeDrawable"=""
|
||||||
|
"SharedStateManager"=""
|
||||||
|
"Shooter"=""
|
||||||
|
"SimpleViewer"=""
|
||||||
|
"Simplifier"=""
|
||||||
|
"SmokeEffect"=""
|
||||||
|
"SmokeTrailEffect"=""
|
||||||
|
"SmoothingVisitor"=""
|
||||||
|
"SpecularHighlights"=""
|
||||||
|
"SphereSegment"=""
|
||||||
|
"State"=""
|
||||||
|
"StateAttribute"=""
|
||||||
|
"StateGraph"=""
|
||||||
|
"StateSet"=""
|
||||||
|
"StateSetManipulator"=""
|
||||||
|
"StaticMethodInfo"=""
|
||||||
|
"Statistics"=""
|
||||||
|
"StatsHandler"=""
|
||||||
|
"Stencil"=""
|
||||||
|
"String"=""
|
||||||
|
"Switch"=""
|
||||||
|
"TangentSpaceGenerator"=""
|
||||||
|
"Technique"=""
|
||||||
|
"TerrainManipulator"=""
|
||||||
|
"Tessellator"=""
|
||||||
|
"TexEnv"=""
|
||||||
|
"TexEnvCombine"=""
|
||||||
|
"TexEnvFilter"=""
|
||||||
|
"TexGen"=""
|
||||||
|
"TexGenNode"=""
|
||||||
|
"TexMat"=""
|
||||||
|
"Text"=""
|
||||||
|
"Texture"=""
|
||||||
|
"Texture1D"=""
|
||||||
|
"Texture2D"=""
|
||||||
|
"Texture3D"=""
|
||||||
|
"TextureCubeMap"=""
|
||||||
|
"TextureRectangle"=""
|
||||||
|
"Timer"=""
|
||||||
|
"TrackballManipulator"=""
|
||||||
|
"Transform"=""
|
||||||
|
"TransformAttributeFunctor"=""
|
||||||
|
"TransformCallback"=""
|
||||||
|
"TriangleFunctor"=""
|
||||||
|
"TriangleIndexFunctor"=""
|
||||||
|
"TriStripVisitor"=""
|
||||||
|
"Type"=""
|
||||||
|
"TypedConstructorInfo"=""
|
||||||
|
"TypedMethodInfo"=""
|
||||||
|
"TypeNameAliasProxy"=""
|
||||||
|
"UFOManipulator"=""
|
||||||
|
"Uniform"=""
|
||||||
|
"UnitTestFramework"=""
|
||||||
|
"UpdateVisitor"=""
|
||||||
|
"Utility"=""
|
||||||
|
"Validator"=""
|
||||||
|
"Value"=""
|
||||||
|
"VariableRateCounter"=""
|
||||||
|
"variant_cast"=""
|
||||||
|
"Vec2"=""
|
||||||
|
"Vec2b"=""
|
||||||
|
"Vec2d"=""
|
||||||
|
"Vec2f"=""
|
||||||
|
"Vec2s"=""
|
||||||
|
"Vec3"=""
|
||||||
|
"Vec3b"=""
|
||||||
|
"Vec3d"=""
|
||||||
|
"Vec3f"=""
|
||||||
|
"Vec3s"=""
|
||||||
|
"Vec4"=""
|
||||||
|
"Vec4b"=""
|
||||||
|
"Vec4d"=""
|
||||||
|
"Vec4f"=""
|
||||||
|
"Vec4s"=""
|
||||||
|
"Vec4ub"=""
|
||||||
|
"Version"=""
|
||||||
|
"VertexProgram"=""
|
||||||
|
"View"=""
|
||||||
|
"Viewer"=""
|
||||||
|
"ViewerEventHandler"=""
|
||||||
|
"Viewport"=""
|
||||||
|
"VisibilityGroup"=""
|
||||||
|
"WriteFile"=""
|
||||||
|
|
||||||
|
"Block"=""
|
||||||
|
"BlockingQueue"=""
|
||||||
|
"Camera"=""
|
||||||
|
"CameraConfig"=""
|
||||||
|
"CameraGroup"=""
|
||||||
|
"Events"=""
|
||||||
|
"Export"=""
|
||||||
|
"InputArea"=""
|
||||||
|
"Keyboard"=""
|
||||||
|
"KeyboardMouse"=""
|
||||||
|
"Math"=""
|
||||||
|
"Referenced"=""
|
||||||
|
"RefOpenThreads"=""
|
||||||
|
"RenderSurface"=""
|
||||||
|
"Timer"=""
|
||||||
|
"Trackball"=""
|
||||||
|
"Types"=""
|
||||||
|
"Version"=""
|
||||||
|
"Window3D"=""
|
||||||
|
"VisualChooser"=""
|
||||||
|
|
||||||
|
"Barrier"=""
|
||||||
|
"Condition"=""
|
||||||
|
"Exports"=""
|
||||||
|
"Mutex"=""
|
||||||
|
"ScopedLock"=""
|
||||||
|
"Thread"=""
|
||||||
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 870 B After Width: | Height: | Size: 870 B |
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 745 B After Width: | Height: | Size: 745 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 525 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |