changed: gcc8 base update
[opensg.git] / Source / Contrib / ComplexSceneManager / CMakeLists.Lib.OSGContribCSM.txt
blob3b308252814e3476ab2c57b9a3f6b4055f3ec488
2 OSG_ADD_PROJECT("OSGContribCSM")
3 OSG_SELECT_PROJECT()
5 ##############################################################################
6 # dependencies
7 ##############################################################################
9 ##############################################################################
10 # simplify the tests below by setting local variables
12 SET(_CSM_HAS_NATIVE_WIN FALSE)
14 IF(GLUT_FOUND AND OSGBUILD_OSGWindowGLUT)
15   IF(NOT OSG_OGL_COREONLY OR OSG_CHECK_COREONLY)
16     SET(_BUILD_CSM_WINDOWGLUT ON)
17   ENDIF()
18 ENDIF(GLUT_FOUND AND OSGBUILD_OSGWindowGLUT)
20 IF(WIN32 AND OSGBUILD_OSGWindowWIN32)
21     SET(_BUILD_CSM_WINDOWWIN32 ON)
22     SET(_CSM_HAS_NATIVE_WIN TRUE)
23 ENDIF(WIN32 AND OSGBUILD_OSGWindowWIN32)
25 IF(X11_FOUND AND OSGBUILD_OSGWindowX AND NOT APPLE)
26     SET(_BUILD_CSM_WINDOWX ON)
27     SET(_CSM_HAS_NATIVE_WIN TRUE)
28 ENDIF(X11_FOUND AND OSGBUILD_OSGWindowX AND NOT APPLE)
30 IF(APPLE AND OSGBUILD_OSGWindowCocoa)
31     SET(_BUILD_CSM_WINDOWCOCOA ON)
32     SET(_CSM_HAS_NATIVE_WIN TRUE)
33 ENDIF(APPLE AND OSGBUILD_OSGWindowCocoa)
35 #IF(QT4_FOUND OR QT5_FOUND)
36 #  IF(OSGBUILD_OSGWindowQT4)
37 #    IF(NOT OSG_OGL_COREONLY OR OSG_CHECK_COREONLY)
38 #      SET(_BUILD_CSM_WINDOWQT ON)
39 #    ENDIF()
40 #  ENDIF(OSGBUILD_OSGWindowQT4)
41 #ENDIF(QT4_FOUND OR QT5_FOUND)
43 ##############################################################################
44 # depdencies start here
46 SET(${PROJECT_NAME}_DEP_OSG_LIB OSGDrawable
47                                 OSGWindow
48                                 OSGFileIO
49                                 OSGDynamics
50                                 OSGUtil   )
52 IF(OSGBUILD_OSGContribWebInterface)
53   LIST(APPEND ${PROJECT_NAME}_DEP_OSG_LIB OSGContribWebInterface)
55   SET(${PROJECT_NAME}_DEP_DEFS OSG_WITH_WEBSERVICE=1)
56 ENDIF()
59 IF(OSGBUILD_OSGCluster AND NOT OSG_OGL_COREONLY OR OSG_CHECK_COREONLY)
60     LIST(APPEND ${PROJECT_NAME}_DEP_OSG_LIB OSGCluster)
61 ELSE()
62     SET(${PROJECT_NAME}_EXCL_FILES 
63         ${CMAKE_CURRENT_SOURCE_DIR}/OSGCSMClusterWindowBase.cpp
64         ${CMAKE_CURRENT_SOURCE_DIR}/OSGCSMClusterWindowBase.h
65         ${CMAKE_CURRENT_SOURCE_DIR}/OSGCSMClusterWindowBase.inl
66         ${CMAKE_CURRENT_SOURCE_DIR}/OSGCSMClusterWindow.cpp
67         ${CMAKE_CURRENT_SOURCE_DIR}/OSGCSMClusterWindow.fcd
68         ${CMAKE_CURRENT_SOURCE_DIR}/OSGCSMClusterWindowFields.h
69         ${CMAKE_CURRENT_SOURCE_DIR}/OSGCSMClusterWindow.h
70         ${CMAKE_CURRENT_SOURCE_DIR}/OSGCSMClusterWindow.inl
71         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMClusterWinOptionsBase.cpp
72         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMClusterWinOptionsBase.h
73         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMClusterWinOptionsBase.inl
74         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMClusterWinOptions.cpp
75         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMClusterWinOptions.fcd
76         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMClusterWinOptionsFields.h
77         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMClusterWinOptions.h
78         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMClusterWinOptions.inl
79         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMMultiWinOptionsBase.cpp
80         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMMultiWinOptionsBase.h
81         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMMultiWinOptionsBase.inl
82         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMMultiWinOptions.cpp
83         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMMultiWinOptions.fcd
84         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMMultiWinOptionsFields.h
85         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMMultiWinOptions.h
86         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMMultiWinOptions.inl
87         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMSortFirstWinOptionsBase.cpp
88         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMSortFirstWinOptionsBase.h
89         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMSortFirstWinOptionsBase.inl
90         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMSortFirstWinOptions.cpp
91         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMSortFirstWinOptions.fcd
92         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMSortFirstWinOptionsFields.h
93         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMSortFirstWinOptions.h
94         ${CMAKE_CURRENT_SOURCE_DIR}/Helper/OSGCSMSortFirstWinOptions.inl
95         ${CMAKE_CURRENT_SOURCE_DIR}/Native-X/appClusterServerX.cpp)
96 ENDIF()
98 IF(_BUILD_CSM_WINDOWX)
99     LIST(APPEND ${PROJECT_NAME}_DEP_OSG_LIB OSGWindowX)
100 ENDIF(_BUILD_CSM_WINDOWX)
102 IF(_BUILD_CSM_WINDOWCOCOA)
103     LIST(APPEND ${PROJECT_NAME}_DEP_OSG_LIB OSGWindowCocoa)
104 ENDIF(_BUILD_CSM_WINDOWCOCOA)
106 IF(_BUILD_CSM_WINDOWGLUT)
107     LIST(APPEND ${PROJECT_NAME}_DEP_OSG_LIB OSGWindowGLUT)
109 #   SET(${PROJECT_NAME}_DEP_INCDIR OSG_GLUT_INC_DIR)
110     IF(GLUT_FOUND)
111       OSG_ADD_GLUTPACKAGE(FALSE)
112     ENDIF(GLUT_FOUND)
113 ENDIF(_BUILD_CSM_WINDOWGLUT)
115 #IF(_BUILD_CSM_WINDOWQT)
116 #    LIST(APPEND ${PROJECT_NAME}_DEP_OSG_LIB OSGWindowQT4)
118 #    LIST(APPEND ${PROJECT_NAME}_DEP_LIB OSG_QT_LIBS)
119 #    LIST(APPEND ${PROJECT_NAME}_DEP_INCDIR OSG_QT_INC_DIR)
120 #    LIST(APPEND ${PROJECT_NAME}_DEP_DEFS ${OSG_QT_DEFS})
121 #ENDIF(_BUILD_CSM_WINDOWQT)
123 IF(_BUILD_CSM_WINDOWWIN32)
124     LIST(APPEND ${PROJECT_NAME}_DEP_OSG_LIB OSGWindowWIN32)
125 ENDIF(_BUILD_CSM_WINDOWWIN32)
127 IF(${Boost_MINOR_VERSION} LESS 35)
128     SET(_OSG_CSM_BOOST_INC ${CMAKE_CURRENT_SOURCE_DIR}/External)
129     LIST(APPEND ${PROJECT_NAME}_DEP_INCDIR _OSG_CSM_BOOST_INC)
130 ENDIF(${Boost_MINOR_VERSION} LESS 35)
132 SET(${PROJECT_NAME}_DEP_TEST_OSG_LIB OSGImageFileIO)
133 IF(NOT OSG_OGL_COREONLY OR OSG_CHECK_COREONLY)
134   SET(${PROJECT_NAME}_DEP_TEST_OSG_LIB ${${PROJECT_NAME}_DEP_TEST_OSG_LIB}
135                                        OSGEffectGroups)
136 ENDIF()
138 IF(OSG_LINK_EXTERNAL_MODULES_TO_CSM)
140     FOREACH(EXTERNAL ${OSG_EXTRA_EXTERNAL_MODULES})
141       IF(NOT ${EXTERNAL}_CSM_IGNORE)
142         LIST(APPEND ${PROJECT_NAME}_DEP_TEST_OSG_EEX_LIB ${EXTERNAL})
143       ENDIF()
144     ENDFOREACH(EXTERNAL)
146 ENDIF(OSG_LINK_EXTERNAL_MODULES_TO_CSM)
148 SET(${PROJECT_NAME}_CXXFLAGS ${OSG_ADD_CXX_FLAGS})
150 SET(${PROJECT_NAME}_NO_DOC TRUE)
152 OSG_STORE_PROJECT_DEPENDENCIES()
154 ##############################################################################
155 # collect sources
156 ##############################################################################
158 OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager")
159 OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Interfaces")
160 OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Helper")
161 OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Helper/Shader")
162 OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Sensor")
163 OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Sensor/InterfaceSensors")
164 OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Sensor/InterfaceSensors/Devices")
165 OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/VRMLNodes")
167 IF(GLUT_FOUND AND _BUILD_CSM_WINDOWGLUT)
168     OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Passive")
169 ENDIF(GLUT_FOUND AND _BUILD_CSM_WINDOWGLUT)
171 IF(_BUILD_CSM_WINDOWGLUT)
172     OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/GLUT")
173 ENDIF(_BUILD_CSM_WINDOWGLUT)
175 #IF(_BUILD_CSM_WINDOWQT)
176 #    OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/QT4")
177 #ENDIF(_BUILD_CSM_WINDOWQT)
179 IF(_BUILD_CSM_WINDOWWIN32)
180     OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Native-WIN32")
181 ENDIF(_BUILD_CSM_WINDOWWIN32)
183 IF(_BUILD_CSM_WINDOWX)
184     OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Native-X")
185 ENDIF(_BUILD_CSM_WINDOWX)
187 IF(_BUILD_CSM_WINDOWCOCOA)
188     OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Native-Cocoa")
189 ENDIF(_BUILD_CSM_WINDOWCOCOA)
191 IF(NOT _CSM_HAS_NATIVE_WIN)
192     OSG_ADD_DIRECTORY("Source/Contrib/ComplexSceneManager/Native-Dummy")
193 ENDIF(NOT _CSM_HAS_NATIVE_WIN)
195 LIST(APPEND OSG_IGNORE_CLASSBUILD OSGCSMNativeWindow)
197 ##############################################################################
198 # setup python bindings
199 ##############################################################################
201 #SET(${PROJECT_NAME}_NO_PYTHON TRUE)
203 IF(${OSG_CMAKE_PASS} STREQUAL "OSGPYTHON")
205   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGRenderOptions.h")
206   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGImageComposer.h")
208 ENDIF()
210 ##############################################################################
211 # setup build
212 ##############################################################################
214 OSG_SETUP_PROJECT("OSG_COMPILECONTRIBCSMLIB")