- Add first prototype for CMake enviroment.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@390 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
00729f83f7
commit
0ec4348188
|
@ -0,0 +1,22 @@
|
|||
cmake_minimum_required( VERSION 2.6 )
|
||||
PROJECT( AssetImporter )
|
||||
|
||||
SET( CMAKE_CURRENT_SOURCE_DIR ${CMAKE_HOME_DIRECTORY}/code )
|
||||
SET( CMAKE_CURRENT_BINARY_DIR ${CMAKE_HOME_DIRECTORY}/bin )
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
include
|
||||
)
|
||||
|
||||
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib )
|
||||
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin )
|
||||
|
||||
# Libs
|
||||
add_subdirectory( code/ )
|
||||
|
||||
IF( WIN32 )
|
||||
add_subdirectory( tools/assimp_view/ )
|
||||
ENDIF( WIN32 )
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,558 @@
|
|||
|
||||
SET( HEADER_PATH ../include/ )
|
||||
|
||||
SOURCE_GROUP( Logging FILES
|
||||
${HEADER_PATH}/DefaultLogger.h
|
||||
${HEADER_PATH}/IOStream.h
|
||||
${HEADER_PATH}/LogStream.h
|
||||
${HEADER_PATH}/Logger.h
|
||||
${HEADER_PATH}/NullLogger.h
|
||||
Win32DebugLogStream.h
|
||||
DefaultLogger.cpp
|
||||
FileLogStream.h
|
||||
)
|
||||
SOURCE_GROUP( Common FILES
|
||||
aiAssert.cpp
|
||||
fast_atof.h
|
||||
qnan.h
|
||||
BaseImporter.cpp
|
||||
BaseImporter.h
|
||||
BaseProcess.cpp
|
||||
BaseProcess.h
|
||||
ByteSwap.h
|
||||
ProcessHelper.h
|
||||
DefaultIOStream.cpp
|
||||
DefaultIOStream.h
|
||||
DefaultIOSystem.cpp
|
||||
DefaultIOSystem.h
|
||||
Hash.h
|
||||
Importer.cpp
|
||||
IFF.h
|
||||
ParsingUtils.h
|
||||
StdOStreamLogStream.h
|
||||
StreamReader.h
|
||||
StringComparison.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( 3DS FILES
|
||||
3DSConverter.cpp
|
||||
3DSHelper.h
|
||||
3DSLoader.cpp
|
||||
3DSLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( AC FILES
|
||||
ACLoader.cpp
|
||||
ACLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( ASE FILES
|
||||
ASELoader.cpp
|
||||
ASELoader.h
|
||||
ASEParser.cpp
|
||||
ASEParser.h
|
||||
)
|
||||
SOURCE_GROUP( B3D FILES
|
||||
B3DImporter.cpp
|
||||
B3DImporter.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( BVH FILES
|
||||
BVHLoader.cpp
|
||||
BVHLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP(Collada FILES
|
||||
ColladaHelper.h
|
||||
ColladaLoader.cpp
|
||||
ColladaLoader.h
|
||||
ColladaParser.cpp
|
||||
ColladaParser.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP(DXF FILES
|
||||
DXFLoader.cpp
|
||||
DXFLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP(HMP FILES
|
||||
HMPFileData.h
|
||||
HMPLoader.cpp
|
||||
HMPLoader.h
|
||||
HalfLifeFileData.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP(Irr FILES
|
||||
IRRLoader.cpp
|
||||
IRRLoader.h
|
||||
IRRMeshLoader.cpp
|
||||
IRRMeshLoader.h
|
||||
IRRShared.cpp
|
||||
IRRShared.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP(LWO FILES
|
||||
LWOAnimation.cpp
|
||||
LWOAnimation.h
|
||||
LWOBLoader.cpp
|
||||
LWOFileData.h
|
||||
LWOLoader.cpp
|
||||
LWOLoader.h
|
||||
LWOMaterial.cpp
|
||||
)
|
||||
|
||||
SOURCE_GROUP(LWS FILES
|
||||
LWSLoader.cpp
|
||||
LWSLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP(MD2 FILES
|
||||
MD2FileData.h
|
||||
MD2Loader.cpp
|
||||
MD2Loader.h
|
||||
MD2NormalTable.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( MD3 FILES
|
||||
MD3FileData.h
|
||||
MD3Loader.cpp
|
||||
MD3Loader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( MD5 FILES
|
||||
MD5Loader.cpp
|
||||
MD5Loader.h
|
||||
MD5Parser.cpp
|
||||
MD5Parser.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( MDC FILES
|
||||
MDCFileData.h
|
||||
MDCLoader.cpp
|
||||
MDCLoader.h
|
||||
MDCNormalTable.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( MDL FILES
|
||||
MDLDefaultColorMap.h
|
||||
MDLFileData.h
|
||||
MDLLoader.cpp
|
||||
MDLLoader.h
|
||||
MDLMaterialLoader.cpp
|
||||
)
|
||||
|
||||
SOURCE_GROUP( MaterialSystem FILES
|
||||
MaterialSystem.cpp
|
||||
MaterialSystem.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( NFF FILES
|
||||
NFFLoader.cpp
|
||||
NFFLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( OFFFormat FILES
|
||||
OFFLoader.cpp
|
||||
OFFLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( Obj FILES
|
||||
ObjFileData.h
|
||||
ObjFileImporter.cpp
|
||||
ObjFileImporter.h
|
||||
ObjFileMtlImporter.cpp
|
||||
ObjFileMtlImporter.h
|
||||
ObjFileParser.cpp
|
||||
ObjFileParser.h
|
||||
ObjTools.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( Ply FILES
|
||||
PlyLoader.cpp
|
||||
PlyLoader.h
|
||||
PlyParser.cpp
|
||||
PlyParser.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( PostProcessing FILES
|
||||
CalcTangentsProcess.cpp
|
||||
CalcTangentsProcess.h
|
||||
ComputeUVMappingProcess.cpp
|
||||
ComputeUVMappingProcess.h
|
||||
ConvertToLHProcess.cpp
|
||||
ConvertToLHProcess.h
|
||||
FindDegenerates.cpp
|
||||
FindDegenerates.h
|
||||
FindInstancesProcess.cpp
|
||||
FindInstancesProcess.h
|
||||
FindInvalidDataProcess.cpp
|
||||
FindInvalidDataProcess.h
|
||||
FixNormalsStep.cpp
|
||||
FixNormalsStep.h
|
||||
GenFaceNormalsProcess.cpp
|
||||
GenFaceNormalsProcess.h
|
||||
GenVertexNormalsProcess.cpp
|
||||
GenVertexNormalsProcess.h
|
||||
GenericProperty.h
|
||||
PretransformVertices.cpp
|
||||
PretransformVertices.h
|
||||
ImproveCacheLocality.cpp
|
||||
ImproveCacheLocality.h
|
||||
JoinVerticesProcess.cpp
|
||||
JoinVerticesProcess.h
|
||||
LimitBoneWeightsProcess.cpp
|
||||
LimitBoneWeightsProcess.h
|
||||
RemoveComments.cpp
|
||||
RemoveComments.h
|
||||
RemoveRedundantMaterials.cpp
|
||||
RemoveRedundantMaterials.h
|
||||
RemoveVCProcess.cpp
|
||||
RemoveVCProcess.h
|
||||
SGSpatialSort.cpp
|
||||
SGSpatialSort.h
|
||||
SceneCombiner.cpp
|
||||
SceneCombiner.h
|
||||
ScenePreprocessor.cpp
|
||||
ScenePreprocessor.h
|
||||
SkeletonMeshBuilder.cpp
|
||||
SkeletonMeshBuilder.h
|
||||
SmoothingGroups.h
|
||||
SortByPTypeProcess.cpp
|
||||
SortByPTypeProcess.h
|
||||
SpatialSort.cpp
|
||||
SpatialSort.h
|
||||
SplitLargeMeshes.cpp
|
||||
SplitLargeMeshes.h
|
||||
StandardShapes.cpp
|
||||
StandardShapes.h
|
||||
TargetAnimation.cpp
|
||||
TargetAnimation.h
|
||||
TerragenLoader.cpp
|
||||
TerragenLoader.h
|
||||
TextureTransform.cpp
|
||||
TextureTransform.h
|
||||
TriangulateProcess.cpp
|
||||
TriangulateProcess.h
|
||||
ValidateDataStructure.cpp
|
||||
ValidateDataStructure.h
|
||||
VertexTriangleAdjacency.cpp
|
||||
VertexTriangleAdjacency.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( Q3D FILES
|
||||
Q3DLoader.cpp
|
||||
Q3DLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( Raw FILES
|
||||
RawLoader.cpp
|
||||
RawLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( SMD FILES
|
||||
SMDLoader.cpp
|
||||
SMDLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( STL FILES
|
||||
STLLoader.cpp
|
||||
STLLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( Unreal FILES
|
||||
UnrealLoader.cpp
|
||||
UnrealLoader.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( XFile FILES
|
||||
XFileHelper.h
|
||||
XFileImporter.cpp
|
||||
XFileImporter.h
|
||||
XFileParser.cpp
|
||||
XFileParser.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( Extra FILES
|
||||
extra/MakeVerboseFormat.cpp
|
||||
extra/MakeVerboseFormat.h
|
||||
extra/MD4FileData.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( IrrXML FILES
|
||||
irrXMLWrapper.h
|
||||
../contrib/irrXML/CXMLReaderImpl.h
|
||||
../contrib/irrXML/heapsort.h
|
||||
../contrib/irrXML/irrArray.h
|
||||
../contrib/irrXML/irrString.h
|
||||
../contrib/irrXML/irrTypes.h
|
||||
../contrib/irrXML/irrXML.cpp
|
||||
../contrib/irrXML/irrXML.h
|
||||
)
|
||||
|
||||
SOURCE_GROUP( zlib FILES
|
||||
../contrib/zlib/adler32.c
|
||||
../contrib/zlib/compress.c
|
||||
../contrib/zlib/crc32.c
|
||||
../contrib/zlib/crc32.h
|
||||
../contrib/zlib/deflate.c
|
||||
../contrib/zlib/deflate.h
|
||||
../contrib/zlib/inffast.c
|
||||
../contrib/zlib/inffast.h
|
||||
../contrib/zlib/inffixed.h
|
||||
../contrib/zlib/inflate.c
|
||||
../contrib/zlib/inflate.h
|
||||
../contrib/zlib/inftrees.c
|
||||
../contrib/zlib/inftrees.h
|
||||
../contrib/zlib/trees.c
|
||||
../contrib/zlib/trees.h
|
||||
../contrib/zlib/zconf.h
|
||||
../contrib/zlib/zconf.in.h
|
||||
../contrib/zlib/zlib.h
|
||||
../contrib/zlib/zutil.c
|
||||
../contrib/zlib/zutil.h
|
||||
)
|
||||
|
||||
ADD_LIBRARY( assimp SHARED
|
||||
${HEADER_PATH}/DefaultLogger.h
|
||||
${HEADER_PATH}/IOStream.h
|
||||
${HEADER_PATH}/IOSystem.h
|
||||
${HEADER_PATH}/LogStream.h
|
||||
${HEADER_PATH}/Logger.h
|
||||
${HEADER_PATH}/NullLogger.h
|
||||
${HEADER_PATH}/TDepGraphNode.h
|
||||
${HEADER_PATH}/aiAnim.h
|
||||
${HEADER_PATH}/aiAssert.h
|
||||
${HEADER_PATH}/aiCamera.h
|
||||
${HEADER_PATH}/aiConfig.h
|
||||
${HEADER_PATH}/aiDefines.h
|
||||
${HEADER_PATH}/aiFileIO.h
|
||||
${HEADER_PATH}/aiLight.h
|
||||
${HEADER_PATH}/aiMaterial.h
|
||||
${HEADER_PATH}/aiMatrix3x3.h
|
||||
${HEADER_PATH}/aiMatrix4x4.h
|
||||
${HEADER_PATH}/aiMesh.h
|
||||
${HEADER_PATH}/aiPostProcess.h
|
||||
${HEADER_PATH}/aiQuaternion.h
|
||||
${HEADER_PATH}/aiScene.h
|
||||
${HEADER_PATH}/aiTexture.h
|
||||
${HEADER_PATH}/aiTypes.h
|
||||
${HEADER_PATH}/aiVector2D.h
|
||||
${HEADER_PATH}/aiVector3D.h
|
||||
${HEADER_PATH}/aiVersion.h
|
||||
${HEADER_PATH}/assimp.h
|
||||
|
||||
3DSConverter.cpp
|
||||
3DSHelper.h
|
||||
3DSLoader.cpp
|
||||
3DSLoader.h
|
||||
ACLoader.cpp
|
||||
ACLoader.h
|
||||
ASELoader.cpp
|
||||
ASELoader.h
|
||||
ASEParser.cpp
|
||||
ASEParser.h
|
||||
Assimp.cpp
|
||||
AssimpPCH.cpp
|
||||
AssimpPCH.h
|
||||
B3DImporter.cpp
|
||||
B3DImporter.h
|
||||
BVHLoader.cpp
|
||||
BVHLoader.h
|
||||
BaseImporter.cpp
|
||||
BaseImporter.h
|
||||
BaseProcess.cpp
|
||||
BaseProcess.h
|
||||
ByteSwap.h
|
||||
CalcTangentsProcess.cpp
|
||||
CalcTangentsProcess.h
|
||||
ColladaHelper.h
|
||||
ColladaLoader.cpp
|
||||
ColladaLoader.h
|
||||
ColladaParser.cpp
|
||||
ColladaParser.h
|
||||
ComputeUVMappingProcess.cpp
|
||||
ComputeUVMappingProcess.h
|
||||
ConvertToLHProcess.cpp
|
||||
ConvertToLHProcess.h
|
||||
DXFLoader.cpp
|
||||
DXFLoader.h
|
||||
DefaultIOStream.cpp
|
||||
DefaultIOStream.h
|
||||
DefaultIOSystem.cpp
|
||||
DefaultIOSystem.h
|
||||
DefaultLogger.cpp
|
||||
FileLogStream.h
|
||||
FindDegenerates.cpp
|
||||
FindDegenerates.h
|
||||
FindInstancesProcess.cpp
|
||||
FindInstancesProcess.h
|
||||
FindInvalidDataProcess.cpp
|
||||
FindInvalidDataProcess.h
|
||||
FixNormalsStep.cpp
|
||||
FixNormalsStep.h
|
||||
GenFaceNormalsProcess.cpp
|
||||
GenFaceNormalsProcess.h
|
||||
GenVertexNormalsProcess.cpp
|
||||
GenVertexNormalsProcess.h
|
||||
GenericProperty.h
|
||||
HMPFileData.h
|
||||
HMPLoader.cpp
|
||||
HMPLoader.h
|
||||
HalfLifeFileData.h
|
||||
Hash.h
|
||||
IFF.h
|
||||
IRRLoader.cpp
|
||||
IRRLoader.h
|
||||
IRRMeshLoader.cpp
|
||||
IRRMeshLoader.h
|
||||
IRRShared.cpp
|
||||
IRRShared.h
|
||||
Importer.cpp
|
||||
ImproveCacheLocality.cpp
|
||||
ImproveCacheLocality.h
|
||||
JoinVerticesProcess.cpp
|
||||
JoinVerticesProcess.h
|
||||
LWOAnimation.cpp
|
||||
LWOAnimation.h
|
||||
LWOBLoader.cpp
|
||||
LWOFileData.h
|
||||
LWOLoader.cpp
|
||||
LWOLoader.h
|
||||
LWOMaterial.cpp
|
||||
LWSLoader.cpp
|
||||
LWSLoader.h
|
||||
LimitBoneWeightsProcess.cpp
|
||||
LimitBoneWeightsProcess.h
|
||||
MD2FileData.h
|
||||
MD2Loader.cpp
|
||||
MD2Loader.h
|
||||
MD2NormalTable.h
|
||||
MD3FileData.h
|
||||
MD3Loader.cpp
|
||||
MD3Loader.h
|
||||
MD5Loader.cpp
|
||||
MD5Loader.h
|
||||
MD5Parser.cpp
|
||||
MD5Parser.h
|
||||
MDCFileData.h
|
||||
MDCLoader.cpp
|
||||
MDCLoader.h
|
||||
MDCNormalTable.h
|
||||
MDLDefaultColorMap.h
|
||||
MDLFileData.h
|
||||
MDLLoader.cpp
|
||||
MDLLoader.h
|
||||
MDLMaterialLoader.cpp
|
||||
MaterialSystem.cpp
|
||||
MaterialSystem.h
|
||||
NFFLoader.cpp
|
||||
NFFLoader.h
|
||||
OFFLoader.cpp
|
||||
OFFLoader.h
|
||||
ObjFileData.h
|
||||
ObjFileImporter.cpp
|
||||
ObjFileImporter.h
|
||||
ObjFileMtlImporter.cpp
|
||||
ObjFileMtlImporter.h
|
||||
ObjFileParser.cpp
|
||||
ObjFileParser.h
|
||||
ObjTools.h
|
||||
ParsingUtils.h
|
||||
PlyLoader.cpp
|
||||
PlyLoader.h
|
||||
PlyParser.cpp
|
||||
PlyParser.h
|
||||
PretransformVertices.cpp
|
||||
PretransformVertices.h
|
||||
ProcessHelper.h
|
||||
Q3DLoader.cpp
|
||||
Q3DLoader.h
|
||||
RawLoader.cpp
|
||||
RawLoader.h
|
||||
RemoveComments.cpp
|
||||
RemoveComments.h
|
||||
RemoveRedundantMaterials.cpp
|
||||
RemoveRedundantMaterials.h
|
||||
RemoveVCProcess.cpp
|
||||
RemoveVCProcess.h
|
||||
SGSpatialSort.cpp
|
||||
SGSpatialSort.h
|
||||
SMDLoader.cpp
|
||||
SMDLoader.h
|
||||
STLLoader.cpp
|
||||
STLLoader.h
|
||||
SceneCombiner.cpp
|
||||
SceneCombiner.h
|
||||
ScenePreprocessor.cpp
|
||||
ScenePreprocessor.h
|
||||
SkeletonMeshBuilder.cpp
|
||||
SkeletonMeshBuilder.h
|
||||
SmoothingGroups.h
|
||||
SortByPTypeProcess.cpp
|
||||
SortByPTypeProcess.h
|
||||
SpatialSort.cpp
|
||||
SpatialSort.h
|
||||
SplitLargeMeshes.cpp
|
||||
SplitLargeMeshes.h
|
||||
StandardShapes.cpp
|
||||
StandardShapes.h
|
||||
StdOStreamLogStream.h
|
||||
StreamReader.h
|
||||
StringComparison.h
|
||||
TargetAnimation.cpp
|
||||
TargetAnimation.h
|
||||
TerragenLoader.cpp
|
||||
TerragenLoader.h
|
||||
TextureTransform.cpp
|
||||
TextureTransform.h
|
||||
TriangulateProcess.cpp
|
||||
TriangulateProcess.h
|
||||
UnrealLoader.cpp
|
||||
UnrealLoader.h
|
||||
ValidateDataStructure.cpp
|
||||
ValidateDataStructure.h
|
||||
VertexTriangleAdjacency.cpp
|
||||
VertexTriangleAdjacency.h
|
||||
Win32DebugLogStream.h
|
||||
XFileHelper.h
|
||||
XFileImporter.cpp
|
||||
XFileImporter.h
|
||||
XFileParser.cpp
|
||||
XFileParser.h
|
||||
aiAssert.cpp
|
||||
fast_atof.h
|
||||
irrXMLWrapper.h
|
||||
qnan.h
|
||||
extra/MakeVerboseFormat.cpp
|
||||
extra/MakeVerboseFormat.h
|
||||
extra/MD4FileData.h
|
||||
../contrib/irrXML/CXMLReaderImpl.h
|
||||
../contrib/irrXML/heapsort.h
|
||||
../contrib/irrXML/irrArray.h
|
||||
../contrib/irrXML/irrString.h
|
||||
../contrib/irrXML/irrTypes.h
|
||||
../contrib/irrXML/irrXML.cpp
|
||||
../contrib/irrXML/irrXML.h
|
||||
../contrib/zlib/adler32.c
|
||||
../contrib/zlib/compress.c
|
||||
../contrib/zlib/crc32.c
|
||||
../contrib/zlib/crc32.h
|
||||
../contrib/zlib/deflate.c
|
||||
../contrib/zlib/deflate.h
|
||||
../contrib/zlib/inffast.c
|
||||
../contrib/zlib/inffast.h
|
||||
../contrib/zlib/inffixed.h
|
||||
../contrib/zlib/inflate.c
|
||||
../contrib/zlib/inflate.h
|
||||
../contrib/zlib/inftrees.c
|
||||
../contrib/zlib/inftrees.h
|
||||
../contrib/zlib/trees.c
|
||||
../contrib/zlib/trees.h
|
||||
../contrib/zlib/zconf.h
|
||||
../contrib/zlib/zconf.in.h
|
||||
../contrib/zlib/zlib.h
|
||||
../contrib/zlib/zutil.c
|
||||
../contrib/zlib/zutil.h
|
||||
)
|
||||
ADD_DEFINITIONS(-DASSIMP_BUILD_DLL_EXPORT)
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
# Make sure the compiler can find include files from our Hello library.
|
||||
include_directories (
|
||||
${AssetImporter_SOURCE_DIR}/include
|
||||
${AssetImporter_SOURCE_DIR}/code
|
||||
)
|
||||
|
||||
# Make sure the linker can find the Hello library once it is built.
|
||||
link_directories (${AssetImporter_BINARY_DIR} ${AssetImporter_BINARY_DIR}/lib)
|
||||
|
||||
# Add executable called "helloDemo" that is built from the source files
|
||||
# "demo.cxx" and "demo_b.cxx". The extensions are automatically found.
|
||||
add_executable( assimp_viewer WIN32
|
||||
AnimEvaluator.cpp
|
||||
Background.cpp
|
||||
Display.cpp
|
||||
HelpDialog.cpp
|
||||
Input.cpp
|
||||
LogDisplay.cpp
|
||||
LogWindow.cpp
|
||||
Material.cpp
|
||||
MeshRenderer.cpp
|
||||
MessageProc.cpp
|
||||
Normals.cpp
|
||||
SceneAnimator.cpp
|
||||
Shaders.cpp
|
||||
assimp_view.cpp
|
||||
stdafx.cpp
|
||||
)
|
||||
|
||||
IF( WIN32 )
|
||||
SET( PSDK_PATH "C:/Program Files/Microsoft Platform SDK/Bin" )
|
||||
SET( PSDK_INC "C:/Program Files/Microsoft Platform SDK/Include" )
|
||||
|
||||
FIND_PATH(DX9_INCLUDE_PATH d3d9.h
|
||||
PATHS
|
||||
"$ENV{DXSDK_DIR}/Include"
|
||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include"
|
||||
DOC "The directory where D3D9.h resides")
|
||||
|
||||
|
||||
FIND_LIBRARY(D3D9_LIBRARY d3d9.lib
|
||||
PATHS
|
||||
"$ENV{DXSDK_DIR}/Lib/x86"
|
||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
|
||||
DOC "The directory where d3d9.lib resides")
|
||||
|
||||
FIND_LIBRARY(D3DX9_LIBRARY d3dx9.lib
|
||||
PATHS
|
||||
"$ENV{DXSDK_DIR}/Lib/x86"
|
||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
|
||||
DOC "The directory where d3dx9.lib resides")
|
||||
|
||||
SET( DX9_LIBRARIES ${D3D9_LIBRARY} ${D3DX9_LIBRARY} )
|
||||
|
||||
FIND_LIBRARY( WIN32_COMCTRL comctl32.lib
|
||||
PATHS
|
||||
"C:/Programme/Microsoft Platform SDK for Windows Server 2003 R2/Lib"
|
||||
DOC "Path to psdk"
|
||||
)
|
||||
ENDIF( WIN32 )
|
||||
|
||||
# Link the executable to the Hello library.
|
||||
target_link_libraries ( assimp_viewer assimp ${DX9_LIBRARIES} comctl32.lib Winmm.lib )
|
||||
|
Loading…
Reference in New Issue