Massive changes to the organisation of PolyVoxCore and PolyVoxYtil.
Also added start of logging capability.
This commit is contained in:
		
							
								
								
									
										92
									
								
								library/PolyVoxCore/CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										92
									
								
								library/PolyVoxCore/CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,92 @@ | ||||
| CMAKE_MINIMUM_REQUIRED(VERSION 2.6) | ||||
|  | ||||
| PROJECT(PolyVoxCore) | ||||
|  | ||||
| #Projects source files | ||||
| SET(CORE_SRC_FILES | ||||
| 	source/GradientEstimators.cpp | ||||
| 	source/IndexedSurfacePatch.cpp | ||||
| 	source/Log.cpp | ||||
| 	source/Region.cpp | ||||
| 	source/SurfaceAdjusters.cpp | ||||
| 	source/SurfaceExtractors.cpp  | ||||
| 	source/SurfaceVertex.cpp | ||||
| 	source/VoxelFilters.cpp | ||||
| ) | ||||
|  | ||||
| #Projects headers files | ||||
| SET(CORE_INC_FILES | ||||
| 	include/GradientEstimators.inl | ||||
| 	include/IndexedSurfacePatch.h | ||||
| 	include/Log.h | ||||
| 	include/PolyVoxForwardDeclarations.h | ||||
| 	include/Region.h | ||||
| 	include/SurfaceAdjusters.h | ||||
| 	include/SurfaceExtractors.h | ||||
| 	include/SurfaceVertex.h | ||||
| 	include/Vector.h | ||||
| 	include/Vector.inl | ||||
| 	include/Volume.h | ||||
| 	include/Volume.inl | ||||
| 	include/VolumeIterator.h | ||||
| 	include/VolumeIterator.inl | ||||
| 	include/VoxelFilters.h | ||||
| ) | ||||
|  | ||||
| SET(IMPL_SRC_FILES | ||||
| 	source/PolyVoxImpl/DecimatedSurfaceExtractor.cpp | ||||
| 	source/PolyVoxImpl/FastSurfaceExtractor.cpp | ||||
| 	source/PolyVoxImpl/MarchingCubesTables.cpp | ||||
| 	source/PolyVoxImpl/ReferenceSurfaceExtractor.cpp | ||||
| 	source/PolyVoxImpl/Utility.cpp | ||||
| ) | ||||
|  | ||||
| SET(IMPL_INC_FILES | ||||
| 	include/PolyVoxImpl/Block.h | ||||
| 	include/PolyVoxImpl/Block.inl | ||||
| 	include/PolyVoxImpl/BlockData.h | ||||
| 	include/PolyVoxImpl/BlockData.inl | ||||
| 	include/PolyVoxImpl/CPlusPlusZeroXSupport.h | ||||
| 	include/PolyVoxImpl/DecimatedSurfaceExtractor.h | ||||
| 	include/PolyVoxImpl/FastSurfaceExtractor.h | ||||
| 	include/PolyVoxImpl/MarchingCubesTables.h | ||||
| 	include/PolyVoxImpl/ReferenceSurfaceExtractor.h | ||||
| 	include/PolyVoxImpl/TypeDef.h | ||||
| 	include/PolyVoxImpl/Utility.h | ||||
| ) | ||||
|  | ||||
| ADD_DEFINITIONS(-DPOLYVOXCORE_EXPORT) #Export symbols in the .dll | ||||
|  | ||||
| #Appends "_d" to the generated library when in debug mode | ||||
| SET(CMAKE_DEBUG_POSTFIX "_d") | ||||
|  | ||||
| #"Sources" and "Headers" are the group names in Visual Studio. | ||||
| #They may have other uses too... | ||||
| SOURCE_GROUP("Sources" FILES ${CORE_SRC_FILES}) | ||||
| SOURCE_GROUP("Headers" FILES ${CORE_INC_FILES}) | ||||
|  | ||||
| SOURCE_GROUP("Sources\\PolyVoxImpl" FILES ${IMPL_SRC_FILES}) | ||||
| SOURCE_GROUP("Headers\\PolyVoxImpl" FILES ${IMPL_INC_FILES}) | ||||
|  | ||||
| #Tell CMake the paths | ||||
| INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include) | ||||
|  | ||||
| #Core | ||||
| #Build | ||||
| ADD_LIBRARY(PolyVoxCore SHARED ${CORE_SRC_FILES} ${CORE_INC_FILES} ${IMPL_SRC_FILES} ${IMPL_INC_FILES}) | ||||
| SET_TARGET_PROPERTIES(PolyVoxCore PROPERTIES VERSION ${POLYVOX_VERSION} SOVERSION ${POLYVOX_VERSION_MAJOR}) | ||||
| IF(WIN32) | ||||
| 	SET_TARGET_PROPERTIES(PolyVoxCore PROPERTIES COMPILE_FLAGS "/wd4251") #Disable warning on STL exports | ||||
| ENDIF(WIN32) | ||||
|  | ||||
| #Install | ||||
| INSTALL(TARGETS PolyVoxCore | ||||
| 	RUNTIME DESTINATION PolyVoxCore/bin | ||||
| 	LIBRARY DESTINATION PolyVoxCore/lib | ||||
| 	ARCHIVE DESTINATION PolyVoxCore/lib | ||||
| 	COMPONENT library | ||||
| ) | ||||
|  | ||||
| #Install the core header files, including the ones in the PolyVoxImpl subfolder. | ||||
| INSTALL(DIRECTORY include DESTINATION PolyVoxCore COMPONENT development PATTERN "*.svn*" EXCLUDE) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user