Removed tabs
This commit is contained in:
parent
5be86601bb
commit
6fb7910dce
146
CMakeLists.txt
146
CMakeLists.txt
@ -12,8 +12,8 @@ SET(CMAKE_MODULE_PATH "${OpenSceneGraph_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_
|
|||||||
#SET(CMAKE_INCLUDE_PATH "${OpenSceneGraph_SOURCE_DIR}/../3rdParty/include;${CMAKE_INCLUDE_PATH}")
|
#SET(CMAKE_INCLUDE_PATH "${OpenSceneGraph_SOURCE_DIR}/../3rdParty/include;${CMAKE_INCLUDE_PATH}")
|
||||||
#SET(CMAKE_LIBRARY_PATH "${OpenSceneGraph_SOURCE_DIR}/../3rdParty/lib;${CMAKE_LIBRARY_PATH}")
|
#SET(CMAKE_LIBRARY_PATH "${OpenSceneGraph_SOURCE_DIR}/../3rdParty/lib;${CMAKE_LIBRARY_PATH}")
|
||||||
IF(USING_OSG_OP_OT_TRIPLE_SET)
|
IF(USING_OSG_OP_OT_TRIPLE_SET)
|
||||||
SET(CMAKE_INCLUDE_PATH "${OpenSceneGraph_SOURCE_DIR}/../../3rdParty/include;${CMAKE_INCLUDE_PATH}")
|
SET(CMAKE_INCLUDE_PATH "${OpenSceneGraph_SOURCE_DIR}/../../3rdParty/include;${CMAKE_INCLUDE_PATH}")
|
||||||
SET(CMAKE_LIBRARY_PATH "${OpenSceneGraph_SOURCE_DIR}/../../3rdParty/lib;${CMAKE_LIBRARY_PATH}")
|
SET(CMAKE_LIBRARY_PATH "${OpenSceneGraph_SOURCE_DIR}/../../3rdParty/lib;${CMAKE_LIBRARY_PATH}")
|
||||||
ENDIF(USING_OSG_OP_OT_TRIPLE_SET)
|
ENDIF(USING_OSG_OP_OT_TRIPLE_SET)
|
||||||
|
|
||||||
|
|
||||||
@ -31,20 +31,20 @@ ENDIF(USING_OSG_OP_OT_TRIPLE_SET)
|
|||||||
# And in the triple set case, we skip this check.
|
# And in the triple set case, we skip this check.
|
||||||
|
|
||||||
IF(USING_OSG_OP_OT_TRIPLE_SET)
|
IF(USING_OSG_OP_OT_TRIPLE_SET)
|
||||||
# MESSAGE("OSG: Using TripleSet, ${OpenThreads_SOURCE_DIR}.")
|
# MESSAGE("OSG: Using TripleSet, ${OpenThreads_SOURCE_DIR}.")
|
||||||
# So I think the fall-out is that all the OpenThreads variables
|
# So I think the fall-out is that all the OpenThreads variables
|
||||||
# that have been set are still in play. So the include paths are still
|
# that have been set are still in play. So the include paths are still
|
||||||
# visible, and the library is still set.
|
# visible, and the library is still set.
|
||||||
# To keep the same code paths
|
# To keep the same code paths
|
||||||
SET(OPENTHREADS_LIBRARY OpenThreads)
|
SET(OPENTHREADS_LIBRARY OpenThreads)
|
||||||
SET(OPENTHREADS_INCLUDE_DIR ${OpenThreads_SOURCE_DIR}/include)
|
SET(OPENTHREADS_INCLUDE_DIR ${OpenThreads_SOURCE_DIR}/include)
|
||||||
|
|
||||||
# MESSAGE("Lib: ${OPENTHREADS_LIBRARY}")
|
# MESSAGE("Lib: ${OPENTHREADS_LIBRARY}")
|
||||||
|
|
||||||
|
|
||||||
ELSE(USING_OSG_OP_OT_TRIPLE_SET)
|
ELSE(USING_OSG_OP_OT_TRIPLE_SET)
|
||||||
# MESSAGE("OSG: Not using Triple Set")
|
# MESSAGE("OSG: Not using Triple Set")
|
||||||
FIND_PACKAGE(OpenThreads REQUIRED)
|
FIND_PACKAGE(OpenThreads REQUIRED)
|
||||||
|
|
||||||
ENDIF(USING_OSG_OP_OT_TRIPLE_SET)
|
ENDIF(USING_OSG_OP_OT_TRIPLE_SET)
|
||||||
|
|
||||||
@ -61,8 +61,8 @@ ENDIF(USING_OSG_OP_OT_TRIPLE_SET)
|
|||||||
# which might be an issue on things like Cygwin. This may need to be fixed.
|
# which might be an issue on things like Cygwin. This may need to be fixed.
|
||||||
FIND_PACKAGE(Threads)
|
FIND_PACKAGE(Threads)
|
||||||
IF(CMAKE_SYSTEM MATCHES IRIX)
|
IF(CMAKE_SYSTEM MATCHES IRIX)
|
||||||
# Erase CMAKE_THREAD_LIBS_INIT and hope it works
|
# Erase CMAKE_THREAD_LIBS_INIT and hope it works
|
||||||
SET(CMAKE_THREAD_LIBS_INIT "" CACHE INTERNAL "")
|
SET(CMAKE_THREAD_LIBS_INIT "" CACHE INTERNAL "")
|
||||||
ENDIF(CMAKE_SYSTEM MATCHES IRIX)
|
ENDIF(CMAKE_SYSTEM MATCHES IRIX)
|
||||||
|
|
||||||
|
|
||||||
@ -70,23 +70,23 @@ ENDIF(CMAKE_SYSTEM MATCHES IRIX)
|
|||||||
FIND_PACKAGE(OpenGL)
|
FIND_PACKAGE(OpenGL)
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
FIND_LIBRARY(CARBON_LIBRARY Carbon)
|
FIND_LIBRARY(CARBON_LIBRARY Carbon)
|
||||||
FIND_LIBRARY(COCOA_LIBRARY Cocoa)
|
FIND_LIBRARY(COCOA_LIBRARY Cocoa)
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
# Not sure what this will do on Cygwin and Msys
|
# Not sure what this will do on Cygwin and Msys
|
||||||
# Also, remember OS X X11 is a user installed option so it may not exist.
|
# Also, remember OS X X11 is a user installed option so it may not exist.
|
||||||
FIND_PACKAGE(X11)
|
FIND_PACKAGE(X11)
|
||||||
# Some Unicies need explicit linkage to the Math library or the build fails.
|
# Some Unicies need explicit linkage to the Math library or the build fails.
|
||||||
FIND_LIBRARY(MATH_LIBRARY m)
|
FIND_LIBRARY(MATH_LIBRARY m)
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
|
|
||||||
# Make the headers visible to everything
|
# Make the headers visible to everything
|
||||||
INCLUDE_DIRECTORIES(
|
INCLUDE_DIRECTORIES(
|
||||||
${OpenSceneGraph_SOURCE_DIR}/include
|
${OpenSceneGraph_SOURCE_DIR}/include
|
||||||
${OPENTHREADS_INCLUDE_DIR}
|
${OPENTHREADS_INCLUDE_DIR}
|
||||||
${OPENGL_INCLUDE_DIR}
|
${OPENGL_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Common global definitions
|
# Common global definitions
|
||||||
@ -94,12 +94,12 @@ INCLUDE_DIRECTORIES(
|
|||||||
# Platform specific definitions
|
# Platform specific definitions
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
#needed for net plugin
|
#needed for net plugin
|
||||||
SET (OSG_SOCKET_LIBS wsock32.lib)
|
SET (OSG_SOCKET_LIBS wsock32.lib)
|
||||||
# Both Cygwin and Msys need -DNOMINMAX ???
|
# Both Cygwin and Msys need -DNOMINMAX ???
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
ADD_DEFINITIONS(-DNOMINMAX)
|
ADD_DEFINITIONS(-DNOMINMAX)
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
########################################################################################################
|
########################################################################################################
|
||||||
@ -109,15 +109,15 @@ ENDIF(WIN32)
|
|||||||
#luigi#SET(CMAKE_SKIP_RPATH TRUE)
|
#luigi#SET(CMAKE_SKIP_RPATH TRUE)
|
||||||
#luigi#SET(CMAKE_SKIP_RULE_DEPENDENCY TRUE)
|
#luigi#SET(CMAKE_SKIP_RULE_DEPENDENCY TRUE)
|
||||||
#luigi#IF(UNIX)
|
#luigi#IF(UNIX)
|
||||||
#luigi# LIST_CONTAINS(contains "g++" ${CMAKE_CXX_COMPILER_LIST})
|
#luigi# LIST_CONTAINS(contains "g++" ${CMAKE_CXX_COMPILER_LIST})
|
||||||
#luigi# IF (contains)
|
#luigi# IF (contains)
|
||||||
#luigi# MESSAGE(${MY_MESSAGE_DEFAULT} "${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} setting CMAKE_CXX_COMPILER to g++")
|
#luigi# MESSAGE(${MY_MESSAGE_DEFAULT} "${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} setting CMAKE_CXX_COMPILER to g++")
|
||||||
#luigi# SET(CMAKE_CXX_COMPILER "g++")
|
#luigi# SET(CMAKE_CXX_COMPILER "g++")
|
||||||
#luigi# SET(CMAKE_CXX_COMPILER_LOADED 2)
|
#luigi# SET(CMAKE_CXX_COMPILER_LOADED 2)
|
||||||
#luigi# SET(CMAKE_CXX_COMPILER_WORKS 2)
|
#luigi# SET(CMAKE_CXX_COMPILER_WORKS 2)
|
||||||
#luigi# ENDIF (contains)
|
#luigi# ENDIF (contains)
|
||||||
#luigi# SET(CMAKE_CXX_FLAGS_RELEASE "-O2")
|
#luigi# SET(CMAKE_CXX_FLAGS_RELEASE "-O2")
|
||||||
#luigi# SET(CMAKE_CXX_FLAGS_DEBUG "-ggdb -gstabs")
|
#luigi# SET(CMAKE_CXX_FLAGS_DEBUG "-ggdb -gstabs")
|
||||||
#luigi#ENDIF(UNIX)
|
#luigi#ENDIF(UNIX)
|
||||||
########################################################################################################
|
########################################################################################################
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ ENDIF(WIN32)
|
|||||||
################################################################################
|
################################################################################
|
||||||
# 3rd Party Dependency Stuff
|
# 3rd Party Dependency Stuff
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
INCLUDE(Find3rdPartyDependencies)
|
INCLUDE(Find3rdPartyDependencies)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
# Common to all platforms:
|
# Common to all platforms:
|
||||||
@ -153,18 +153,18 @@ FIND_PACKAGE(Qt4)
|
|||||||
# Image readers/writers depend on 3rd party libraries except for OS X which
|
# Image readers/writers depend on 3rd party libraries except for OS X which
|
||||||
# can use Quicktime.
|
# can use Quicktime.
|
||||||
IF(NOT APPLE)
|
IF(NOT APPLE)
|
||||||
FIND_PACKAGE(GIFLIB)
|
FIND_PACKAGE(GIFLIB)
|
||||||
FIND_PACKAGE(JPEG)
|
FIND_PACKAGE(JPEG)
|
||||||
FIND_PACKAGE(PNG)
|
FIND_PACKAGE(PNG)
|
||||||
FIND_PACKAGE(TIFF)
|
FIND_PACKAGE(TIFF)
|
||||||
|
|
||||||
# QuickTime is required for OS X, but optional for Windows.
|
# QuickTime is required for OS X, but optional for Windows.
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
FIND_PACKAGE(QuickTime)
|
FIND_PACKAGE(QuickTime)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
ELSE(NOT APPLE)
|
ELSE(NOT APPLE)
|
||||||
FIND_PACKAGE(QuickTime)
|
FIND_PACKAGE(QuickTime)
|
||||||
ENDIF(NOT APPLE)
|
ENDIF(NOT APPLE)
|
||||||
|
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ SET(CMAKE_DEBUG_POSTFIX "d")
|
|||||||
SET(LIB_POSTFIX "")
|
SET(LIB_POSTFIX "")
|
||||||
IF(UNIX AND NOT WIN32 AND NOT APPLE)
|
IF(UNIX AND NOT WIN32 AND NOT APPLE)
|
||||||
IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
|
IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
SET(LIB_POSTFIX "64")
|
SET(LIB_POSTFIX "64")
|
||||||
ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
|
ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
ENDIF(UNIX AND NOT WIN32 AND NOT APPLE)
|
ENDIF(UNIX AND NOT WIN32 AND NOT APPLE)
|
||||||
|
|
||||||
@ -212,9 +212,9 @@ SET(LIBRARY_OUTPUT_PATH ${OUTPUT_LIBDIR})
|
|||||||
# Dynamic vs Static Linking
|
# Dynamic vs Static Linking
|
||||||
OPTION(DYNAMIC_OPENSCENEGRAPH "Set to ON to build OpenSceneGraph for dynamic linking. Use OFF for static." ON)
|
OPTION(DYNAMIC_OPENSCENEGRAPH "Set to ON to build OpenSceneGraph for dynamic linking. Use OFF for static." ON)
|
||||||
IF (DYNAMIC_OPENSCENEGRAPH)
|
IF (DYNAMIC_OPENSCENEGRAPH)
|
||||||
SET(OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC "SHARED")
|
SET(OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC "SHARED")
|
||||||
ELSE (DYNAMIC_OPENSCENEGRAPH)
|
ELSE (DYNAMIC_OPENSCENEGRAPH)
|
||||||
SET(OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC "STATIC")
|
SET(OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC "STATIC")
|
||||||
ENDIF(DYNAMIC_OPENSCENEGRAPH)
|
ENDIF(DYNAMIC_OPENSCENEGRAPH)
|
||||||
|
|
||||||
INCLUDE(OsgMacroUtils)
|
INCLUDE(OsgMacroUtils)
|
||||||
@ -224,13 +224,13 @@ ADD_SUBDIRECTORY(src)
|
|||||||
# OSG Applications
|
# OSG Applications
|
||||||
OPTION(BUILD_OSG_APPLICATIONS "Enable to build OSG Applications (e.g. osgviewer)" ON)
|
OPTION(BUILD_OSG_APPLICATIONS "Enable to build OSG Applications (e.g. osgviewer)" ON)
|
||||||
IF (BUILD_OSG_APPLICATIONS)
|
IF (BUILD_OSG_APPLICATIONS)
|
||||||
ADD_SUBDIRECTORY(applications)
|
ADD_SUBDIRECTORY(applications)
|
||||||
ENDIF(BUILD_OSG_APPLICATIONS)
|
ENDIF(BUILD_OSG_APPLICATIONS)
|
||||||
|
|
||||||
# OSG Examples
|
# OSG Examples
|
||||||
OPTION(BUILD_OSG_EXAMPLES "Enable to build OSG Examples" OFF)
|
OPTION(BUILD_OSG_EXAMPLES "Enable to build OSG Examples" OFF)
|
||||||
IF (BUILD_OSG_EXAMPLES)
|
IF (BUILD_OSG_EXAMPLES)
|
||||||
ADD_SUBDIRECTORY(examples)
|
ADD_SUBDIRECTORY(examples)
|
||||||
ENDIF(BUILD_OSG_EXAMPLES)
|
ENDIF(BUILD_OSG_EXAMPLES)
|
||||||
|
|
||||||
|
|
||||||
@ -243,24 +243,24 @@ INCLUDE(${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL)
|
|||||||
# To build the documention, you will have to enable it
|
# To build the documention, you will have to enable it
|
||||||
# and then do the equivalent of "make DoxygenDoc".
|
# and then do the equivalent of "make DoxygenDoc".
|
||||||
IF(BUILD_DOCUMENTATION)
|
IF(BUILD_DOCUMENTATION)
|
||||||
IF(DOT)
|
IF(DOT)
|
||||||
SET(HAVE_DOT YES)
|
SET(HAVE_DOT YES)
|
||||||
ELSE(DOT)
|
ELSE(DOT)
|
||||||
SET(HAVE_DOT NO)
|
SET(HAVE_DOT NO)
|
||||||
ENDIF(DOT)
|
ENDIF(DOT)
|
||||||
# This processes our Doxyfile.in and substitutes paths to generate
|
# This processes our Doxyfile.in and substitutes paths to generate
|
||||||
# a final Doxyfile
|
# a final Doxyfile
|
||||||
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/doc/Doxyfiles/doxyfile.cmake
|
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/doc/Doxyfiles/doxyfile.cmake
|
||||||
${PROJECT_BINARY_DIR}/doc/doxyfile
|
${PROJECT_BINARY_DIR}/doc/doxyfile
|
||||||
)
|
)
|
||||||
# This creates a new target to build documentation.
|
# This creates a new target to build documentation.
|
||||||
# It runs ${DOXYGEN} which is the full path and executable to
|
# It runs ${DOXYGEN} which is the full path and executable to
|
||||||
# Doxygen on your system, set by the FindDoxygen.cmake module
|
# Doxygen on your system, set by the FindDoxygen.cmake module
|
||||||
# (called by FindDocumentation.cmake).
|
# (called by FindDocumentation.cmake).
|
||||||
# It runs the final generated Doxyfile against it.
|
# It runs the final generated Doxyfile against it.
|
||||||
# The DOT_PATH is substituted into the Doxyfile.
|
# The DOT_PATH is substituted into the Doxyfile.
|
||||||
ADD_CUSTOM_TARGET(DoxygenDoc ${DOXYGEN}
|
ADD_CUSTOM_TARGET(DoxygenDoc ${DOXYGEN}
|
||||||
${PROJECT_BINARY_DIR}/docs/doxyfile
|
${PROJECT_BINARY_DIR}/docs/doxyfile
|
||||||
)
|
)
|
||||||
ENDIF(BUILD_DOCUMENTATION)
|
ENDIF(BUILD_DOCUMENTATION)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user