2 OSG_ADD_PROJECT("OSGSystem")
5 ##############################################################################
7 ##############################################################################
9 # dependencies - OpenSG
10 SET(${PROJECT_NAME}_DEP_OSG_LIB OSGBase)
11 SET(${PROJECT_NAME}_DEP_TEST_OSG_LIB OSGDrawable
16 SET(${PROJECT_NAME}_DEP_UNITTEST_OSG_LIB OSGGroup)
18 # dependencies - External
19 SET(${PROJECT_NAME}_DEP_LIB ZLIB_LIBRARIES OPENGL_gl_LIBRARY OPENGL_glu_LIBRARY)
21 #MESSAGE(STATUS "sys: zlib: ${ZLIB_FOUND}")
23 IF(WIN32 AND OSG_WITH_ZLIB)
24 # SET(${PROJECT_NAME}_DEP_LIBDIR ZLIB_LIBRARY_DIR)
25 SET(${PROJECT_NAME}_DEP_INCDIR ZLIB_INCLUDE_DIR)
26 ENDIF(WIN32 AND OSG_WITH_ZLIB)
29 SET(${PROJECT_NAME}_DEP_SYS_INCDIR ${${PROJECT_NAME}_DEP_SYS_INCDIR}
31 SET(${PROJECT_NAME}_DEP_LIB ${${PROJECT_NAME}_DEP_LIB}
35 # SET(${PROJECT_NAME}_DEP_TEST_LIB)
36 # SET(${PROJECT_NAME}_DEP_TEST_LIBDIR)
37 # SET(${PROJECT_NAME}_DEP_TEST_INCDIR OSG_GLUT_INC_DIR)
39 IF(OSG_OGL_COREONLY AND NOT OSG_CHECK_COREONLY)
40 SET(_OSG_EX_RBBASE "${CMAKE_CURRENT_SOURCE_DIR}/RenderingBackend")
42 SET(${PROJECT_NAME}_EXCL_FILES
43 ${_OSG_EX_RBBASE}/OSGOcclusionCullingTreeBuilder.h
44 ${_OSG_EX_RBBASE}/OSGOcclusionCullingTreeBuilder.inl
45 ${_OSG_EX_RBBASE}/OSGOcclusionCullingTreeBuilder.cpp)
48 OSG_ADD_GLUTPACKAGE(TRUE)
50 # dependencies - Additional
51 SET(${PROJECT_NAME}_DEP_ADD_INCDIR ${CMAKE_SOURCE_DIR}/Source/External)
53 SET(${PROJECT_NAME}_CXXFLAGS ${OSG_ADD_CXX_FLAGS})
55 OSG_STORE_PROJECT_DEPENDENCIES()
57 ##############################################################################
59 ##############################################################################
61 OSG_ADD_DIRECTORY("Source/System/Action/Base")
62 OSG_ADD_DIRECTORY("Source/System/Action/IntersectAction")
63 OSG_ADD_DIRECTORY("Source/System/Action/RenderAction")
64 OSG_ADD_DIRECTORY("Source/System/FieldContainer/Attachments")
65 OSG_ADD_DIRECTORY("Source/System/FieldContainer/Base")
66 OSG_ADD_DIRECTORY("Source/System/FieldContainer/Mixins")
67 OSG_ADD_DIRECTORY("Source/System/FieldContainer/Misc")
68 OSG_ADD_DIRECTORY("Source/System/FieldContainer/Field")
69 OSG_ADD_DIRECTORY("Source/System/FileIO/Base")
70 OSG_ADD_DIRECTORY("Source/System/FileIO/OSG")
71 OSG_ADD_DIRECTORY("Source/System/FileIO/ScanParseSkel")
73 OSG_ADD_DIRECTORY("Source/System/FileIO/ScanParseSkel/Linux")
76 IF(NOT OSG_ENABLE_SCANPARSE_REGEN)
77 IF(OSG_USE_OSG2_NAMESPACE)
78 OSG_ADD_DIRECTORY("Source/System/FileIO/ScanParseSkel/prebuildOSG2")
80 OSG_ADD_DIRECTORY("Source/System/FileIO/ScanParseSkel/prebuild")
82 ENDIF(NOT OSG_ENABLE_SCANPARSE_REGEN)
84 OSG_ADD_DIRECTORY("Source/System/GraphOp/Base")
85 OSG_ADD_DIRECTORY("Source/System/Image")
86 OSG_ADD_DIRECTORY("Source/System/Image/Squish")
87 OSG_ADD_DIRECTORY("Source/System/Material/Base")
88 OSG_ADD_DIRECTORY("Source/System/NodeCores/Drawables/Base")
89 OSG_ADD_DIRECTORY("Source/System/NodeCores/Groups/Base")
90 OSG_ADD_DIRECTORY("Source/System/NodeCores/Drawables/Geometry/PropertiesBase")
91 OSG_ADD_DIRECTORY("Source/System/RenderingBackend")
92 OSG_ADD_DIRECTORY("Source/System/State/Base")
93 OSG_ADD_DIRECTORY("Source/System/State/Shader/Base")
94 OSG_ADD_DIRECTORY("Source/System/State/Shader/Chunks")
95 OSG_ADD_DIRECTORY("Source/System/State/Shader/SHL")
96 OSG_ADD_DIRECTORY("Source/System/State/Shader/Variables")
97 OSG_ADD_DIRECTORY("Source/System/Statistics/Base")
98 OSG_ADD_DIRECTORY("Source/System/Window/Base")
99 OSG_ADD_DIRECTORY("Source/System/Window/FrameBufferObjects")
101 IF(OSGCOMPAT_ENABLE_DEPRECATED)
102 OSG_ADD_DIRECTORY("Source/System/Depreciated")
103 OSG_ADD_DIRECTORY("Source/System/Depreciated/State")
105 IF(NOT CMAKE_BUILD_TYPE STREQUAL "DebugGV" AND
106 NOT CMAKE_BUILD_TYPE STREQUAL "ReleaseGV" )
108 OSG_ADD_DIRECTORY("Source/System/Depreciated/State/OpenGL")
112 OSG_ADD_DIRECTORY("Source/System/Depreciated/State/Shader")
113 ENDIF(OSGCOMPAT_ENABLE_DEPRECATED)
116 IF(${OSG_CMAKE_PASS} STREQUAL "OSGCOLLECT")
117 FILE(APPEND ${${PROJECT_NAME}_BUILD_FILE}
118 "LIST(APPEND ${PROJECT_NAME}_DEP_SYS_INCDIR \"${CMAKE_SOURCE_DIR}/Source/External\")\n\n")
120 FILE(APPEND ${${PROJECT_NAME}_BUILD_FILE}
121 "LIST(APPEND ${PROJECT_NAME}_DEP_SYS_TEST_INCDIR \"${CMAKE_SOURCE_DIR}/Source/External\")\n\n")
123 FILE(APPEND ${${PROJECT_NAME}_BUILD_FILE}
124 "LIST(APPEND ${PROJECT_NAME}_HDR
125 \"${CMAKE_SOURCE_DIR}/Source/External/google/dense_hash_map\"
126 \"${CMAKE_SOURCE_DIR}/Source/External/google/dense_hash_set\"
127 \"${CMAKE_SOURCE_DIR}/Source/External/google/sparse_hash_map\"
128 \"${CMAKE_SOURCE_DIR}/Source/External/google/sparse_hash_set\"
129 \"${CMAKE_SOURCE_DIR}/Source/External/google/sparsetable\"
130 \"${CMAKE_SOURCE_DIR}/Source/External/google/sparsehash/google_config.h\"
131 \"${CMAKE_SOURCE_DIR}/Source/External/google/sparsehash/densehashtable.h\"
132 \"${CMAKE_SOURCE_DIR}/Source/External/google/sparsehash/hash_fun.h\"
133 \"${CMAKE_SOURCE_DIR}/Source/External/google/sparsehash/sparsehashtable.h\")\n\n")
135 IF(NOT OSG_ENABLE_SCANPARSE_REGEN)
136 FILE(APPEND ${${PROJECT_NAME}_BUILD_FILE}
137 "LIST(APPEND ${PROJECT_NAME}_HDR
138 \"${CMAKE_SOURCE_DIR}/Source/System/FileIO/ScanParseSkel/prebuild/OSGScanParseSkelParser.hpp\")\n\n")
139 ENDIF(NOT OSG_ENABLE_SCANPARSE_REGEN)
140 ENDIF(${OSG_CMAKE_PASS} STREQUAL "OSGCOLLECT")
143 ##############################################################################
145 ##############################################################################
147 ##############################################################################
148 # setup python bindings
149 ##############################################################################
151 IF(${OSG_CMAKE_PASS} STREQUAL "OSGPYTHON")
153 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "SystemWrappers.h")
155 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGImageFileHandler.h")
156 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGImageFileType.h")
157 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGSceneFileHandler.h")
158 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGSceneFileType.h")
159 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGGraphOpSeq.h")
160 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGCylinderVolume.h")
161 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGVolumeDraw.h")
162 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGState.h")
163 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGBackground.h")
164 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGLightEnv.h")
165 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGGraphOpFactory.h")
166 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGGraphOp.h")
167 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGGraphOpSeq.h")
168 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGShaderCache.h")
169 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGTraversalValidator.h")
170 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGRenderTreeNodePool.h")
171 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGRenderPartition.h")
172 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGTreeBuilderBase.h")
173 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGRenderAction.h")
174 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGIntersectAction.h")
175 LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGStateOverride.h")
177 # LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_FCS "Group")
178 ENDIF(${OSG_CMAKE_PASS} STREQUAL "OSGPYTHON")
180 ##############################################################################
181 # setup doxygen documentation
182 ##############################################################################
183 SET(${PROJECT_NAME}_DOXY_EXTRA_INC "")
185 OSG_SETUP_PROJECT("OSG_COMPILESYSTEMLIB")