added: travMask to csm viewport
[opensg.git] / Source / Base / CMakeLists.Lib.OSGBase.txt
blobdf4074626c00d21d6321bcf336e1b920560ed832
2 OSG_ADD_PROJECT("OSGBase")
3 OSG_SELECT_PROJECT()
5 #############################################################################
6 # dependencies
7 ##############################################################################
9 # dependencies - OpenSG
10 # SET(${PROJECT_NAME}_DEP_OSG_LIB)
11 # SET(${PROJECT_NAME}_DEP_TEST_OSG_LIB)
13 # dependencies - External
14 SET(${PROJECT_NAME}_DEP_LIB OSG_DL_LIB OSG_THREAD_LIB OSG_BOOST_LIBS)
15 # SET(${PROJECT_NAME}_DEP_LIBDIR)
16 # SET(${PROJECT_NAME}_DEP_INCDIR)
18 # SET(${PROJECT_NAME}_DEP_TEST_LIB)
19 # SET(${PROJECT_NAME}_DEP_TEST_LIBDIR)
20 # SET(${PROJECT_NAME}_DEP_TEST_INCDIR)
22 SET(${PROJECT_NAME}_DEP_UNITTEST_LIB OSG_BOOST_LIBS)
23 # SET(${PROJECT_NAME}_DEP_UNITTEST_LIBDIR)
24 SET(${PROJECT_NAME}_DEP_UNITTEST_INCDIR OSG_BOOST_INCDIRS)
26 # dependencies - Additional
27 # SET(${PROJECT_NAME}_DEP_ADD_INCDIR)
29 SET(${PROJECT_NAME}_CXXFLAGS ${OSG_ADD_CXX_FLAGS})
31 OSG_STORE_PROJECT_DEPENDENCIES()
33 ##############################################################################
34 # collect sources
35 ##############################################################################
37 # special handling for generated file OSGConfigured.h
38 IF(${OSG_CMAKE_PASS} STREQUAL "OSGCOLLECT")
39     FILE(APPEND ${${PROJECT_NAME}_BUILD_FILE}
40         "LIST(APPEND ${PROJECT_NAME}_INC \"${CMAKE_BINARY_DIR}/Source/Base/Base\")\n\n")
42     FILE(APPEND ${${PROJECT_NAME}_BUILD_FILE}
43         "LIST(APPEND ${PROJECT_NAME}_HDR \"${CMAKE_BINARY_DIR}/Source/Base/Base/OSGConfigured.h\")\n\n")
44 ENDIF(${OSG_CMAKE_PASS} STREQUAL "OSGCOLLECT")
46 OSG_ADD_DIRECTORY("Source/Base/Base")
47 OSG_ADD_DIRECTORY("Source/Base/Field")
48 #OSG_ADD_DIRECTORY("Source/Base/Field/Wrapper")
49 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Base")
50 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Connector")
51 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields")
52 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields/Handle")
53 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields/PointerFields")
54 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields/MemObjPointerFields")
55 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields/Wrapper")
56 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Misc")
57 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Mixins")
58 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Node")
59 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Attachments")
60 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Threading")
61 OSG_ADD_DIRECTORY("Source/Base/Network")
62 OSG_ADD_DIRECTORY("Source/Base/Network/Base")
63 OSG_ADD_DIRECTORY("Source/Base/Network/Socket")
64 OSG_ADD_DIRECTORY("Source/Base/PerfMonitor")
65 OSG_ADD_DIRECTORY("Source/Base/Statistics")
66 OSG_ADD_DIRECTORY("Source/Base/Threading")
68 IF(OSGCOMPAT_ENABLE_DEPRECATED)
69     OSG_ADD_DIRECTORY("Source/Base/Depreciated")
70 ENDIF(OSGCOMPAT_ENABLE_DEPRECATED)
72 ##############################################################################
73 # setup build
74 ##############################################################################
76 ##############################################################################
77 # setup python bindings
78 ##############################################################################
80 IF(${OSG_CMAKE_PASS} STREQUAL "OSGPYTHON")
81   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGBaseFunctions.h")
82   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGTypeBase.h")
84   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGMemoryObject.h")
85   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGDataType.h")
86   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldType.h")
87   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGBaseTypes.h")
88   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGField.h")
89   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldType.h")
90   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldDescriptionBase.h")
91   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldContainerType.h")
92   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldContainerFactory.h")
93   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldContainer.h")       
94   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGChangeList.h")          
95   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGLine.h")
96   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGVolume.h")       
97   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGVector.h")
98   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGColor.h")
99   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGMatrix.h")
100   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGQuaternion.h")
101   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGPlane.h")
102   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGBoxVolume.h")
103   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGCylinderVolume.h")
104   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFrustumVolume.h")
105   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGPolytopeVolume.h")
106   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGSphereVolume.h")
108   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGStatCollector.h")
109   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGMatrixUtility.h")
110   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGConnectionFactory.h")
111   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGPointConnection.h")
112   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGGroupConnection.h")
116   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "BaseWrappers.h")
117   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "ColorWrapper.h")
118   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "VecStorageWrappers.h")
120   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGNode.h")
121   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGBinaryDataHandler.h")
122   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGNameAttachment.h")
123   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGException.h")
124   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGExceptionBinaryDataHandler.h")
125   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGSocketException.h")
126   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGPerfMonitor.h")
127   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGHardwareContextParent.h")
130 #  LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_FCS "AttachmentContainer")
131 #  LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_FCS "NodeCore")
133 ENDIF(${OSG_CMAKE_PASS} STREQUAL "OSGPYTHON")
135 ##############################################################################
136 # setup doxygen documentation
137 ##############################################################################
138 SET(${PROJECT_NAME}_DOXY_EXTRA_INC "")
140 OSG_SETUP_PROJECT("OSG_COMPILEBASELIB")