fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Base / CMakeLists.Lib.OSGBase.txt
blobaf210dbe92d8e25d3578abd9b31ed48776071e0d
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 IF(OSG_WITH_QHULL)
30     LIST(APPEND ${PROJECT_NAME}_DEP_LIB    QHULL_LIBRARIES)
31     LIST(APPEND ${PROJECT_NAME}_DEP_INCDIR QHULL_INCLUDE_DIR)
32     add_definitions(-DOSG_WITH_QHULL)
33 ENDIF(OSG_WITH_QHULL)
35 SET(${PROJECT_NAME}_CXXFLAGS ${OSG_ADD_CXX_FLAGS})
37 OSG_STORE_PROJECT_DEPENDENCIES()
39 ##############################################################################
40 # collect sources
41 ##############################################################################
43 # special handling for generated file OSGConfigured.h
44 IF(${OSG_CMAKE_PASS} STREQUAL "OSGCOLLECT")
45     FILE(APPEND ${${PROJECT_NAME}_BUILD_FILE}
46         "LIST(APPEND ${PROJECT_NAME}_INC \"${CMAKE_BINARY_DIR}/Source/Base/Base\")\n\n")
48     FILE(APPEND ${${PROJECT_NAME}_BUILD_FILE}
49         "LIST(APPEND ${PROJECT_NAME}_HDR \"${CMAKE_BINARY_DIR}/Source/Base/Base/OSGConfigured.h\")\n\n")
50 ENDIF(${OSG_CMAKE_PASS} STREQUAL "OSGCOLLECT")
52 OSG_ADD_DIRECTORY("Source/Base/Base")
53 OSG_ADD_DIRECTORY("Source/Base/Field")
54 #OSG_ADD_DIRECTORY("Source/Base/Field/Wrapper")
55 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Base")
56 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Connector")
57 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields")
58 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields/Handle")
59 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields/PointerFields")
60 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields/MemObjPointerFields")
61 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Fields/Wrapper")
62 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Misc")
63 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Mixins")
64 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Node")
65 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Attachments")
66 OSG_ADD_DIRECTORY("Source/Base/FieldContainer/Threading")
67 OSG_ADD_DIRECTORY("Source/Base/Network")
68 OSG_ADD_DIRECTORY("Source/Base/Network/Base")
69 OSG_ADD_DIRECTORY("Source/Base/Network/Socket")
70 OSG_ADD_DIRECTORY("Source/Base/PerfMonitor")
71 OSG_ADD_DIRECTORY("Source/Base/Statistics")
72 OSG_ADD_DIRECTORY("Source/Base/Threading")
74 IF(OSGCOMPAT_ENABLE_DEPRECATED)
75     OSG_ADD_DIRECTORY("Source/Base/Depreciated")
76 ENDIF(OSGCOMPAT_ENABLE_DEPRECATED)
78 ##############################################################################
79 # setup build
80 ##############################################################################
82 ##############################################################################
83 # setup python bindings
84 ##############################################################################
86 IF(${OSG_CMAKE_PASS} STREQUAL "OSGPYTHON")
87   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGBaseFunctions.h")
88   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGTypeBase.h")
90   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGMemoryObject.h")
91   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGDataType.h")
92   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldType.h")
93   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGBaseTypes.h")
94   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGField.h")
95   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldType.h")
96   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldDescriptionBase.h")
97   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldContainerType.h")
98   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldContainerFactory.h")
99   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFieldContainer.h")       
100   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGChangeList.h")          
101   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGLine.h")
102   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGVolume.h")       
103   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGVector.h")
104   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGColor.h")
105   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGMatrix.h")
106   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGQuaternion.h")
107   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGPlane.h")
108   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGBoxVolume.h")
109   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGCylinderVolume.h")
110   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGFrustumVolume.h")
111   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGPolytopeVolume.h")
112   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGSphereVolume.h")
114   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGStatCollector.h")
115   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGMatrixUtility.h")
116   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGConnectionFactory.h")
117   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGPointConnection.h")
118   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGGroupConnection.h")
122   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "BaseWrappers.h")
123   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "ColorWrapper.h")
124   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "VecStorageWrappers.h")
126   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGNode.h")
127   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGBinaryDataHandler.h")
128   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGNameAttachment.h")
129   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGException.h")
130   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGExceptionBinaryDataHandler.h")
131   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGSocketException.h")
132   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGPerfMonitor.h")
133   LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_HEADERS "OSGHardwareContextParent.h")
136 #  LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_FCS "AttachmentContainer")
137 #  LIST(APPEND ${PROJECT_NAME}_PYTHON_BIND_FCS "NodeCore")
139 ENDIF(${OSG_CMAKE_PASS} STREQUAL "OSGPYTHON")
141 ##############################################################################
142 # setup doxygen documentation
143 ##############################################################################
144 SET(${PROJECT_NAME}_DOXY_EXTRA_INC "")
146 OSG_SETUP_PROJECT("OSG_COMPILEBASELIB")